@opencode/core 0.0.0-dev-20219 → 0.0.0-dev-20220
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 +83 -83
- 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/{file-access-mce70z9k.js → workspace-07s4dn0t.js} +2 -2
- package/dist/chunks/{file-access-q44wpwgt.js → workspace-0aj2g9bc.js} +15 -15
- package/dist/chunks/{file-access-hzmns3wg.js → workspace-0f2p78zq.js} +1 -1
- package/dist/chunks/{file-access-axh3bb98.js → workspace-0grssgzr.js} +17 -17
- package/dist/chunks/{file-access-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-access-an7cqtb7.js → workspace-0v53mg2y.js} +4 -4
- package/dist/chunks/{file-access-xhj0xgtv.js → workspace-0v9511cz.js} +4 -4
- package/dist/chunks/{file-access-xt7040bk.js → workspace-17sdw283.js} +1 -1
- package/dist/chunks/{file-access-r4k1wyhr.js → workspace-17v2tb9j.js} +5 -5
- package/dist/chunks/{file-access-1acjjqhc.js → workspace-1acjjqhc.js} +1 -1
- package/dist/chunks/{file-access-f73kw1rr.js → workspace-1b2dpk4d.js} +24 -24
- package/dist/chunks/{file-access-mvfsc1pv.js → workspace-1bbkgx8g.js} +3 -3
- package/dist/chunks/{file-access-1dazxqgg.js → workspace-1dazxqgg.js} +2 -2
- package/dist/chunks/{file-access-21r38tys.js → workspace-21r38tys.js} +1 -1
- package/dist/chunks/{file-access-qg0jgkcp.js → workspace-24dd53tp.js} +9 -9
- package/dist/chunks/{file-access-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
- package/dist/chunks/{file-access-sfk4w328.js → workspace-2ezrptcc.js} +16 -16
- package/dist/chunks/{file-access-6n4b0dsb.js → workspace-2q8c0gm7.js} +9 -9
- package/dist/chunks/{file-access-xax8qz02.js → workspace-2skkdyk1.js} +54 -54
- package/dist/chunks/{file-access-rdzdpb0f.js → workspace-2t479tbe.js} +16 -16
- package/dist/chunks/{file-access-8nmhxbrx.js → workspace-32sacsj5.js} +27 -27
- package/dist/chunks/{file-access-mfqp6xfm.js → workspace-33w4ejhs.js} +9 -9
- package/dist/chunks/{file-access-3w0fmcng.js → workspace-37s12vcn.js} +5 -5
- package/dist/chunks/{file-access-are7hw82.js → workspace-39n49jwr.js} +5 -5
- package/dist/chunks/{file-access-qje44bf3.js → workspace-3dsvdpyk.js} +3 -3
- package/dist/chunks/{file-access-ypp77dnm.js → workspace-3et4sczz.js} +28 -28
- package/dist/chunks/{file-access-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-access-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-access-4z01qq42.js → workspace-3ncp34ar.js} +20 -20
- package/dist/chunks/{file-access-57ez7d0k.js → workspace-3nxb9rvh.js} +9 -9
- package/dist/chunks/{file-access-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-access-6xrmt3bc.js → workspace-3ta7235s.js} +44 -44
- package/dist/chunks/{file-access-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-access-a5emdzv3.js → workspace-3vypftwz.js} +66 -66
- package/dist/chunks/{file-access-3zsf4n22.js → workspace-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-access-qfdmkt50.js → workspace-4085f8rb.js} +30 -30
- package/dist/chunks/{file-access-2e4my0rk.js → workspace-414cp7b0.js} +12 -12
- package/dist/chunks/{file-access-5kmzp830.js → workspace-47w2eqjq.js} +43 -43
- package/dist/chunks/{file-access-eq6cnfxg.js → workspace-4ehfw94s.js} +11 -11
- package/dist/chunks/{file-access-2a26731r.js → workspace-4f0b6jfs.js} +8 -8
- package/dist/chunks/{file-access-c05qyvmj.js → workspace-4k5pqwqv.js} +43 -43
- package/dist/chunks/{file-access-cgwxh910.js → workspace-4myaz8ns.js} +17 -17
- package/dist/chunks/{file-access-342w1vcn.js → workspace-4rd4da1r.js} +30 -30
- package/dist/chunks/workspace-4s0jyqng.js +507 -0
- package/dist/chunks/{file-access-z6rbkfvk.js → workspace-4sb7vttz.js} +5 -5
- package/dist/chunks/workspace-4v7qdvcn.js +18 -0
- package/dist/chunks/{file-access-1fzqmwms.js → workspace-4yn70x16.js} +35 -35
- package/dist/chunks/{file-access-axmvebxj.js → workspace-50mzsvk4.js} +21 -21
- package/dist/chunks/{file-access-bhjh1468.js → workspace-514963fk.js} +36 -36
- package/dist/chunks/{file-access-4096n4es.js → workspace-5903przf.js} +25 -25
- package/dist/chunks/{file-access-5daktx2q.js → workspace-5daktx2q.js} +1 -1
- package/dist/chunks/{file-access-4my0r3nx.js → workspace-5ddqzaw2.js} +16 -16
- package/dist/chunks/{file-access-jcg2nqds.js → workspace-5kj8b39y.js} +53 -53
- package/dist/chunks/{file-access-jda6501c.js → workspace-5nkr2rt4.js} +35 -35
- package/dist/chunks/{file-access-j5208yae.js → workspace-5phqnecy.js} +9 -9
- package/dist/chunks/{file-access-e3qxr5gk.js → workspace-5qd3pb7m.js} +2 -2
- package/dist/chunks/{file-access-tx6fw33t.js → workspace-5qz8v4qk.js} +13 -13
- package/dist/chunks/{file-access-5t3nmthw.js → workspace-5t3nmthw.js} +2 -2
- package/dist/chunks/{file-access-9hn6k4tm.js → workspace-5yzzbxa7.js} +8 -8
- package/dist/chunks/{file-access-sy6yxnp0.js → workspace-64gm52cj.js} +16 -16
- package/dist/chunks/{file-access-669tq793.js → workspace-669tq793.js} +1 -1
- package/dist/chunks/{file-access-ea9m5r7a.js → workspace-6d9vm36g.js} +88 -88
- package/dist/chunks/{file-access-2402vzrj.js → workspace-6h73sxmp.js} +5 -5
- package/dist/chunks/{file-access-6msgmcgs.js → workspace-6msgmcgs.js} +1 -1
- package/dist/chunks/{file-access-r0gnj1sa.js → workspace-6s6k40ev.js} +5 -5
- package/dist/chunks/{file-access-d5wfqpep.js → workspace-6zsyems9.js} +4 -4
- package/dist/chunks/{file-access-zqmnyjkg.js → workspace-71haf3zx.js} +18 -18
- package/dist/chunks/{file-access-73k62qrh.js → workspace-71r8gsdc.js} +31 -31
- package/dist/chunks/{file-access-p91mzttq.js → workspace-75r560w4.js} +15 -15
- package/dist/chunks/{file-access-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-access-sqgwgmch.js → workspace-7mmmc1dn.js} +18 -18
- package/dist/chunks/{file-access-2fhv7y2b.js → workspace-7qnb4kh2.js} +15 -15
- package/dist/chunks/{file-access-qa3qhgw8.js → workspace-7sbkp4xb.js} +4 -4
- package/dist/chunks/{file-access-a4cmfvx0.js → workspace-82r76d2b.js} +4 -4
- package/dist/chunks/{file-access-g7vt4ewv.js → workspace-86k3a79a.js} +179 -179
- package/dist/chunks/{file-access-2008k294.js → workspace-87c9dbfz.js} +24 -24
- package/dist/chunks/{file-access-nay98bnt.js → workspace-8875jzjj.js} +17 -17
- package/dist/chunks/{file-access-t6h1g1g5.js → workspace-88f96gnv.js} +13 -13
- package/dist/chunks/{file-access-tzt8249x.js → workspace-8brtktdt.js} +11 -11
- package/dist/chunks/{file-access-8d7r5vzw.js → workspace-8d7r5vzw.js} +1 -1
- package/dist/chunks/{file-access-v81977ac.js → workspace-8ec64kag.js} +11 -11
- package/dist/chunks/{file-access-k070rzvq.js → workspace-8ez8fgkm.js} +88 -88
- package/dist/chunks/{file-access-xxynqx5z.js → workspace-8jmaqybk.js} +3 -3
- package/dist/chunks/{file-access-6pc27hjz.js → workspace-8sze2n9a.js} +2 -2
- package/dist/chunks/{file-access-pp173efe.js → workspace-8wry8wmy.js} +9 -9
- package/dist/chunks/{file-access-4dgbcxzg.js → workspace-8z00fdkb.js} +4 -4
- package/dist/chunks/{file-access-b1qxe6t8.js → workspace-9448wgn4.js} +27 -27
- package/dist/chunks/{file-access-94ek1h2f.js → workspace-94ek1h2f.js} +2 -2
- package/dist/chunks/{file-access-4nzwy074.js → workspace-96ctqc5x.js} +4 -4
- package/dist/chunks/{file-access-m9tnd93v.js → workspace-9h36tbcg.js} +23 -23
- package/dist/chunks/{file-access-3402q8qq.js → workspace-9hyh706k.js} +5 -5
- package/dist/chunks/{file-access-q31ybm9w.js → workspace-9zj539jb.js} +10 -10
- package/dist/chunks/{file-access-t94cg862.js → workspace-9zvsvm9a.js} +11 -11
- package/dist/chunks/{file-access-aaet6srn.js → workspace-aaet6srn.js} +2 -2
- package/dist/chunks/{file-access-fne2zcz7.js → workspace-b0d9b1gc.js} +11 -11
- package/dist/chunks/{file-access-w1h00q37.js → workspace-b5bxpz8p.js} +16 -16
- package/dist/chunks/{file-access-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
- package/dist/chunks/{file-access-vx9ej7x5.js → workspace-b8kga87m.js} +16 -16
- package/dist/chunks/{file-access-x5h44zm2.js → workspace-bf4gbvg4.js} +11 -11
- package/dist/chunks/{file-access-yzmqgt45.js → workspace-btk09rt4.js} +20 -20
- package/dist/chunks/{file-access-wbq604wr.js → workspace-bx34mrvh.js} +31 -31
- package/dist/chunks/{file-access-9j9p4yd9.js → workspace-c09pats7.js} +15 -15
- package/dist/chunks/{file-access-w3tfrc1q.js → workspace-c93n3nwq.js} +46 -46
- package/dist/chunks/{file-access-khtcj2vc.js → workspace-cc3pbsab.js} +28 -28
- package/dist/chunks/{file-access-ckecvw8r.js → workspace-ckecvw8r.js} +2 -2
- package/dist/chunks/{file-access-1fftszxk.js → workspace-d2hqzb0k.js} +10 -10
- package/dist/chunks/{file-access-mqnkr8x4.js → workspace-d9q5jt11.js} +6 -6
- package/dist/chunks/{file-access-rgnahn02.js → workspace-dc4f6cmj.js} +28 -28
- package/dist/chunks/{file-access-0qzc11ky.js → workspace-dmgn39c0.js} +32 -32
- package/dist/chunks/workspace-dn2dwtb1.js +252 -0
- package/dist/chunks/{file-access-y71avatq.js → workspace-dpkg50ah.js} +4 -4
- package/dist/chunks/{file-access-6vgcbnx1.js → workspace-e1vgq4ya.js} +15 -15
- package/dist/chunks/{file-access-p1centea.js → workspace-eahjaez5.js} +9 -9
- package/dist/chunks/{file-access-ecfe7b91.js → workspace-ecfe7b91.js} +2 -2
- package/dist/chunks/{file-access-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-access-rtv6ahp9.js → workspace-emzsebxx.js} +6 -6
- package/dist/chunks/{file-access-etq0c3wd.js → workspace-etq0c3wd.js} +1 -1
- package/dist/chunks/{file-access-4xhhjths.js → workspace-etzz3kcr.js} +8 -8
- package/dist/chunks/{file-access-amee31y2.js → workspace-f57b98hz.js} +33 -33
- package/dist/chunks/{file-access-dq0v80fr.js → workspace-fd43cwvv.js} +12 -12
- package/dist/chunks/{file-access-yakgq9vr.js → workspace-fwndzhfb.js} +20 -20
- package/dist/chunks/{file-access-g5agzp2h.js → workspace-g5agzp2h.js} +2 -2
- package/dist/chunks/{file-access-7cwnxm3f.js → workspace-g5jfh1r0.js} +25 -25
- package/dist/chunks/{file-access-b3vjrmmd.js → workspace-g631b151.js} +10 -10
- package/dist/chunks/{file-access-xak1a13c.js → workspace-g723tk78.js} +15 -15
- package/dist/chunks/{file-access-gz0m67vm.js → workspace-gce79w0q.js} +11 -11
- package/dist/chunks/{file-access-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-access-r2m716tb.js → workspace-gjwgx2c5.js} +9 -9
- package/dist/chunks/{file-access-z3anv38p.js → workspace-gk8g57t4.js} +8 -8
- package/dist/chunks/{file-access-pnaxc6j9.js → workspace-gs3s1a1g.js} +8 -8
- package/dist/chunks/{file-access-z5rd9rww.js → workspace-gs4tkc79.js} +8 -8
- package/dist/chunks/{file-access-gv6a8nnw.js → workspace-gv6a8nnw.js} +2 -2
- package/dist/chunks/{file-access-e7v7ag1x.js → workspace-gvc1y3x8.js} +14 -14
- package/dist/chunks/{file-access-5dkn69vz.js → workspace-gw7cjrad.js} +4 -4
- package/dist/chunks/{file-access-vsat1x4f.js → workspace-gy40wgwj.js} +6 -6
- package/dist/chunks/{file-access-kxastgyr.js → workspace-h275qfxe.js} +28 -28
- package/dist/chunks/{file-access-6kksgcx1.js → workspace-h2f17wn1.js} +3 -3
- package/dist/chunks/{file-access-q2pj9hmq.js → workspace-h6nd84cd.js} +5 -5
- package/dist/chunks/{file-access-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-access-za77p82n.js → workspace-h7e5g0tn.js} +6 -6
- package/dist/chunks/{file-access-xa86a8qv.js → workspace-ha0kmnyt.js} +4 -4
- package/dist/chunks/{file-access-pc2x3pek.js → workspace-hgefj7cx.js} +8 -8
- package/dist/chunks/{file-access-dbsq4pwp.js → workspace-hgxj8cmt.js} +24 -24
- package/dist/chunks/{file-access-78hrq4jx.js → workspace-hnb8xd58.js} +18 -18
- package/dist/chunks/{file-access-tm3ganxf.js → workspace-hq63kp9t.js} +20 -20
- package/dist/chunks/{file-access-0hq2a882.js → workspace-ht10abdc.js} +35 -35
- package/dist/chunks/{file-access-8cr4de2n.js → workspace-hxmj7brn.js} +43 -43
- package/dist/chunks/{file-access-j56e64zr.js → workspace-j56e64zr.js} +1 -1
- package/dist/chunks/{file-access-y6mhz57t.js → workspace-j5rxtxht.js} +4 -4
- package/dist/chunks/{file-access-xgqanhs1.js → workspace-j61y0zmr.js} +10 -10
- package/dist/chunks/{file-access-twytakqq.js → workspace-jc292bcq.js} +5 -5
- package/dist/chunks/{file-access-fx3wdqb9.js → workspace-jebmra90.js} +7 -7
- package/dist/chunks/{file-access-pydn7ak2.js → workspace-jg3pwedt.js} +16 -16
- package/dist/chunks/{file-access-sgf2gghg.js → workspace-jqrps7eh.js} +11 -11
- package/dist/chunks/{file-access-ej6hc95k.js → workspace-k1th7fpy.js} +12 -12
- package/dist/chunks/{file-access-k3c624dm.js → workspace-k3c624dm.js} +3 -3
- package/dist/chunks/{file-access-jhgteaw4.js → workspace-k9t5awnq.js} +17 -17
- package/dist/chunks/{file-access-8df8erbe.js → workspace-kaaz30r4.js} +26 -26
- package/dist/chunks/{file-access-1fpbszz0.js → workspace-kf1z0tr0.js} +11 -11
- package/dist/chunks/{file-access-sfce5m8y.js → workspace-ktwsgnm5.js} +11 -11
- package/dist/chunks/{file-access-rfw6gmm3.js → workspace-kwqnb3b3.js} +7 -7
- package/dist/chunks/{file-access-3b3aqk9w.js → workspace-kzemhjjj.js} +12 -12
- package/dist/chunks/{file-access-p7cft6yn.js → workspace-m06zp20y.js} +18 -18
- package/dist/chunks/{file-access-yy1qatwb.js → workspace-m17gx2bx.js} +19 -19
- package/dist/chunks/{file-access-914x9242.js → workspace-m2xqb0a2.js} +5 -5
- package/dist/chunks/{file-access-m3fdjcah.js → workspace-m3fdjcah.js} +1 -1
- package/dist/chunks/{file-access-xtnt4vmq.js → workspace-m5qajknk.js} +15 -15
- package/dist/chunks/{file-access-a6q3q10g.js → workspace-m9cctz3y.js} +32 -32
- package/dist/chunks/{file-access-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-access-gdh5zwy9.js → workspace-mer1x770.js} +9 -9
- package/dist/chunks/{file-access-8bhq85vc.js → workspace-mg1gmkd7.js} +27 -27
- package/dist/chunks/{file-access-mdrzgh0c.js → workspace-mgeyp9t4.js} +11 -11
- package/dist/chunks/{file-access-49p0ed20.js → workspace-mnyccpt8.js} +51 -51
- package/dist/chunks/{file-access-9a8936n8.js → workspace-ms6hn236.js} +47 -47
- package/dist/chunks/{file-access-4dspejaa.js → workspace-mtmzgpw7.js} +43 -43
- package/dist/chunks/{file-access-pccq72bz.js → workspace-mvksx64m.js} +4 -4
- package/dist/chunks/{file-access-sgwr1j85.js → workspace-myrxwzwn.js} +24 -24
- package/dist/chunks/{file-access-3g35pcv0.js → workspace-n1edfwxj.js} +4 -4
- package/dist/chunks/{file-access-hq8zt1th.js → workspace-n8dykrk6.js} +6 -6
- package/dist/chunks/{file-access-8pbjw162.js → workspace-nba0xr5w.js} +18 -18
- package/dist/chunks/{file-access-2bdsn8gv.js → workspace-nbzsj80d.js} +11 -11
- package/dist/chunks/{file-access-n1jysz1p.js → workspace-nc6w8shy.js} +24 -24
- package/dist/chunks/{file-access-ehdjeyg2.js → workspace-nfn0d9bm.js} +20 -20
- package/dist/chunks/{file-access-f4mxeny4.js → workspace-njtd5qwa.js} +7 -7
- package/dist/chunks/{file-access-p23sct0g.js → workspace-np5vbz7c.js} +11 -11
- package/dist/chunks/{file-access-j22g0rnm.js → workspace-nvynjj51.js} +11 -11
- package/dist/chunks/{file-access-zm32e97v.js → workspace-nwxrs5sk.js} +9 -9
- package/dist/chunks/{file-access-p7mbcwcb.js → workspace-nxs13mpc.js} +11 -11
- package/dist/chunks/{file-access-vfdyctpy.js → workspace-nzcytcen.js} +22 -22
- package/dist/chunks/{file-access-sqfdps7q.js → workspace-p23bcykr.js} +8 -8
- package/dist/chunks/workspace-p4wystw3.js +26 -0
- package/dist/chunks/{file-access-fy9ksp8t.js → workspace-p5vysgrm.js} +30 -30
- package/dist/chunks/{file-access-1vvb128b.js → workspace-pbnw4rax.js} +4 -4
- package/dist/chunks/{file-access-d5ggx3gj.js → workspace-phywj5ap.js} +3 -3
- package/dist/chunks/{file-access-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-access-pknna89w.js → workspace-pknna89w.js} +1 -1
- package/dist/chunks/{file-access-6hjx5zpb.js → workspace-prq7hedt.js} +9 -9
- package/dist/chunks/{file-access-mh417yj2.js → workspace-pvakgcfb.js} +6 -6
- package/dist/chunks/{file-access-rwt9bvf4.js → workspace-q456jvfz.js} +14 -14
- package/dist/chunks/{file-access-fvanntqq.js → workspace-q5t0te5a.js} +6 -6
- package/dist/chunks/{file-access-rc0bg82d.js → workspace-qczdb8gm.js} +13 -13
- package/dist/chunks/{file-access-2k8khapm.js → workspace-qgn6gcr1.js} +5 -5
- package/dist/chunks/{file-access-779yr38r.js → workspace-qhdvyz6r.js} +24 -24
- package/dist/chunks/{file-access-qte5z7bc.js → workspace-qjnxxf51.js} +5 -5
- package/dist/chunks/{file-access-qsdy395h.js → workspace-qsdy395h.js} +1 -1
- package/dist/chunks/{file-access-3t1ftwb2.js → workspace-qsz2rxby.js} +18 -18
- package/dist/chunks/{file-access-sjxp2wb1.js → workspace-qt56tf5w.js} +26 -26
- package/dist/chunks/{file-access-3sfkgk8j.js → workspace-qvqshg0f.js} +8 -8
- package/dist/chunks/{file-access-egxmeba7.js → workspace-r35k9y4r.js} +14 -14
- package/dist/chunks/{file-access-0hj7f8b1.js → workspace-r4xhx5yy.js} +12 -12
- package/dist/chunks/{file-access-gfvr1m8q.js → workspace-r5azket3.js} +13 -13
- package/dist/chunks/{file-access-1va56eq4.js → workspace-rbztqx5q.js} +24 -24
- package/dist/chunks/{file-access-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-access-etwd8xdv.js → workspace-rdyyfad2.js} +9 -9
- package/dist/chunks/{file-access-w5ebx16g.js → workspace-rhfw1snm.js} +23 -23
- package/dist/chunks/{file-access-t550f9t1.js → workspace-rhjbct0v.js} +4 -4
- package/dist/chunks/{file-access-pw8s4ynb.js → workspace-rmeh0b5f.js} +20 -20
- package/dist/chunks/{file-access-eqswh4p0.js → workspace-rx665nrj.js} +3 -3
- package/dist/chunks/{file-access-vvdre5gq.js → workspace-s31epa91.js} +28 -28
- package/dist/chunks/{file-access-c2fkv48w.js → workspace-s53jkx9g.js} +13 -13
- package/dist/chunks/{file-access-yt0fqk68.js → workspace-s8zy8myc.js} +5 -5
- package/dist/chunks/{file-access-78xt172e.js → workspace-sfvptea7.js} +35 -35
- package/dist/chunks/{file-access-tmyr738p.js → workspace-t1m4pd80.js} +23 -23
- package/dist/chunks/{file-access-vewd95as.js → workspace-t3fxmr6d.js} +12 -12
- package/dist/chunks/{file-access-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-access-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-access-tdstcens.js → workspace-tdstcens.js} +1 -1
- package/dist/chunks/{file-access-93aj03xk.js → workspace-tj19hryr.js} +32 -32
- package/dist/chunks/{file-access-yavsy04x.js → workspace-tqpa570b.js} +10 -10
- package/dist/chunks/{file-access-embw8kgh.js → workspace-ttqh24zm.js} +4 -4
- package/dist/chunks/{file-access-m6x2wn8b.js → workspace-ttv288q9.js} +11 -11
- package/dist/chunks/{file-access-tvtrv512.js → workspace-tvtrv512.js} +1 -1
- package/dist/chunks/{file-access-301zh46q.js → workspace-twha2rmd.js} +31 -31
- package/dist/chunks/{file-access-5bvcr52s.js → workspace-v1wpj03p.js} +15 -15
- package/dist/chunks/{file-access-y3vytq0t.js → workspace-v3ap8ec6.js} +11 -11
- package/dist/chunks/{file-access-r58we06e.js → workspace-v4gq33pr.js} +5 -5
- package/dist/chunks/{file-access-4zh8bh1k.js → workspace-vaknmyan.js} +9 -9
- package/dist/chunks/{file-access-h6q283th.js → workspace-vbksr8hy.js} +21 -21
- package/dist/chunks/{file-access-a1n80dmw.js → workspace-vcbvf67x.js} +18 -18
- package/dist/chunks/{file-access-zfamtpfd.js → workspace-vdxhr03z.js} +11 -11
- package/dist/chunks/{file-access-veqvce7d.js → workspace-veqvce7d.js} +1 -1
- package/dist/chunks/{file-access-k0a3z2qz.js → workspace-vfjhn2wd.js} +4 -4
- package/dist/chunks/{file-access-aqx1t2w1.js → workspace-vh4zb22k.js} +3 -3
- package/dist/chunks/{file-access-5e2mts1z.js → workspace-vj68ba03.js} +26 -26
- package/dist/chunks/{file-access-qsewrvhd.js → workspace-vncddnhg.js} +7 -7
- package/dist/chunks/workspace-vp8zed57.js +43 -0
- package/dist/chunks/{file-access-zr4a2xz6.js → workspace-vprd2cpq.js} +48 -48
- package/dist/chunks/{file-access-bm7jthd3.js → workspace-vrk25kfx.js} +26 -26
- package/dist/chunks/{file-access-vrpz8t5t.js → workspace-vrpz8t5t.js} +5 -5
- package/dist/chunks/{file-access-f062ken5.js → workspace-vw6eyh63.js} +6 -6
- package/dist/chunks/{file-access-c3jkddnq.js → workspace-vz659dg8.js} +6 -6
- package/dist/chunks/{file-access-vzcthcp8.js → workspace-vzcthcp8.js} +1 -1
- package/dist/chunks/{file-access-vzs5sf6e.js → workspace-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-access-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-access-7s2tn799.js → workspace-w3x9v1nk.js} +8 -8
- package/dist/chunks/{file-access-wd3x2cqz.js → workspace-wd3x2cqz.js} +2 -2
- package/dist/chunks/{file-access-wd87259q.js → workspace-wd87259q.js} +1 -1
- package/dist/chunks/{file-access-9sy143aw.js → workspace-wgca8pcg.js} +3 -3
- package/dist/chunks/{file-access-h5w29vws.js → workspace-wxyynt4w.js} +1 -1
- package/dist/chunks/{file-access-ky3seynh.js → workspace-x0600czv.js} +2 -2
- package/dist/chunks/{file-access-x1ezjp6w.js → workspace-x1ezjp6w.js} +1 -1
- package/dist/chunks/{file-access-nmj3j4b2.js → workspace-xaqfg0qp.js} +3 -3
- package/dist/chunks/{file-access-drwq78ky.js → workspace-xfkkasph.js} +4 -4
- package/dist/chunks/{file-access-mpeg9c4h.js → workspace-xfp6s5ka.js} +12 -12
- package/dist/chunks/{file-access-xkntkrq7.js → workspace-xkntkrq7.js} +2 -2
- package/dist/chunks/{file-access-am8bjgc7.js → workspace-xmh8t9jm.js} +10 -10
- package/dist/chunks/{file-access-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-access-5jnj5r41.js → workspace-y2sw0xjf.js} +32 -32
- package/dist/chunks/{file-access-0na0gq9y.js → workspace-ybfe78wp.js} +42 -42
- package/dist/chunks/{file-access-4xqqv2eq.js → workspace-yddyfygy.js} +16 -16
- package/dist/chunks/{file-access-0gqkrztv.js → workspace-yfvrmt6j.js} +34 -34
- package/dist/chunks/{file-access-2p623br6.js → workspace-yq14pbr7.js} +5 -5
- package/dist/chunks/{file-access-yrhqyw5v.js → workspace-yrhqyw5v.js} +1 -1
- package/dist/chunks/{file-access-s4enseaf.js → workspace-yrznvahk.js} +2 -2
- package/dist/chunks/{file-access-911xaqx0.js → workspace-yttbpxek.js} +24 -24
- package/dist/chunks/{file-access-z07pqspn.js → workspace-z07pqspn.js} +3 -3
- package/dist/chunks/{file-access-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-access-02170c8p.js → workspace-z1v6gmzf.js} +5 -5
- package/dist/chunks/{file-access-v0t94end.js → workspace-z243wpgr.js} +5 -5
- package/dist/chunks/{file-access-29x78va6.js → workspace-z63w68vq.js} +6 -6
- package/dist/chunks/{file-access-zeh9ct20.js → workspace-zeh9ct20.js} +2 -2
- package/dist/chunks/{file-access-3mwv30z9.js → workspace-zmkvdbb2.js} +13 -13
- package/dist/chunks/{file-access-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-access-zgbj96fe.js → workspace-zsw7hnhc.js} +29 -29
- package/dist/chunks/{file-access-zxq2ej10.js → workspace-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 +81 -81
- package/dist/config/discovery.js +82 -82
- 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 +160 -160
- 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 +123 -123
- 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 +125 -125
- 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 +124 -124
- 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 +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- 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 +370 -370
- 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/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 +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +82 -82
- 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 +361 -361
- 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 +88 -88
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +69 -69
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +358 -358
- package/dist/location.js +89 -89
- 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 +96 -96
- package/dist/model.js +102 -102
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- 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/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 +5 -5
- 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 +94 -94
- 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 +120 -120
- 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 +161 -161
- package/dist/plugin/sdk.js +72 -72
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- 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/verbosity.js +93 -93
- 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 +6 -6
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- 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 +5 -5
- 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 +15 -15
- package/dist/session/inbox.js +86 -86
- 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 +93 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +7 -7
- 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 +1 -1
- 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 +2 -2
- package/dist/session/runner/step.js +124 -124
- 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 +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +154 -154
- 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 +7 -7
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- 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 +127 -127
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- 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 +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- 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 +14 -14
- package/dist/types/location.d.ts +1 -3
- package/dist/types/project.d.ts +1 -3
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- 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 +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- 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/file-access-5hg325bh.js +0 -252
- package/dist/chunks/file-access-619r8v3y.js +0 -18
- package/dist/chunks/file-access-9t1exmx7.js +0 -507
- package/dist/chunks/file-access-nyn33q22.js +0 -43
- package/dist/chunks/file-access-znyh501z.js +0 -26
- /package/dist/chunks/{file-access-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-access-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-access-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-access-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-access-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-access-24dcb14g.js → workspace-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-access-2710q6r3.js → workspace-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-access-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-access-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-access-34c7v6d4.js → workspace-34c7v6d4.js} +0 -0
- /package/dist/chunks/{file-access-359p4xyc.js → workspace-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-access-3asan66x.js → workspace-3asan66x.js} +0 -0
- /package/dist/chunks/{file-access-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-access-3w5fmr99.js → workspace-3w5fmr99.js} +0 -0
- /package/dist/chunks/{file-access-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-access-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-access-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-access-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-access-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-access-53557ph1.js → workspace-53557ph1.js} +0 -0
- /package/dist/chunks/{file-access-550bvhaj.js → workspace-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-access-6prwharc.js → workspace-6prwharc.js} +0 -0
- /package/dist/chunks/{file-access-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-access-7m9af43g.js → workspace-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-access-822emrt2.js → workspace-822emrt2.js} +0 -0
- /package/dist/chunks/{file-access-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-access-8n3pysct.js → workspace-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-access-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-access-922hggd3.js → workspace-922hggd3.js} +0 -0
- /package/dist/chunks/{file-access-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-access-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-access-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-access-af5trqkr.js → workspace-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-access-afrmfg78.js → workspace-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-access-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-access-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-access-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-access-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-access-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-access-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-access-d9fn303g.js → workspace-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-access-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-access-dajrwvna.js → workspace-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-access-dap0rakb.js → workspace-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-access-df08tz66.js → workspace-df08tz66.js} +0 -0
- /package/dist/chunks/{file-access-dy18nga0.js → workspace-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-access-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-access-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-access-ec1grn59.js → workspace-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-access-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-access-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-access-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-access-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-access-faypxj3z.js → workspace-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-access-fd410y7t.js → workspace-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-access-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-access-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-access-g86h250q.js → workspace-g86h250q.js} +0 -0
- /package/dist/chunks/{file-access-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-access-gftt206x.js → workspace-gftt206x.js} +0 -0
- /package/dist/chunks/{file-access-hjbc5kem.js → workspace-hjbc5kem.js} +0 -0
- /package/dist/chunks/{file-access-hk9envan.js → workspace-hk9envan.js} +0 -0
- /package/dist/chunks/{file-access-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-access-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-access-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-access-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-access-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-access-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-access-mp448xyj.js → workspace-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-access-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-access-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-access-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-access-njntx4h6.js → workspace-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-access-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-access-q74kybfr.js → workspace-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-access-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-access-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-access-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-access-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-access-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-access-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-access-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-access-sk3qaz4a.js → workspace-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{file-access-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-access-w803qqfp.js → workspace-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-access-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-access-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-access-wtztk69x.js → workspace-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-access-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-access-x61499pn.js → workspace-x61499pn.js} +0 -0
- /package/dist/chunks/{file-access-y44na4kk.js → workspace-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-access-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
- /package/dist/chunks/{file-access-y8f7s663.js → workspace-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-access-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-access-ym463w8f.js → workspace-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-access-z9919s4g.js → workspace-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-3dsvdpyk.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workspace-82r76d2b.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workspace-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./workspace-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./workspace-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: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
|
+
ID: () => ID17,
|
|
25
|
+
Info: () => Info33,
|
|
26
26
|
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service81,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node85
|
|
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 ID17 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
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 Info33 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID17,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service81 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service81, 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 Info33({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service81.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(Service74, 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 Info33({
|
|
80
|
+
id: ID17.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(Service74, 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(Service74, 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(Service74, 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(Service74, 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 node85 = makeGlobalNode({ service: Service81, layer, deps: [node88, node87] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID17, OAuth3, Key4, Value2, Event20, Info33, Service81, node85, exports_credential };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service77,
|
|
6
|
+
node81
|
|
7
|
+
} from "./workspace-fd43cwvv.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse5,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workspace-6h73sxmp.js";
|
|
14
14
|
import {
|
|
15
15
|
Service76,
|
|
16
16
|
node80
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./workspace-xaqfg0qp.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./workspace-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/repository-cache.ts
|
|
23
23
|
var exports_repository_cache = {};
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service75,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node79,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service75 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service77;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
109
|
const kv = yield* Service76;
|
|
110
|
-
return
|
|
110
|
+
return Service75.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse5(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse5(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node79 = makeGlobalNode({
|
|
171
|
+
service: Service75,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node81, Global.node, node80]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service75, isError2, validateBranch2, node79, exports_repository_cache };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/project/schema.ts
|
|
9
9
|
var exports_schema = {};
|
|
10
10
|
__export(exports_schema, {
|
|
11
11
|
Current: () => Current3,
|
|
12
|
-
Event: () =>
|
|
13
|
-
ID: () =>
|
|
14
|
-
Info: () =>
|
|
12
|
+
Event: () => Event17,
|
|
13
|
+
ID: () => ID15,
|
|
14
|
+
Info: () => Info30,
|
|
15
15
|
ProjectSchema: () => exports_schema,
|
|
16
16
|
UpdateInput: () => UpdateInput4,
|
|
17
17
|
Vcs: () => Vcs3
|
|
18
18
|
});
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { Project } from "@opencode/schema/project";
|
|
21
|
-
var
|
|
21
|
+
var ID15 = Project.ID;
|
|
22
22
|
var Current3 = Project.Current;
|
|
23
|
-
var
|
|
23
|
+
var Info30 = Project.Info;
|
|
24
24
|
var UpdateInput4 = Project.UpdateInput;
|
|
25
|
-
var
|
|
25
|
+
var Event17 = Project.Event;
|
|
26
26
|
var Vcs3 = Schema.Struct({
|
|
27
27
|
type: Project.Vcs,
|
|
28
28
|
store: AbsolutePath2
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { ID15, Current3, Info30, UpdateInput4, Event17, Vcs3, exports_schema };
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node81
|
|
7
|
+
} from "./workspace-fd43cwvv.js";
|
|
8
8
|
import {
|
|
9
9
|
Slug2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workspace-gebd4c9n.js";
|
|
11
11
|
import {
|
|
12
12
|
Service84,
|
|
13
13
|
node88
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./workspace-3dsvdpyk.js";
|
|
15
15
|
import {
|
|
16
16
|
Service83,
|
|
17
17
|
node87
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workspace-82r76d2b.js";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workspace-wd3x2cqz.js";
|
|
22
22
|
import {
|
|
23
23
|
WorktreeTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workspace-94ek1h2f.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
26
|
+
ID14,
|
|
27
|
+
NotFoundError9
|
|
28
|
+
} from "./workspace-4k5pqwqv.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Ref3
|
|
31
|
+
} from "./workspace-vp8zed57.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service58,
|
|
34
|
+
node60
|
|
35
|
+
} from "./workspace-np5vbz7c.js";
|
|
36
36
|
import {
|
|
37
37
|
DirectoryUnavailableError2,
|
|
38
38
|
canonical2
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./workspace-gv6a8nnw.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./
|
|
41
|
+
make12
|
|
42
|
+
} from "./workspace-qvqshg0f.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
} from "./
|
|
44
|
+
Service17
|
|
45
|
+
} from "./workspace-vbksr8hy.js";
|
|
46
46
|
import {
|
|
47
47
|
__export
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./workspace-9rqn6x4v.js";
|
|
49
49
|
|
|
50
50
|
// src/worktree.ts
|
|
51
51
|
var exports_worktree2 = {};
|
|
52
52
|
__export(exports_worktree2, {
|
|
53
|
-
CreateInput: () =>
|
|
53
|
+
CreateInput: () => CreateInput2,
|
|
54
54
|
DestinationExistsError: () => DestinationExistsError2,
|
|
55
55
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
56
|
-
Event: () =>
|
|
57
|
-
Info: () =>
|
|
56
|
+
Event: () => Event4,
|
|
57
|
+
Info: () => Info3,
|
|
58
58
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
59
59
|
List: () => List2,
|
|
60
60
|
ListEntry: () => ListEntry3,
|
|
61
61
|
OperationError: () => OperationError2,
|
|
62
62
|
RemoveInput: () => RemoveInput2,
|
|
63
|
-
Service: () =>
|
|
63
|
+
Service: () => Service16,
|
|
64
64
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
65
65
|
StrategyID: () => StrategyID2,
|
|
66
66
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
67
67
|
Worktree: () => exports_worktree2,
|
|
68
|
-
node: () =>
|
|
68
|
+
node: () => node19
|
|
69
69
|
});
|
|
70
70
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
71
71
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -77,13 +77,13 @@ import { AppProcess } from "@opencode/util/process";
|
|
|
77
77
|
import { ChildProcess } from "effect/unstable/process";
|
|
78
78
|
import { OperationError as OperationError2 } from "@opencode/schema/worktree";
|
|
79
79
|
var StrategyID2 = Worktree.StrategyID;
|
|
80
|
-
var
|
|
80
|
+
var CreateInput2 = Worktree.CreateInput;
|
|
81
81
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
82
|
-
var
|
|
82
|
+
var Info3 = Worktree.Info;
|
|
83
83
|
var List2 = Worktree.List;
|
|
84
84
|
var ListEntry3 = Worktree.ListEntry;
|
|
85
85
|
|
|
86
|
-
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID:
|
|
86
|
+
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID14, directory: Schema.optional(AbsolutePath2) }) {
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
|
|
@@ -94,22 +94,22 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
|
|
|
94
94
|
|
|
95
95
|
class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Event4 = Worktree.Event;
|
|
98
98
|
|
|
99
|
-
class
|
|
99
|
+
class Service16 extends Context.Service()("@opencode/Worktree") {
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
103
|
const database = yield* Service84;
|
|
104
104
|
const db = database.db;
|
|
105
105
|
const bus = yield* Service83;
|
|
106
106
|
const processService = yield* AppProcess.Service;
|
|
107
|
-
const locations = yield*
|
|
108
|
-
const gitStrategy = yield*
|
|
107
|
+
const locations = yield* Service58;
|
|
108
|
+
const gitStrategy = yield* make12;
|
|
109
109
|
const project = Effect.fnUntraced(function* (projectID) {
|
|
110
110
|
const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
|
|
111
111
|
if (!row)
|
|
112
|
-
return yield* new
|
|
112
|
+
return yield* new NotFoundError9({ projectID });
|
|
113
113
|
return row;
|
|
114
114
|
});
|
|
115
115
|
const load = Effect.fnUntraced(function* (directory, current) {
|
|
@@ -118,13 +118,13 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
118
118
|
if (current?.directory === directory)
|
|
119
119
|
return current.get();
|
|
120
120
|
const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
|
|
121
|
-
const context = yield* locations.contextEffect(
|
|
121
|
+
const context = yield* locations.contextEffect(Ref3.make({ directory }));
|
|
122
122
|
yield* Context.get(context, Plugin.Service).awaitActivation;
|
|
123
|
-
return Context.get(context,
|
|
123
|
+
return Context.get(context, Service17).get();
|
|
124
124
|
});
|
|
125
125
|
const changed = Effect.fnUntraced(function* (projectID, update) {
|
|
126
126
|
if (update)
|
|
127
|
-
yield* bus.publish(
|
|
127
|
+
yield* bus.publish(Event4.Updated, { projectID });
|
|
128
128
|
});
|
|
129
129
|
const ops = {
|
|
130
130
|
list: Effect.fnUntraced(function* (projectID) {
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
251
251
|
})).pipe(Effect.orDie);
|
|
252
252
|
yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
|
|
253
253
|
}, Effect.scoped);
|
|
254
|
-
return
|
|
254
|
+
return Service16.of({
|
|
255
255
|
list: Effect.fn("Worktree.list")(function* (input) {
|
|
256
256
|
yield* project(input.projectID);
|
|
257
257
|
return yield* ops.list(input.projectID);
|
|
@@ -261,10 +261,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
261
261
|
refresh
|
|
262
262
|
});
|
|
263
263
|
}));
|
|
264
|
-
var
|
|
265
|
-
service:
|
|
264
|
+
var node19 = Node.makeGlobalNode({
|
|
265
|
+
service: Service16,
|
|
266
266
|
layer,
|
|
267
|
-
deps: [FSUtil.node,
|
|
267
|
+
deps: [FSUtil.node, node81, node87, node88, AppProcess.node, node60]
|
|
268
268
|
});
|
|
269
269
|
function operationError(strategy, operation, error) {
|
|
270
270
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -274,4 +274,4 @@ function operationError(strategy, operation, error) {
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
export { StrategyID2,
|
|
277
|
+
export { StrategyID2, CreateInput2, RemoveInput2, Info3, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event4, Service16, node19, exports_worktree2, OperationError2 };
|