@opencode/core 0.0.0-dev-20441 → 0.0.0-dev-20443
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 +73 -73
- package/dist/chunks/{managed-policy-pds74t41.js → filesystem-01m43rby.js} +3 -3
- package/dist/chunks/{managed-policy-cr2axj5k.js → filesystem-0dk0rwka.js} +24 -24
- package/dist/chunks/{managed-policy-as7cf5zz.js → filesystem-0dygnakk.js} +4 -4
- package/dist/chunks/{managed-policy-z78tk0yz.js → filesystem-0ev610yy.js} +12 -12
- package/dist/chunks/{managed-policy-0j77ygfz.js → filesystem-0j77ygfz.js} +2 -2
- package/dist/chunks/{managed-policy-kdc1bwjr.js → filesystem-0my2vamg.js} +5 -5
- package/dist/chunks/{managed-policy-0paq2nw3.js → filesystem-0paq2nw3.js} +1 -1
- package/dist/chunks/{managed-policy-p7f3nfjj.js → filesystem-0qa6hg2d.js} +5 -5
- package/dist/chunks/{managed-policy-qvreyy9g.js → filesystem-0ryd0fps.js} +5 -5
- package/dist/chunks/{managed-policy-0vbcp93d.js → filesystem-0vbcp93d.js} +2 -2
- package/dist/chunks/{managed-policy-ffxkc1dx.js → filesystem-10h2grd6.js} +11 -11
- package/dist/chunks/{managed-policy-r50e1gtz.js → filesystem-11p8z3nt.js} +22 -22
- package/dist/chunks/{managed-policy-60awvy76.js → filesystem-18ekssq5.js} +23 -23
- package/dist/chunks/{managed-policy-txh8sszt.js → filesystem-1cd2s10v.js} +33 -33
- package/dist/chunks/{managed-policy-1dazxqgg.js → filesystem-1dazxqgg.js} +2 -2
- package/dist/chunks/{managed-policy-b4cmytvd.js → filesystem-1ejg90ew.js} +25 -25
- package/dist/chunks/{managed-policy-jvnghvnw.js → filesystem-1g96y08y.js} +8 -8
- package/dist/chunks/{managed-policy-jc0bt329.js → filesystem-1kkbmfzx.js} +22 -22
- package/dist/chunks/{managed-policy-2e4k7ra5.js → filesystem-1mc0gcc5.js} +22 -22
- package/dist/chunks/{managed-policy-qdwke1dj.js → filesystem-1npxxjtc.js} +23 -23
- package/dist/chunks/{managed-policy-dd3asrma.js → filesystem-1w6eav72.js} +38 -38
- package/dist/chunks/{managed-policy-6wzfh0zm.js → filesystem-1y8z5g4w.js} +10 -10
- package/dist/chunks/{managed-policy-wha6r7ch.js → filesystem-1yrx8exs.js} +53 -53
- package/dist/chunks/{managed-policy-kdwgn1zz.js → filesystem-1zacy60w.js} +22 -22
- package/dist/chunks/{managed-policy-21r38tys.js → filesystem-21r38tys.js} +1 -1
- package/dist/chunks/{managed-policy-2a5m3afh.js → filesystem-2a5m3afh.js} +1 -1
- package/dist/chunks/{managed-policy-2ccvkpx1.js → filesystem-2ccvkpx1.js} +2 -2
- package/dist/chunks/{managed-policy-md8svtq5.js → filesystem-2fyye2bf.js} +16 -16
- package/dist/chunks/{managed-policy-bc8apsv6.js → filesystem-2q9z57te.js} +89 -89
- package/dist/chunks/{managed-policy-bs15bkva.js → filesystem-2vkscmz1.js} +16 -16
- package/dist/chunks/{managed-policy-gxg0hsmq.js → filesystem-30kepn8q.js} +21 -21
- package/dist/chunks/{managed-policy-ss0awb04.js → filesystem-35agz59w.js} +6 -6
- package/dist/chunks/{managed-policy-h2b79v29.js → filesystem-3cegwx68.js} +2 -2
- package/dist/chunks/{managed-policy-3fc6dm20.js → filesystem-3fc6dm20.js} +1 -1
- package/dist/chunks/{managed-policy-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
- package/dist/chunks/{managed-policy-mfa58mh8.js → filesystem-3k6hcm1s.js} +18 -18
- package/dist/chunks/{managed-policy-jn3csxh6.js → filesystem-3kqa2599.js} +5 -5
- package/dist/chunks/{managed-policy-43x1d0qx.js → filesystem-3qj994h1.js} +18 -18
- package/dist/chunks/{managed-policy-wabjqz2k.js → filesystem-3smkbt6f.js} +3 -3
- package/dist/chunks/{managed-policy-3smtnn6g.js → filesystem-3smtnn6g.js} +1 -1
- package/dist/chunks/{managed-policy-3tvqynh2.js → filesystem-3tvqynh2.js} +1 -1
- package/dist/chunks/{managed-policy-54r1wzpb.js → filesystem-3v5tjer0.js} +7 -7
- package/dist/chunks/{managed-policy-3zsf4n22.js → filesystem-3zsf4n22.js} +1 -1
- package/dist/chunks/{managed-policy-nnzbx27x.js → filesystem-4407emfp.js} +9 -9
- package/dist/chunks/{managed-policy-mze9kz5f.js → filesystem-47jkzegy.js} +5 -5
- package/dist/chunks/{managed-policy-j0a0nmhk.js → filesystem-4tje82sx.js} +6 -6
- package/dist/chunks/{managed-policy-evghyp61.js → filesystem-4wft2je9.js} +7 -7
- package/dist/chunks/{managed-policy-54ma36ye.js → filesystem-54ma36ye.js} +1 -1
- package/dist/chunks/{managed-policy-33w4ejhs.js → filesystem-56gdpj1q.js} +6 -6
- package/dist/chunks/{managed-policy-1x3b90mb.js → filesystem-5d68yzj5.js} +32 -32
- package/dist/chunks/{managed-policy-5daktx2q.js → filesystem-5daktx2q.js} +1 -1
- package/dist/chunks/{managed-policy-7jzb6arw.js → filesystem-5gq66ctg.js} +12 -12
- package/dist/chunks/{managed-policy-h4s95ce9.js → filesystem-5k9mpvz5.js} +8 -8
- package/dist/chunks/{managed-policy-5t3nmthw.js → filesystem-5t3nmthw.js} +2 -2
- package/dist/chunks/{managed-policy-srq8z0b0.js → filesystem-5tcm9639.js} +9 -9
- package/dist/chunks/{managed-policy-dpkd38cp.js → filesystem-5w1b85vj.js} +21 -21
- package/dist/chunks/{managed-policy-nprb0dpq.js → filesystem-638jzcf9.js} +11 -11
- package/dist/chunks/{managed-policy-669tq793.js → filesystem-669tq793.js} +1 -1
- package/dist/chunks/{managed-policy-pmgjrk6j.js → filesystem-66c35f44.js} +32 -32
- package/dist/chunks/{managed-policy-tb61xc83.js → filesystem-6bxp8d4e.js} +33 -33
- package/dist/chunks/{managed-policy-2kxr3st0.js → filesystem-6ch0d3kn.js} +14 -14
- package/dist/chunks/{managed-policy-7q5bqpa7.js → filesystem-6erkktj7.js} +41 -41
- package/dist/chunks/{managed-policy-qt4gsjkk.js → filesystem-6ns3svyy.js} +15 -15
- package/dist/chunks/{managed-policy-pb0nz00d.js → filesystem-6p82jt3d.js} +31 -31
- package/dist/chunks/{managed-policy-gfr7d11b.js → filesystem-6s6p3zn1.js} +60 -60
- package/dist/chunks/{managed-policy-vdwhce4b.js → filesystem-6ykekk54.js} +3 -3
- package/dist/chunks/{managed-policy-6yz0wx8n.js → filesystem-6yz0wx8n.js} +2 -2
- package/dist/chunks/{managed-policy-9a2xe43y.js → filesystem-74zmxtxp.js} +13 -13
- package/dist/chunks/{managed-policy-nd132scw.js → filesystem-75kqmam7.js} +1 -1
- package/dist/chunks/{managed-policy-djszqvmq.js → filesystem-79qaa2kf.js} +9 -9
- package/dist/chunks/{managed-policy-5hm956bs.js → filesystem-7ads88xp.js} +22 -22
- package/dist/chunks/{managed-policy-xgz93h8v.js → filesystem-7bga7ps0.js} +19 -19
- package/dist/chunks/{managed-policy-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
- package/dist/chunks/{managed-policy-fcrkznn8.js → filesystem-7dqw4kz8.js} +5 -5
- package/dist/chunks/{managed-policy-q8r22k9v.js → filesystem-7m5f9412.js} +8 -8
- package/dist/chunks/{managed-policy-e4f82xnm.js → filesystem-7pf86645.js} +8 -8
- package/dist/chunks/{managed-policy-rn04vraz.js → filesystem-7ry2mxz0.js} +24 -24
- package/dist/chunks/{managed-policy-p0rx9937.js → filesystem-847v5pgt.js} +11 -11
- package/dist/chunks/{managed-policy-mqbe75y8.js → filesystem-84dmcwyh.js} +4 -4
- package/dist/chunks/{managed-policy-1dvck2a7.js → filesystem-84h8c373.js} +2 -2
- package/dist/chunks/{managed-policy-84txncab.js → filesystem-84txncab.js} +1 -1
- package/dist/chunks/{managed-policy-tcezcvh9.js → filesystem-89znhe33.js} +4 -4
- package/dist/chunks/{managed-policy-zxef6ncy.js → filesystem-8a65fc54.js} +11 -11
- package/dist/chunks/{managed-policy-8d7r5vzw.js → filesystem-8d7r5vzw.js} +1 -1
- package/dist/chunks/{managed-policy-aj0rpvpk.js → filesystem-8n9ywp6t.js} +31 -31
- package/dist/chunks/{managed-policy-m0sxwb6g.js → filesystem-8q0x6p2t.js} +9 -9
- package/dist/chunks/{managed-policy-n7apwg8g.js → filesystem-8qhx0rtq.js} +26 -26
- package/dist/chunks/{managed-policy-xp3fh2h7.js → filesystem-8whseyrk.js} +1 -1
- package/dist/chunks/{managed-policy-1rn5pcm9.js → filesystem-8zp79j7j.js} +4 -4
- package/dist/chunks/{managed-policy-hehaxqkv.js → filesystem-96ctqc5x.js} +4 -4
- package/dist/chunks/{managed-policy-0x1ym7gt.js → filesystem-9cyywgrt.js} +3 -3
- package/dist/chunks/{managed-policy-fv818a4f.js → filesystem-9et5e0c8.js} +24 -24
- package/dist/chunks/{managed-policy-685b7gp0.js → filesystem-9fj76a9k.js} +9 -9
- package/dist/chunks/{managed-policy-e9j3xjpe.js → filesystem-9nr1cgt9.js} +15 -15
- package/dist/chunks/{managed-policy-y8vcwf44.js → filesystem-9ptnejtj.js} +42 -42
- package/dist/chunks/{managed-policy-ep2s8925.js → filesystem-9x8zefvn.js} +20 -20
- package/dist/chunks/{managed-policy-fgy1zn9b.js → filesystem-9xnh16f9.js} +5 -5
- package/dist/chunks/{managed-policy-mhkvc446.js → filesystem-a1gpj94z.js} +3 -3
- package/dist/chunks/{managed-policy-btbmdjwj.js → filesystem-a2rpfkac.js} +4 -4
- package/dist/chunks/{managed-policy-mnhvys94.js → filesystem-a394ta18.js} +32 -32
- package/dist/chunks/{managed-policy-8pvr3va3.js → filesystem-a84fs7pf.js} +7 -7
- package/dist/chunks/{managed-policy-nbkk43by.js → filesystem-a99akv2k.js} +26 -26
- package/dist/chunks/{managed-policy-aaet6srn.js → filesystem-aaet6srn.js} +2 -2
- package/dist/chunks/{managed-policy-kzdcqyn1.js → filesystem-aeb4sny1.js} +5 -5
- package/dist/chunks/{managed-policy-ts3yaxzc.js → filesystem-aex2jcjx.js} +6 -6
- package/dist/chunks/{managed-policy-k79tzb9n.js → filesystem-aezf2awf.js} +9 -9
- package/dist/chunks/{managed-policy-ybhcjgdh.js → filesystem-afs21wh3.js} +4 -4
- package/dist/chunks/{managed-policy-8rq91117.js → filesystem-ap661cbc.js} +43 -43
- package/dist/chunks/filesystem-apczx2yy.js +252 -0
- package/dist/chunks/{managed-policy-frxdqaz8.js → filesystem-aqd63c5t.js} +22 -22
- package/dist/chunks/{managed-policy-aag3ds7p.js → filesystem-arfpz5bc.js} +11 -11
- package/dist/chunks/{managed-policy-fjx88e6t.js → filesystem-at7fx8t4.js} +20 -20
- package/dist/chunks/{managed-policy-k8962brh.js → filesystem-axtvtek4.js} +4 -4
- package/dist/chunks/{managed-policy-v4qbwabw.js → filesystem-ay8mf0mt.js} +13 -13
- package/dist/chunks/{managed-policy-78kd6mqd.js → filesystem-azee6x5s.js} +8 -8
- package/dist/chunks/{managed-policy-bb33hrzj.js → filesystem-b3y0v5k5.js} +50 -50
- package/dist/chunks/{managed-policy-he2ntggs.js → filesystem-b5213z84.js} +24 -24
- package/dist/chunks/{managed-policy-b6gygkdw.js → filesystem-b6gygkdw.js} +2 -2
- package/dist/chunks/{managed-policy-waj7sjcg.js → filesystem-bawtyvfr.js} +2 -2
- package/dist/chunks/{managed-policy-3e0vapc4.js → filesystem-bbq0j6ta.js} +22 -22
- package/dist/chunks/{managed-policy-g58bdygq.js → filesystem-bmcagzxz.js} +11 -11
- package/dist/chunks/{managed-policy-p7pyfceq.js → filesystem-bn3rhc52.js} +8 -8
- package/dist/chunks/{managed-policy-fdqsz5aw.js → filesystem-bzg1m3qp.js} +8 -8
- package/dist/chunks/{managed-policy-rjgmx88b.js → filesystem-bzz3kdrt.js} +47 -47
- package/dist/chunks/{managed-policy-jzfx556m.js → filesystem-cft96kz9.js} +9 -9
- package/dist/chunks/{managed-policy-pba0qj75.js → filesystem-cqvpsbxa.js} +29 -29
- package/dist/chunks/{managed-policy-p5vm2k94.js → filesystem-ct0pajy1.js} +15 -15
- package/dist/chunks/{managed-policy-y6kccm89.js → filesystem-ctzssw83.js} +5 -5
- package/dist/chunks/{managed-policy-99aremag.js → filesystem-cz0q7g0x.js} +10 -10
- package/dist/chunks/{managed-policy-rnp8xwnj.js → filesystem-dddrhpmg.js} +9 -9
- package/dist/chunks/{managed-policy-mtspvnzw.js → filesystem-dj1ywzdr.js} +11 -11
- package/dist/chunks/{managed-policy-xkntkrq7.js → filesystem-dmqcgk4z.js} +5 -5
- package/dist/chunks/{managed-policy-mpk0rfs5.js → filesystem-dnxkq42g.js} +4 -4
- package/dist/chunks/{managed-policy-d9jqg3n6.js → filesystem-drvpf3hy.js} +17 -17
- package/dist/chunks/{managed-policy-351zg8wc.js → filesystem-dx3fq8zr.js} +49 -49
- package/dist/chunks/{managed-policy-3y7my2db.js → filesystem-dyxxb0pf.js} +24 -24
- package/dist/chunks/{managed-policy-zd3r6yme.js → filesystem-e2fdwa3e.js} +7 -7
- package/dist/chunks/{managed-policy-n2cv33mw.js → filesystem-ebfbhmvn.js} +11 -11
- package/dist/chunks/{managed-policy-ef5x83kb.js → filesystem-ef5x83kb.js} +1 -1
- package/dist/chunks/{managed-policy-0mgww3tz.js → filesystem-epq6d0bg.js} +38 -38
- package/dist/chunks/{managed-policy-etq0c3wd.js → filesystem-etq0c3wd.js} +1 -1
- package/dist/chunks/{managed-policy-2b5dj6ta.js → filesystem-etvafb8y.js} +4 -4
- package/dist/chunks/{managed-policy-tpw6cwsb.js → filesystem-eys57y9b.js} +6 -6
- package/dist/chunks/{managed-policy-rw5jpqwf.js → filesystem-f2rw3rqw.js} +27 -27
- package/dist/chunks/{managed-policy-71az546q.js → filesystem-f75zav2x.js} +2 -2
- package/dist/chunks/{managed-policy-e0ydadek.js → filesystem-fcnd5sz6.js} +37 -37
- package/dist/chunks/{managed-policy-25gwbbvm.js → filesystem-fkd5e0q7.js} +33 -33
- package/dist/chunks/{managed-policy-1e489b4a.js → filesystem-g2k2w7bp.js} +15 -15
- package/dist/chunks/{managed-policy-tc94ysxq.js → filesystem-g3mpt7p6.js} +10 -10
- package/dist/chunks/{managed-policy-gd4qta3r.js → filesystem-gd4qta3r.js} +1 -1
- package/dist/chunks/{managed-policy-y59we1re.js → filesystem-gkyt9at6.js} +17 -17
- package/dist/chunks/{managed-policy-9wtfrnq6.js → filesystem-gmg08tbf.js} +14 -14
- package/dist/chunks/filesystem-gyce5qg1.js +18 -0
- package/dist/chunks/{managed-policy-pknpvjb9.js → filesystem-h0grdqdb.js} +1 -1
- package/dist/chunks/{managed-policy-r2xp9k1m.js → filesystem-h2js7m9j.js} +7 -7
- package/dist/chunks/{managed-policy-bm71xk2t.js → filesystem-h62vdr7h.js} +8 -8
- package/dist/chunks/{managed-policy-h6vf3j39.js → filesystem-h6vf3j39.js} +1 -1
- package/dist/chunks/{managed-policy-pnkbpv6t.js → filesystem-hc9acsgr.js} +9 -9
- package/dist/chunks/{managed-policy-eh7wch50.js → filesystem-hj225006.js} +20 -20
- package/dist/chunks/{managed-policy-ced978hc.js → filesystem-hvvpf5dq.js} +24 -24
- package/dist/chunks/{managed-policy-nznn4wxv.js → filesystem-hxjgngrj.js} +4 -4
- package/dist/chunks/{managed-policy-gm60pqc8.js → filesystem-j4tdrtxm.js} +37 -37
- package/dist/chunks/{managed-policy-j56e64zr.js → filesystem-j56e64zr.js} +1 -1
- package/dist/chunks/{managed-policy-etsdryc9.js → filesystem-j7ghn0hc.js} +13 -13
- package/dist/chunks/{managed-policy-bc9wjsbt.js → filesystem-jepen3yv.js} +35 -35
- package/dist/chunks/{managed-policy-4vk76tpg.js → filesystem-jfz4p9z2.js} +34 -34
- package/dist/chunks/{managed-policy-mrvjcs5x.js → filesystem-jkp0d30b.js} +6 -6
- package/dist/chunks/{managed-policy-607px8n0.js → filesystem-jmh888fr.js} +10 -10
- package/dist/chunks/{managed-policy-j3wqczvx.js → filesystem-jt60k175.js} +22 -22
- package/dist/chunks/{managed-policy-pqx42sqq.js → filesystem-jvkn2v7p.js} +25 -25
- package/dist/chunks/{managed-policy-zcsbnpt8.js → filesystem-jyspzs0j.js} +54 -54
- package/dist/chunks/{managed-policy-37g8b03t.js → filesystem-k00bp9ns.js} +32 -32
- package/dist/chunks/{managed-policy-nzks3jc8.js → filesystem-k3c624dm.js} +3 -3
- package/dist/chunks/{managed-policy-g0q01dbx.js → filesystem-k6w0m00t.js} +24 -24
- package/dist/chunks/{managed-policy-fjvydvzm.js → filesystem-k8e0krnc.js} +9 -9
- package/dist/chunks/{managed-policy-hv5jbe8m.js → filesystem-k8etnr3r.js} +8 -8
- package/dist/chunks/{managed-policy-9e5bzkjp.js → filesystem-kb9j3d72.js} +3 -3
- package/dist/chunks/{managed-policy-5t5wrhde.js → filesystem-kks2x84p.js} +2 -2
- package/dist/chunks/{managed-policy-tm3228f0.js → filesystem-kmmmaj33.js} +15 -15
- package/dist/chunks/{managed-policy-b0g9mcy2.js → filesystem-kqgfg1gd.js} +8 -8
- package/dist/chunks/{managed-policy-axqn7bsr.js → filesystem-kv03y1hk.js} +5 -5
- package/dist/chunks/{managed-policy-m3fdjcah.js → filesystem-m3fdjcah.js} +1 -1
- package/dist/chunks/{managed-policy-nn9xsasx.js → filesystem-m70jr5z4.js} +8 -8
- package/dist/chunks/{managed-policy-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
- package/dist/chunks/{managed-policy-mazbtkaa.js → filesystem-mazbtkaa.js} +2 -2
- package/dist/chunks/{managed-policy-hazm37c2.js → filesystem-mfxaeyt0.js} +27 -27
- package/dist/chunks/{managed-policy-m7p0z7m0.js → filesystem-mp16q3af.js} +13 -13
- package/dist/chunks/{managed-policy-ftwxvkt4.js → filesystem-n2p9bvh6.js} +3 -3
- package/dist/chunks/{managed-policy-t8rpwxdy.js → filesystem-n5a91ywv.js} +13 -13
- package/dist/chunks/{managed-policy-qztr35h0.js → filesystem-natgk2ns.js} +37 -37
- package/dist/chunks/{managed-policy-q1z5zf7b.js → filesystem-nbc5ax32.js} +18 -18
- package/dist/chunks/{managed-policy-szvvj7a8.js → filesystem-nbvh7zyw.js} +30 -30
- package/dist/chunks/{managed-policy-5btfe6ae.js → filesystem-ncqdhjqh.js} +18 -18
- package/dist/chunks/{managed-policy-sd7vvvw1.js → filesystem-ne7kg025.js} +11 -11
- package/dist/chunks/{managed-policy-aq6aw40w.js → filesystem-nn5kxcxk.js} +13 -13
- package/dist/chunks/{managed-policy-e3q501tr.js → filesystem-npxrv172.js} +28 -28
- package/dist/chunks/{managed-policy-q1rprvvw.js → filesystem-ns15zm60.js} +6 -6
- package/dist/chunks/{managed-policy-dpkg50ah.js → filesystem-nxm207yx.js} +4 -4
- package/dist/chunks/{managed-policy-drk2psf4.js → filesystem-nz55e0bf.js} +94 -94
- package/dist/chunks/{managed-policy-sx82jsn2.js → filesystem-pah9j43r.js} +19 -19
- package/dist/chunks/{managed-policy-aep6d7pf.js → filesystem-pfpqtqae.js} +32 -32
- package/dist/chunks/{managed-policy-pjvnvgmy.js → filesystem-pjvnvgmy.js} +1 -1
- package/dist/chunks/{managed-policy-pknna89w.js → filesystem-pknna89w.js} +1 -1
- package/dist/chunks/{managed-policy-ve4pfa0n.js → filesystem-pmr4s4kc.js} +4 -4
- package/dist/chunks/{managed-policy-tf6wmrbr.js → filesystem-ps03ea09.js} +36 -36
- package/dist/chunks/{managed-policy-h6m8mpqk.js → filesystem-pxwkarge.js} +6 -6
- package/dist/chunks/{managed-policy-py3kkmfq.js → filesystem-py3kkmfq.js} +2 -2
- package/dist/chunks/{managed-policy-e25ft575.js → filesystem-q3ersh05.js} +8 -8
- package/dist/chunks/{managed-policy-4eewzd5c.js → filesystem-q3jarvj1.js} +16 -16
- package/dist/chunks/{managed-policy-jjftm8c8.js → filesystem-q4xjqs9h.js} +17 -17
- package/dist/chunks/{managed-policy-c1m7pk41.js → filesystem-q694vrse.js} +76 -76
- package/dist/chunks/{managed-policy-jfx0dmmb.js → filesystem-qea7y3j0.js} +11 -11
- package/dist/chunks/{managed-policy-qnc92qwc.js → filesystem-qnc92qwc.js} +1 -1
- package/dist/chunks/{managed-policy-qsdy395h.js → filesystem-qsdy395h.js} +1 -1
- package/dist/chunks/{managed-policy-cqn0vqgm.js → filesystem-qwcntv07.js} +9 -9
- package/dist/chunks/{managed-policy-sv903t49.js → filesystem-r05yckk2.js} +33 -33
- package/dist/chunks/filesystem-r41c29vv.js +26 -0
- package/dist/chunks/{managed-policy-e1xfjk9r.js → filesystem-r48gm0ww.js} +11 -11
- package/dist/chunks/{managed-policy-pd2m4r83.js → filesystem-r6xn9bth.js} +13 -13
- package/dist/chunks/{managed-policy-yp2x3t23.js → filesystem-r8xr0va3.js} +4 -4
- package/dist/chunks/{managed-policy-rdw6cm16.js → filesystem-rdw6cm16.js} +1 -1
- package/dist/chunks/{managed-policy-r44petzp.js → filesystem-ree5ev3t.js} +12 -12
- package/dist/chunks/{managed-policy-rhjbct0v.js → filesystem-rhjbct0v.js} +1 -1
- package/dist/chunks/{managed-policy-v7s6g2ng.js → filesystem-rt0kvsf5.js} +44 -44
- package/dist/chunks/{managed-policy-fcx3gh1b.js → filesystem-rymc5njp.js} +12 -12
- package/dist/chunks/{managed-policy-qygbw77c.js → filesystem-scgrse2b.js} +5 -5
- package/dist/chunks/{managed-policy-z9ccghj6.js → filesystem-sj134kkz.js} +6 -6
- package/dist/chunks/{managed-policy-n70c3kew.js → filesystem-spcfjcge.js} +9 -9
- package/dist/chunks/{managed-policy-ag4rn41e.js → filesystem-t7n9q6bq.js} +4 -4
- package/dist/chunks/{managed-policy-tazgh4e4.js → filesystem-tazgh4e4.js} +1 -1
- package/dist/chunks/{managed-policy-m0r31qfn.js → filesystem-tbmac1c7.js} +4 -4
- package/dist/chunks/{managed-policy-tdstcens.js → filesystem-tdstcens.js} +1 -1
- package/dist/chunks/{managed-policy-tvtrv512.js → filesystem-tvtrv512.js} +1 -1
- package/dist/chunks/{managed-policy-mj50kw8r.js → filesystem-v6q6j16c.js} +5 -5
- package/dist/chunks/{managed-policy-veqvce7d.js → filesystem-veqvce7d.js} +1 -1
- package/dist/chunks/{managed-policy-dyvwp316.js → filesystem-vgw2dme3.js} +8 -8
- package/dist/chunks/{managed-policy-zst01bw0.js → filesystem-vjh28280.js} +3 -3
- package/dist/chunks/{managed-policy-cmtfrzch.js → filesystem-vkgtc4qa.js} +15 -15
- package/dist/chunks/{managed-policy-0gxkv187.js → filesystem-vpefsdnb.js} +38 -38
- package/dist/chunks/{managed-policy-4vnfhphg.js → filesystem-vqxrw9st.js} +21 -21
- package/dist/chunks/{managed-policy-wejmxhte.js → filesystem-vr2a0c8h.js} +32 -32
- package/dist/chunks/{managed-policy-kk00bynn.js → filesystem-vsp1fds9.js} +4 -4
- package/dist/chunks/{managed-policy-09tgsdtt.js → filesystem-vt8t0ymm.js} +48 -48
- package/dist/chunks/{managed-policy-a9z5bk96.js → filesystem-vw0qja5p.js} +18 -18
- package/dist/chunks/{managed-policy-vzcthcp8.js → filesystem-vzcthcp8.js} +1 -1
- package/dist/chunks/{managed-policy-vzs5sf6e.js → filesystem-vzs5sf6e.js} +1 -1
- package/dist/chunks/{managed-policy-806nc8gd.js → filesystem-w0bxms7d.js} +45 -45
- package/dist/chunks/{managed-policy-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
- package/dist/chunks/filesystem-w3xv9s6n.js +507 -0
- package/dist/chunks/{managed-policy-wd87259q.js → filesystem-wd87259q.js} +1 -1
- package/dist/chunks/{managed-policy-n78rmnne.js → filesystem-webnratf.js} +5 -5
- package/dist/chunks/{managed-policy-x1ezjp6w.js → filesystem-x1ezjp6w.js} +1 -1
- package/dist/chunks/{managed-policy-04w7gczn.js → filesystem-x1w5tsma.js} +25 -25
- package/dist/chunks/{managed-policy-qj0gtfb8.js → filesystem-x2qdxhwm.js} +8 -8
- package/dist/chunks/{managed-policy-zrj0t68v.js → filesystem-x80vamh1.js} +11 -11
- package/dist/chunks/{managed-policy-2w735aa9.js → filesystem-x9w9za6h.js} +14 -14
- package/dist/chunks/{managed-policy-5sc7htc6.js → filesystem-xadz8mf8.js} +13 -13
- package/dist/chunks/{managed-policy-ttj5yjcg.js → filesystem-xd579ncr.js} +8 -8
- package/dist/chunks/{managed-policy-xfkkasph.js → filesystem-xfkkasph.js} +1 -1
- package/dist/chunks/{managed-policy-hke7pqdv.js → filesystem-xg97hmyb.js} +22 -22
- package/dist/chunks/{managed-policy-j2wvmznt.js → filesystem-xgqg3fa6.js} +17 -17
- package/dist/chunks/{managed-policy-vsmddcz8.js → filesystem-xkd9f4xc.js} +18 -18
- package/dist/chunks/{managed-policy-yz8cjxbp.js → filesystem-xkez93e1.js} +32 -32
- package/dist/chunks/{managed-policy-ybfcvrar.js → filesystem-xqg1ramt.js} +4 -4
- package/dist/chunks/{managed-policy-reqvjh9d.js → filesystem-xwqhtygt.js} +5 -5
- package/dist/chunks/{managed-policy-fwa0c9w1.js → filesystem-xx0dq7m8.js} +5 -5
- package/dist/chunks/{managed-policy-tzvsdaza.js → filesystem-y06nwv4v.js} +11 -11
- package/dist/chunks/{managed-policy-jvjvhaay.js → filesystem-y0bj6ynv.js} +15 -15
- package/dist/chunks/{managed-policy-y1fvbwt7.js → filesystem-y1fvbwt7.js} +1 -1
- package/dist/chunks/{managed-policy-bv98qs9q.js → filesystem-y5dkda77.js} +16 -16
- package/dist/chunks/{managed-policy-nkz8nrts.js → filesystem-ygj42pe4.js} +36 -36
- package/dist/chunks/{managed-policy-pvj1bsy6.js → filesystem-yk2c168m.js} +32 -32
- package/dist/chunks/{managed-policy-yrhqyw5v.js → filesystem-yrhqyw5v.js} +1 -1
- package/dist/chunks/{managed-policy-3nngm4ht.js → filesystem-ys6344d6.js} +11 -11
- package/dist/chunks/{managed-policy-dq1mqche.js → filesystem-yvkd9agk.js} +11 -11
- package/dist/chunks/{managed-policy-54s6fkez.js → filesystem-z016ngy8.js} +29 -29
- package/dist/chunks/{managed-policy-z0bkrqjs.js → filesystem-z0bkrqjs.js} +1 -1
- package/dist/chunks/{managed-policy-8r8kqds0.js → filesystem-z5tskbjx.js} +24 -24
- package/dist/chunks/{managed-policy-sa998d74.js → filesystem-z7j7bfad.js} +3 -3
- package/dist/chunks/{managed-policy-b7qf1jfc.js → filesystem-z8nc6tc3.js} +183 -183
- package/dist/chunks/{managed-policy-hryzqtvd.js → filesystem-z971tyb0.js} +10 -10
- package/dist/chunks/{managed-policy-xrk8nejm.js → filesystem-zcp5x14n.js} +20 -20
- package/dist/chunks/{managed-policy-kpes0ygv.js → filesystem-zfsg1r2z.js} +26 -26
- package/dist/chunks/{managed-policy-vsvwc77y.js → filesystem-zmx4zm5d.js} +19 -19
- package/dist/chunks/{managed-policy-zr2ceqn5.js → filesystem-zr2ceqn5.js} +1 -1
- package/dist/chunks/{managed-policy-zxq2ej10.js → filesystem-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 +83 -83
- 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 +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- 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 +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 +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +70 -70
- 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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -372
- 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 +74 -74
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- 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 +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +101 -101
- 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 +99 -99
- 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 +363 -363
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- 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 +109 -109
- package/dist/mcp/instructions.js +129 -129
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- 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 +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- 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 +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +335 -335
- 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 +124 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- 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 +95 -95
- 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 +78 -78
- 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 +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- 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 +120 -120
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +72 -72
- 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 +354 -354
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- 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 +222 -222
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +87 -87
- 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/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- 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 +225 -225
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- 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 +120 -120
- 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 +232 -232
- 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 +113 -113
- package/dist/session/runner/retry.js +4 -4
- 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 +170 -170
- 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 +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +224 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +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 +128 -128
- 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 +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- 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 +3 -3
- 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 +2 -2
- 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 +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +7 -7
- 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/managed-policy-1zpth0xw.js +0 -507
- package/dist/chunks/managed-policy-302444qx.js +0 -26
- package/dist/chunks/managed-policy-sp6wn6w5.js +0 -252
- package/dist/chunks/managed-policy-vnkjks7b.js +0 -18
- /package/dist/chunks/{managed-policy-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{managed-policy-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
- /package/dist/chunks/{managed-policy-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
- /package/dist/chunks/{managed-policy-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
- /package/dist/chunks/{managed-policy-1kg9ymc8.js → filesystem-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{managed-policy-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
- /package/dist/chunks/{managed-policy-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
- /package/dist/chunks/{managed-policy-2axfhc9x.js → filesystem-2axfhc9x.js} +0 -0
- /package/dist/chunks/{managed-policy-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{managed-policy-34c7v6d4.js → filesystem-34c7v6d4.js} +0 -0
- /package/dist/chunks/{managed-policy-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
- /package/dist/chunks/{managed-policy-3asan66x.js → filesystem-3asan66x.js} +0 -0
- /package/dist/chunks/{managed-policy-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
- /package/dist/chunks/{managed-policy-3w5fmr99.js → filesystem-3w5fmr99.js} +0 -0
- /package/dist/chunks/{managed-policy-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
- /package/dist/chunks/{managed-policy-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
- /package/dist/chunks/{managed-policy-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
- /package/dist/chunks/{managed-policy-4vcrnpx2.js → filesystem-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{managed-policy-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
- /package/dist/chunks/{managed-policy-53557ph1.js → filesystem-53557ph1.js} +0 -0
- /package/dist/chunks/{managed-policy-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
- /package/dist/chunks/{managed-policy-6prwharc.js → filesystem-6prwharc.js} +0 -0
- /package/dist/chunks/{managed-policy-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
- /package/dist/chunks/{managed-policy-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
- /package/dist/chunks/{managed-policy-822emrt2.js → filesystem-822emrt2.js} +0 -0
- /package/dist/chunks/{managed-policy-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
- /package/dist/chunks/{managed-policy-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
- /package/dist/chunks/{managed-policy-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
- /package/dist/chunks/{managed-policy-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
- /package/dist/chunks/{managed-policy-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{managed-policy-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
- /package/dist/chunks/{managed-policy-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
- /package/dist/chunks/{managed-policy-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
- /package/dist/chunks/{managed-policy-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{managed-policy-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
- /package/dist/chunks/{managed-policy-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{managed-policy-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{managed-policy-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
- /package/dist/chunks/{managed-policy-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{managed-policy-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
- /package/dist/chunks/{managed-policy-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{managed-policy-dajrwvna.js → filesystem-dajrwvna.js} +0 -0
- /package/dist/chunks/{managed-policy-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
- /package/dist/chunks/{managed-policy-df08tz66.js → filesystem-df08tz66.js} +0 -0
- /package/dist/chunks/{managed-policy-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
- /package/dist/chunks/{managed-policy-e3qxr5gk.js → filesystem-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{managed-policy-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
- /package/dist/chunks/{managed-policy-e73j6tqm.js → filesystem-e73j6tqm.js} +0 -0
- /package/dist/chunks/{managed-policy-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
- /package/dist/chunks/{managed-policy-eh3zwz77.js → filesystem-eh3zwz77.js} +0 -0
- /package/dist/chunks/{managed-policy-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
- /package/dist/chunks/{managed-policy-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
- /package/dist/chunks/{managed-policy-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{managed-policy-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
- /package/dist/chunks/{managed-policy-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
- /package/dist/chunks/{managed-policy-fxgpk5d8.js → filesystem-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{managed-policy-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
- /package/dist/chunks/{managed-policy-g86h250q.js → filesystem-g86h250q.js} +0 -0
- /package/dist/chunks/{managed-policy-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
- /package/dist/chunks/{managed-policy-gftt206x.js → filesystem-gftt206x.js} +0 -0
- /package/dist/chunks/{managed-policy-hjbc5kem.js → filesystem-hjbc5kem.js} +0 -0
- /package/dist/chunks/{managed-policy-hk9envan.js → filesystem-hk9envan.js} +0 -0
- /package/dist/chunks/{managed-policy-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
- /package/dist/chunks/{managed-policy-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{managed-policy-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
- /package/dist/chunks/{managed-policy-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{managed-policy-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{managed-policy-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{managed-policy-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
- /package/dist/chunks/{managed-policy-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
- /package/dist/chunks/{managed-policy-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
- /package/dist/chunks/{managed-policy-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
- /package/dist/chunks/{managed-policy-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
- /package/dist/chunks/{managed-policy-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
- /package/dist/chunks/{managed-policy-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
- /package/dist/chunks/{managed-policy-qaymkmh1.js → filesystem-qaymkmh1.js} +0 -0
- /package/dist/chunks/{managed-policy-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
- /package/dist/chunks/{managed-policy-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
- /package/dist/chunks/{managed-policy-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
- /package/dist/chunks/{managed-policy-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
- /package/dist/chunks/{managed-policy-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{managed-policy-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{managed-policy-sk3qaz4a.js → filesystem-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{managed-policy-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
- /package/dist/chunks/{managed-policy-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
- /package/dist/chunks/{managed-policy-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{managed-policy-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
- /package/dist/chunks/{managed-policy-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
- /package/dist/chunks/{managed-policy-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
- /package/dist/chunks/{managed-policy-x61499pn.js → filesystem-x61499pn.js} +0 -0
- /package/dist/chunks/{managed-policy-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
- /package/dist/chunks/{managed-policy-y8cydn3q.js → filesystem-y8cydn3q.js} +0 -0
- /package/dist/chunks/{managed-policy-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
- /package/dist/chunks/{managed-policy-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{managed-policy-ym463w8f.js → filesystem-ym463w8f.js} +0 -0
- /package/dist/chunks/{managed-policy-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{managed-policy-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service58
|
|
7
|
+
} from "./filesystem-dx3fq8zr.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./filesystem-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service69
|
|
13
|
+
} from "./filesystem-k6w0m00t.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service49
|
|
16
|
+
} from "./filesystem-g2k2w7bp.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service50
|
|
19
|
+
} from "./filesystem-1yrx8exs.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service16,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./filesystem-nbc5ax32.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./filesystem-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service57,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./filesystem-vkgtc4qa.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError4,
|
|
36
|
+
Service37
|
|
37
|
+
} from "./filesystem-b3y0v5k5.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service19
|
|
40
|
+
} from "./filesystem-nz55e0bf.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./filesystem-84dmcwyh.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./filesystem-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: () => Input12,
|
|
53
|
+
Plugin: () => Plugin14,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name12
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name12 = "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 Input12 = 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."
|
|
@@ -116,19 +116,19 @@ Output is streaming to: ${file}`,
|
|
|
116
116
|
truncated: false,
|
|
117
117
|
status: "running"
|
|
118
118
|
});
|
|
119
|
-
var
|
|
119
|
+
var Plugin14 = {
|
|
120
120
|
id: "opencode.tool.shell",
|
|
121
121
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
122
|
-
const sessions = yield*
|
|
123
|
-
const jobs = yield*
|
|
122
|
+
const sessions = yield* Service19;
|
|
123
|
+
const jobs = yield* Service49;
|
|
124
124
|
const scope = yield* Scope.Scope;
|
|
125
|
-
const environment = yield*
|
|
126
|
-
const access = yield*
|
|
127
|
-
const shell = yield*
|
|
128
|
-
const shellSelect = yield*
|
|
125
|
+
const environment = yield* Service69;
|
|
126
|
+
const access = yield* Service16;
|
|
127
|
+
const shell = yield* Service37;
|
|
128
|
+
const shellSelect = yield* Service57;
|
|
129
129
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
130
|
-
const permission = yield*
|
|
131
|
-
const config = yield*
|
|
130
|
+
const permission = yield* Service50;
|
|
131
|
+
const config = yield* Service58;
|
|
132
132
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
133
133
|
const source = {
|
|
134
134
|
type: "tool",
|
|
@@ -147,7 +147,7 @@ var Plugin4 = {
|
|
|
147
147
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
148
148
|
if (parsed.commands.length > 0)
|
|
149
149
|
yield* permission.assert({
|
|
150
|
-
action:
|
|
150
|
+
action: name12,
|
|
151
151
|
resources: parsed.commands.map((command) => command.resource),
|
|
152
152
|
save: parsed.commands.map((command) => command.save),
|
|
153
153
|
sessionID: context.sessionID,
|
|
@@ -184,10 +184,10 @@ var Plugin4 = {
|
|
|
184
184
|
yield* jobs.completeBackground(info.notificationID);
|
|
185
185
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
186
186
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
187
|
-
name:
|
|
187
|
+
name: name12,
|
|
188
188
|
options: { codemode: false },
|
|
189
189
|
description: description(),
|
|
190
|
-
input:
|
|
190
|
+
input: Input12,
|
|
191
191
|
output: Output,
|
|
192
192
|
execute: (input, context) => Effect.gen(function* () {
|
|
193
193
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -210,7 +210,7 @@ var Plugin4 = {
|
|
|
210
210
|
const run = Effect.gen(function* () {
|
|
211
211
|
const result = yield* shell.result(info);
|
|
212
212
|
if (!result.capture)
|
|
213
|
-
return yield* new
|
|
213
|
+
return yield* new NotFoundError4({ id: info.id });
|
|
214
214
|
const output = output2(result);
|
|
215
215
|
return {
|
|
216
216
|
...output,
|
|
@@ -224,7 +224,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
224
224
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
225
225
|
const job = yield* jobs.start({
|
|
226
226
|
id: info.id,
|
|
227
|
-
type:
|
|
227
|
+
type: name12,
|
|
228
228
|
title: info.command,
|
|
229
229
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
230
230
|
recovery: {
|
|
@@ -254,7 +254,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
254
254
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
255
255
|
})).pipe(Effect.orDie);
|
|
256
256
|
const hook = (event) => Effect.gen(function* () {
|
|
257
|
-
const tool = event.tools[
|
|
257
|
+
const tool = event.tools[name12];
|
|
258
258
|
if (!tool)
|
|
259
259
|
return;
|
|
260
260
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -265,4 +265,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
265
265
|
})
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
export {
|
|
268
|
+
export { name12, DEFAULT_TIMEOUT_MS2, Input12, Plugin14, exports_shell };
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import {
|
|
2
|
+
node56
|
|
3
|
+
} from "./filesystem-z5tskbjx.js";
|
|
4
|
+
import {
|
|
5
|
+
node83
|
|
6
|
+
} from "./filesystem-mfxaeyt0.js";
|
|
7
|
+
import {
|
|
8
|
+
node81
|
|
9
|
+
} from "./filesystem-z016ngy8.js";
|
|
10
|
+
import {
|
|
11
|
+
node84,
|
|
12
|
+
boundNode2
|
|
13
|
+
} from "./filesystem-y5dkda77.js";
|
|
14
|
+
import {
|
|
15
|
+
node80
|
|
16
|
+
} from "./filesystem-1cd2s10v.js";
|
|
17
|
+
import {
|
|
18
|
+
node76
|
|
19
|
+
} from "./filesystem-638jzcf9.js";
|
|
20
|
+
import {
|
|
21
|
+
node77
|
|
22
|
+
} from "./filesystem-8n9ywp6t.js";
|
|
23
|
+
import {
|
|
24
|
+
node79
|
|
25
|
+
} from "./filesystem-jvkn2v7p.js";
|
|
26
|
+
import {
|
|
27
|
+
configured8,
|
|
28
|
+
node61
|
|
29
|
+
} from "./filesystem-dx3fq8zr.js";
|
|
30
|
+
import {
|
|
31
|
+
node72
|
|
32
|
+
} from "./filesystem-k6w0m00t.js";
|
|
33
|
+
import {
|
|
34
|
+
node21
|
|
35
|
+
} from "./filesystem-j7ghn0hc.js";
|
|
36
|
+
import {
|
|
37
|
+
node68
|
|
38
|
+
} from "./filesystem-xkd9f4xc.js";
|
|
39
|
+
import {
|
|
40
|
+
node70
|
|
41
|
+
} from "./filesystem-xkez93e1.js";
|
|
42
|
+
import {
|
|
43
|
+
node69
|
|
44
|
+
} from "./filesystem-nbvh7zyw.js";
|
|
45
|
+
import {
|
|
46
|
+
node75
|
|
47
|
+
} from "./filesystem-rt0kvsf5.js";
|
|
48
|
+
import {
|
|
49
|
+
node58
|
|
50
|
+
} from "./filesystem-drvpf3hy.js";
|
|
51
|
+
import {
|
|
52
|
+
node45
|
|
53
|
+
} from "./filesystem-hc9acsgr.js";
|
|
54
|
+
import {
|
|
55
|
+
node34
|
|
56
|
+
} from "./filesystem-jyspzs0j.js";
|
|
57
|
+
import {
|
|
58
|
+
Service48,
|
|
59
|
+
node51
|
|
60
|
+
} from "./filesystem-jkp0d30b.js";
|
|
61
|
+
import {
|
|
62
|
+
node27
|
|
63
|
+
} from "./filesystem-x9w9za6h.js";
|
|
64
|
+
import {
|
|
65
|
+
node57
|
|
66
|
+
} from "./filesystem-1g96y08y.js";
|
|
67
|
+
import {
|
|
68
|
+
node53
|
|
69
|
+
} from "./filesystem-1yrx8exs.js";
|
|
70
|
+
import {
|
|
71
|
+
node50
|
|
72
|
+
} from "./filesystem-ay8mf0mt.js";
|
|
73
|
+
import {
|
|
74
|
+
configured5,
|
|
75
|
+
node37
|
|
76
|
+
} from "./filesystem-bbq0j6ta.js";
|
|
77
|
+
import {
|
|
78
|
+
node31
|
|
79
|
+
} from "./filesystem-xadz8mf8.js";
|
|
80
|
+
import {
|
|
81
|
+
node44
|
|
82
|
+
} from "./filesystem-hvvpf5dq.js";
|
|
83
|
+
import {
|
|
84
|
+
node33
|
|
85
|
+
} from "./filesystem-a394ta18.js";
|
|
86
|
+
import {
|
|
87
|
+
node36
|
|
88
|
+
} from "./filesystem-1ejg90ew.js";
|
|
89
|
+
import {
|
|
90
|
+
node30
|
|
91
|
+
} from "./filesystem-74zmxtxp.js";
|
|
92
|
+
import {
|
|
93
|
+
node35
|
|
94
|
+
} from "./filesystem-9et5e0c8.js";
|
|
95
|
+
import {
|
|
96
|
+
node26
|
|
97
|
+
} from "./filesystem-gkyt9at6.js";
|
|
98
|
+
import {
|
|
99
|
+
node25
|
|
100
|
+
} from "./filesystem-2q9z57te.js";
|
|
101
|
+
import {
|
|
102
|
+
node39
|
|
103
|
+
} from "./filesystem-r05yckk2.js";
|
|
104
|
+
import {
|
|
105
|
+
node60
|
|
106
|
+
} from "./filesystem-vkgtc4qa.js";
|
|
107
|
+
import {
|
|
108
|
+
node43
|
|
109
|
+
} from "./filesystem-5gq66ctg.js";
|
|
110
|
+
import {
|
|
111
|
+
node41
|
|
112
|
+
} from "./filesystem-b3y0v5k5.js";
|
|
113
|
+
import {
|
|
114
|
+
node47
|
|
115
|
+
} from "./filesystem-vw0qja5p.js";
|
|
116
|
+
import {
|
|
117
|
+
node78
|
|
118
|
+
} from "./filesystem-dyxxb0pf.js";
|
|
119
|
+
import {
|
|
120
|
+
node18
|
|
121
|
+
} from "./filesystem-npxrv172.js";
|
|
122
|
+
import {
|
|
123
|
+
node66
|
|
124
|
+
} from "./filesystem-30kepn8q.js";
|
|
125
|
+
import {
|
|
126
|
+
node15
|
|
127
|
+
} from "./filesystem-kmmmaj33.js";
|
|
128
|
+
import {
|
|
129
|
+
node2
|
|
130
|
+
} from "./filesystem-pfpqtqae.js";
|
|
131
|
+
import {
|
|
132
|
+
Service42,
|
|
133
|
+
node46
|
|
134
|
+
} from "./filesystem-ygj42pe4.js";
|
|
135
|
+
import {
|
|
136
|
+
node19
|
|
137
|
+
} from "./filesystem-nbc5ax32.js";
|
|
138
|
+
import {
|
|
139
|
+
node9,
|
|
140
|
+
bound2
|
|
141
|
+
} from "./filesystem-eys57y9b.js";
|
|
142
|
+
import {
|
|
143
|
+
node12
|
|
144
|
+
} from "./filesystem-fkd5e0q7.js";
|
|
145
|
+
import {
|
|
146
|
+
node14
|
|
147
|
+
} from "./filesystem-1mc0gcc5.js";
|
|
148
|
+
import {
|
|
149
|
+
node6
|
|
150
|
+
} from "./filesystem-ne7kg025.js";
|
|
151
|
+
import {
|
|
152
|
+
node3
|
|
153
|
+
} from "./filesystem-vpefsdnb.js";
|
|
154
|
+
import {
|
|
155
|
+
node59
|
|
156
|
+
} from "./filesystem-66c35f44.js";
|
|
157
|
+
import {
|
|
158
|
+
node13
|
|
159
|
+
} from "./filesystem-k00bp9ns.js";
|
|
160
|
+
import {
|
|
161
|
+
node11
|
|
162
|
+
} from "./filesystem-q694vrse.js";
|
|
163
|
+
import {
|
|
164
|
+
__export
|
|
165
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
166
|
+
|
|
167
|
+
// src/instance.ts
|
|
168
|
+
var exports_instance = {};
|
|
169
|
+
__export(exports_instance, {
|
|
170
|
+
Instance: () => exports_instance,
|
|
171
|
+
Service: () => Service48,
|
|
172
|
+
graph: () => graph2,
|
|
173
|
+
layer: () => layer2,
|
|
174
|
+
node: () => node51
|
|
175
|
+
});
|
|
176
|
+
import { Context, Effect, Layer } from "effect";
|
|
177
|
+
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
178
|
+
import { Node } from "@opencode/util/effect/app-node";
|
|
179
|
+
var nodes = [
|
|
180
|
+
node84,
|
|
181
|
+
node46,
|
|
182
|
+
node72,
|
|
183
|
+
node61,
|
|
184
|
+
node56,
|
|
185
|
+
node79,
|
|
186
|
+
node36,
|
|
187
|
+
node47,
|
|
188
|
+
node18,
|
|
189
|
+
node81,
|
|
190
|
+
node80,
|
|
191
|
+
node77,
|
|
192
|
+
node75,
|
|
193
|
+
node76,
|
|
194
|
+
node15,
|
|
195
|
+
node57,
|
|
196
|
+
node9,
|
|
197
|
+
node3,
|
|
198
|
+
node66,
|
|
199
|
+
node70,
|
|
200
|
+
node69,
|
|
201
|
+
node60,
|
|
202
|
+
node59,
|
|
203
|
+
node41,
|
|
204
|
+
node35,
|
|
205
|
+
node31,
|
|
206
|
+
node37,
|
|
207
|
+
node19,
|
|
208
|
+
node21,
|
|
209
|
+
node68,
|
|
210
|
+
node34,
|
|
211
|
+
node53,
|
|
212
|
+
node44,
|
|
213
|
+
node43,
|
|
214
|
+
node45,
|
|
215
|
+
node26,
|
|
216
|
+
node30,
|
|
217
|
+
node27,
|
|
218
|
+
node83,
|
|
219
|
+
node58,
|
|
220
|
+
node6,
|
|
221
|
+
node33,
|
|
222
|
+
node14,
|
|
223
|
+
node50,
|
|
224
|
+
node12,
|
|
225
|
+
node13,
|
|
226
|
+
node25,
|
|
227
|
+
node39,
|
|
228
|
+
node11,
|
|
229
|
+
node78,
|
|
230
|
+
node2
|
|
231
|
+
];
|
|
232
|
+
var graph2 = LayerNode.group(nodes);
|
|
233
|
+
var vanillaReplacements = [
|
|
234
|
+
node61.replace(configured8({ project: false, global: false })),
|
|
235
|
+
node37.replace(configured5({ project: false, global: false }))
|
|
236
|
+
];
|
|
237
|
+
function layer2(ref, options = {}) {
|
|
238
|
+
const startedAt = performance.now();
|
|
239
|
+
const replacements = [
|
|
240
|
+
...options.discovery === false ? vanillaReplacements : [],
|
|
241
|
+
...options.replacements ?? [],
|
|
242
|
+
node84.replace(boundNode2(ref)),
|
|
243
|
+
node9.replace(bound2(options.plugins ?? []))
|
|
244
|
+
];
|
|
245
|
+
return LayerNode.compile(graph2, { replacements, shared: Node.tags.values.global }).pipe(Layer.orDie, Layer.tap((context) => Effect.addFinalizer(() => Context.get(context, Service42).shutdown)), Layer.tap(() => Effect.logInfo("location services booted", {
|
|
246
|
+
directory: ref.directory,
|
|
247
|
+
workspaceID: ref.workspaceID,
|
|
248
|
+
durationMs: Math.round(performance.now() - startedAt)
|
|
249
|
+
})));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export { graph2, layer2, exports_instance };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load5
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./filesystem-e3qxr5gk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event11,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options8,
|
|
17
|
+
Service: () => Service59,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured9,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer21,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node62,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event11 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load5());
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options8 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service59 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer21 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service59.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer23 = (options) => Layer.effect(Service69, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service59.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer21().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service59).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service59, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured9(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service59, layer: layer21(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node62 = configured9();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event11, hasNativeBinding2, Native3, Options8, Service59, Test3, layer21, testLayer3, nativeLayer2, nativeNode2, configured9, node62, exports_watcher };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service59
|
|
3
|
+
} from "./filesystem-aqd63c5t.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service58
|
|
6
|
+
} from "./filesystem-dx3fq8zr.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./filesystem-aex2jcjx.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/compatibility.ts
|
|
15
15
|
var exports_compatibility = {};
|
|
16
16
|
__export(exports_compatibility, {
|
|
17
17
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin21
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
24
|
-
var
|
|
24
|
+
var Plugin21 = define({
|
|
25
25
|
id: "opencode.config.compatibility",
|
|
26
26
|
effect: Effect.fn(function* (ctx) {
|
|
27
|
-
const config = yield*
|
|
27
|
+
const config = yield* Service58;
|
|
28
28
|
const fs = yield* FSUtil.Service;
|
|
29
|
-
const watcher = yield*
|
|
29
|
+
const watcher = yield* Service59;
|
|
30
30
|
const watches = yield* FiberMap.make();
|
|
31
31
|
const changes = yield* PubSub.sliding(1);
|
|
32
32
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -73,4 +73,4 @@ var Plugin40 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Plugin21, exports_compatibility };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./filesystem-dj1ywzdr.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./filesystem-f75zav2x.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
ListInput: () =>
|
|
16
|
+
ID: () => ID7,
|
|
17
|
+
Info: () => Info7,
|
|
18
|
+
ListInput: () => ListInput3,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service51,
|
|
21
|
+
node: () => node54
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
28
|
+
var ID7 = PermissionSaved.ID;
|
|
29
|
+
var Info7 = PermissionSaved.Info;
|
|
30
|
+
var ListInput3 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
33
33
|
var AddInput2 = Schema.Struct({
|
|
@@ -36,10 +36,10 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service51 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const db = (yield*
|
|
41
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
42
|
+
const db = (yield* Service83).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
45
45
|
return rows.map((row) => ({
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID7.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service51.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node54 = makeGlobalNode({ service: Service51, layer, deps: [node87] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID7, Info7, ListInput3, AddInput2, Service51, node54, exports_saved };
|