@opencode-ai/core 0.0.0-dev-19212 → 0.0.0-dev-19216
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 +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{reference-mkqxwqz2.js → file-mutation-01mh49p0.js} +7 -7
- package/dist/chunks/{reference-1qw2s0et.js → file-mutation-06qbn9zd.js} +9 -9
- package/dist/chunks/{reference-pjrq25az.js → file-mutation-09n63jss.js} +22 -22
- package/dist/chunks/{reference-12d3xw68.js → file-mutation-0amw245z.js} +21 -21
- package/dist/chunks/{reference-xev5h8m1.js → file-mutation-0dy783fj.js} +6 -6
- package/dist/chunks/{reference-0e0xafbb.js → file-mutation-0e0xafbb.js} +2 -2
- package/dist/chunks/{reference-jj4631b0.js → file-mutation-0ek2w54z.js} +11 -11
- package/dist/chunks/{reference-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{reference-0q0f95c6.js → file-mutation-0q0f95c6.js} +1 -1
- package/dist/chunks/{reference-bz9mz44d.js → file-mutation-0s535w00.js} +32 -32
- package/dist/chunks/{reference-0s9ayhjt.js → file-mutation-0s9ayhjt.js} +1 -1
- package/dist/chunks/{reference-1dvtgkhr.js → file-mutation-0tqc2v94.js} +3 -3
- package/dist/chunks/{reference-gwybkery.js → file-mutation-0wvfwpx6.js} +20 -20
- package/dist/chunks/{reference-qmgss0yx.js → file-mutation-143qxyja.js} +22 -22
- package/dist/chunks/{reference-f2n192rq.js → file-mutation-1acjjqhc.js} +4 -4
- package/dist/chunks/{reference-1ct4r87x.js → file-mutation-1ct4r87x.js} +1 -1
- package/dist/chunks/{reference-pzqtgemf.js → file-mutation-1dbh8d2n.js} +11 -11
- package/dist/chunks/{reference-0084cjzv.js → file-mutation-1fgze8hp.js} +20 -20
- package/dist/chunks/{reference-hfg87k89.js → file-mutation-1kvgva6x.js} +22 -22
- package/dist/chunks/file-mutation-1x11rq2a.js +18 -0
- package/dist/chunks/{reference-8efgc05f.js → file-mutation-20m0wqts.js} +15 -15
- package/dist/chunks/{reference-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{reference-2402vzrj.js → file-mutation-2402vzrj.js} +1 -1
- package/dist/chunks/{reference-z63w68vq.js → file-mutation-29x78va6.js} +6 -6
- package/dist/chunks/{reference-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{reference-dnahm207.js → file-mutation-2bm7eph3.js} +18 -18
- package/dist/chunks/{reference-q1gnbgak.js → file-mutation-2e3b49a5.js} +23 -23
- package/dist/chunks/{reference-vr25nrf1.js → file-mutation-2ed8104q.js} +46 -46
- package/dist/chunks/{reference-2ht70gj7.js → file-mutation-2ht70gj7.js} +1 -1
- package/dist/chunks/{reference-6w0j3k4h.js → file-mutation-2phvqca6.js} +16 -16
- package/dist/chunks/{reference-snsfg8hg.js → file-mutation-2sj3c2ad.js} +30 -30
- package/dist/chunks/{reference-y6nt3k22.js → file-mutation-2z0b56st.js} +2 -2
- package/dist/chunks/{reference-1c2r3nav.js → file-mutation-34m8n255.js} +6 -6
- package/dist/chunks/{reference-pkdexze4.js → file-mutation-35e7m4yx.js} +22 -22
- package/dist/chunks/{reference-e8dmw4nq.js → file-mutation-3and2xxf.js} +28 -28
- package/dist/chunks/{reference-ah5d5vc5.js → file-mutation-3ap2p86d.js} +9 -9
- package/dist/chunks/{reference-gdvy8fx6.js → file-mutation-3fc6dm20.js} +4 -4
- package/dist/chunks/{reference-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{reference-21psq759.js → file-mutation-3jpejpk8.js} +23 -23
- package/dist/chunks/{reference-g2tqkshq.js → file-mutation-3jxqjar4.js} +29 -29
- package/dist/chunks/{reference-0x6rv59f.js → file-mutation-3pt7nqe6.js} +50 -50
- package/dist/chunks/{reference-3qzbfqsy.js → file-mutation-3qzbfqsy.js} +2 -2
- package/dist/chunks/{reference-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{reference-t7jrq559.js → file-mutation-3sy3bhxh.js} +8 -8
- package/dist/chunks/{reference-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{reference-711hfp6y.js → file-mutation-3x6030n9.js} +2 -2
- package/dist/chunks/{reference-sf4mqfcw.js → file-mutation-40jtjs1k.js} +11 -11
- package/dist/chunks/{reference-454k5vzh.js → file-mutation-454k5vzh.js} +1 -1
- package/dist/chunks/{reference-3v8a3rwp.js → file-mutation-45a3e49b.js} +9 -9
- package/dist/chunks/{reference-xc4h7e7s.js → file-mutation-47cx0r01.js} +31 -31
- package/dist/chunks/{reference-0ynctp82.js → file-mutation-4b1sg654.js} +19 -19
- package/dist/chunks/{reference-8s7rem2e.js → file-mutation-4k7zmpk3.js} +8 -8
- package/dist/chunks/{reference-4r2nyarf.js → file-mutation-4r2nyarf.js} +1 -1
- package/dist/chunks/{reference-t87rya8x.js → file-mutation-4xymgjke.js} +17 -17
- package/dist/chunks/{reference-1ygqh575.js → file-mutation-56gdpj1q.js} +9 -9
- package/dist/chunks/{reference-x8wn8zn7.js → file-mutation-58hcpyay.js} +33 -33
- package/dist/chunks/{reference-vyc39jy3.js → file-mutation-5bch6tfs.js} +13 -13
- package/dist/chunks/{reference-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{reference-mqv5z4da.js → file-mutation-5e624tvg.js} +7 -7
- package/dist/chunks/{reference-5fmxt4p5.js → file-mutation-5fmxt4p5.js} +1 -1
- package/dist/chunks/{reference-5jvc5tg2.js → file-mutation-5jvc5tg2.js} +1 -1
- package/dist/chunks/{reference-krma7hp6.js → file-mutation-5mqca3xa.js} +25 -25
- package/dist/chunks/{reference-5bk2z4g2.js → file-mutation-5n978qtj.js} +6 -6
- package/dist/chunks/{reference-5ehqaa7d.js → file-mutation-62z4m846.js} +24 -24
- package/dist/chunks/{reference-4z6b0fg6.js → file-mutation-64z8z5x5.js} +6 -6
- package/dist/chunks/{reference-p8mkgytk.js → file-mutation-6e593aan.js} +28 -28
- package/dist/chunks/{reference-yhr218qz.js → file-mutation-6e958v7x.js} +4 -4
- package/dist/chunks/{reference-w03xx005.js → file-mutation-6qvt79ej.js} +24 -24
- package/dist/chunks/{reference-kjmqhh6j.js → file-mutation-6t42cqx7.js} +29 -29
- package/dist/chunks/{reference-qwrhw08z.js → file-mutation-6tnfgw9a.js} +28 -28
- package/dist/chunks/{reference-72nftnjy.js → file-mutation-72nftnjy.js} +2 -2
- package/dist/chunks/{reference-ms9ez6yh.js → file-mutation-76smfv87.js} +7 -7
- package/dist/chunks/{reference-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{reference-e0j83zpa.js → file-mutation-7cnkxtbd.js} +9 -9
- package/dist/chunks/file-mutation-7ctffjx1.js +22 -0
- package/dist/chunks/{reference-fcrkznn8.js → file-mutation-7dqw4kz8.js} +5 -5
- package/dist/chunks/{reference-9pvr9h0s.js → file-mutation-7m9tkefv.js} +11 -11
- package/dist/chunks/{reference-xqsy6kp0.js → file-mutation-7ng7exzm.js} +1 -1
- package/dist/chunks/{reference-e5b0qn1c.js → file-mutation-7nxyxket.js} +1 -1
- package/dist/chunks/{reference-14hmenm3.js → file-mutation-7ry09vv5.js} +3 -3
- package/dist/chunks/{reference-bdqrk2vk.js → file-mutation-7w3s9kd0.js} +4 -4
- package/dist/chunks/{reference-a3hbghzv.js → file-mutation-85490285.js} +29 -29
- package/dist/chunks/{reference-4s516vzf.js → file-mutation-897hzw7d.js} +9 -9
- package/dist/chunks/{reference-n3zdm92s.js → file-mutation-8ht03v18.js} +4 -4
- package/dist/chunks/{reference-emtnqcre.js → file-mutation-8yqh4j7k.js} +28 -28
- package/dist/chunks/{reference-8q4ja06g.js → file-mutation-8za182nc.js} +15 -15
- package/dist/chunks/{reference-g41n1fn3.js → file-mutation-986p65m9.js} +5 -5
- package/dist/chunks/{reference-r4ftc533.js → file-mutation-998c6hc6.js} +32 -32
- package/dist/chunks/{reference-a9zfrvqc.js → file-mutation-99vgbsyy.js} +5 -5
- package/dist/chunks/{reference-5xenskfm.js → file-mutation-9b3te7cd.js} +46 -46
- package/dist/chunks/{reference-ngxtnptd.js → file-mutation-9pk3p303.js} +8 -8
- package/dist/chunks/{reference-q05vaz4s.js → file-mutation-a1qwmqqw.js} +13 -13
- package/dist/chunks/{reference-qa3qhgw8.js → file-mutation-a2ew8a62.js} +4 -4
- package/dist/chunks/{reference-4qjtp74j.js → file-mutation-a4rgs0hc.js} +8 -8
- package/dist/chunks/{reference-vweaxkb2.js → file-mutation-a9e4exys.js} +37 -37
- package/dist/chunks/{reference-18tdf853.js → file-mutation-aa8vhsgg.js} +7 -7
- package/dist/chunks/{reference-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{reference-n97at88n.js → file-mutation-ab39g6be.js} +15 -15
- package/dist/chunks/{reference-3vnt15xv.js → file-mutation-ada40aw5.js} +42 -42
- package/dist/chunks/{reference-d7na6v95.js → file-mutation-aeg24s2a.js} +3 -3
- package/dist/chunks/{reference-jfgx1kn9.js → file-mutation-asb5ddgn.js} +3 -3
- package/dist/chunks/{reference-3cae9tw6.js → file-mutation-ayghbyc9.js} +16 -16
- package/dist/chunks/{reference-4sjb0t0m.js → file-mutation-b2cva8t7.js} +32 -32
- package/dist/chunks/{reference-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{reference-6mj2pf94.js → file-mutation-b92pv2tj.js} +5 -5
- package/dist/chunks/{reference-gaw4vzx1.js → file-mutation-b9j3swwv.js} +12 -12
- package/dist/chunks/{reference-b9wsbatv.js → file-mutation-b9wsbatv.js} +1 -1
- package/dist/chunks/{reference-e579sj9a.js → file-mutation-babn4frh.js} +8 -8
- package/dist/chunks/{reference-eg4pr325.js → file-mutation-bfr8x9hg.js} +10 -10
- package/dist/chunks/{reference-j2823k0a.js → file-mutation-bgt6msk1.js} +2 -2
- package/dist/chunks/{reference-0xd2d7hb.js → file-mutation-bxnxw8jj.js} +5 -5
- package/dist/chunks/{reference-6cd6tdvt.js → file-mutation-c0gy5km3.js} +6 -6
- package/dist/chunks/{reference-16p10fwd.js → file-mutation-c0yyaxk6.js} +17 -17
- package/dist/chunks/{reference-r5cm8qwg.js → file-mutation-c8k27x3s.js} +9 -9
- package/dist/chunks/{reference-a2vgq88x.js → file-mutation-cfbbrnxq.js} +11 -11
- package/dist/chunks/{reference-fvanntqq.js → file-mutation-cpy6gm2a.js} +4 -4
- package/dist/chunks/{reference-g77vssk4.js → file-mutation-cq35m6me.js} +3 -3
- package/dist/chunks/{reference-d05z5f6t.js → file-mutation-cr8sbmwr.js} +44 -44
- package/dist/chunks/{reference-dbhz56x7.js → file-mutation-d4pvcjkk.js} +18 -18
- package/dist/chunks/{reference-5cmvkkst.js → file-mutation-d6k3vpm5.js} +4 -4
- package/dist/chunks/{reference-z407bpgn.js → file-mutation-dcgj9q88.js} +25 -25
- package/dist/chunks/{reference-w26538p1.js → file-mutation-dds56zbh.js} +29 -29
- package/dist/chunks/{reference-an7cqtb7.js → file-mutation-dfe8djrf.js} +4 -4
- package/dist/chunks/{reference-fa3xpm51.js → file-mutation-dk2pae67.js} +16 -16
- package/dist/chunks/{reference-rx1jg21z.js → file-mutation-dxyd6n6d.js} +174 -174
- package/dist/chunks/{reference-qh8mgzry.js → file-mutation-dyqxbeha.js} +11 -11
- package/dist/chunks/{reference-6efxj6ke.js → file-mutation-e4gkhccc.js} +4 -4
- package/dist/chunks/{reference-x41jnft1.js → file-mutation-e6yvemtv.js} +65 -65
- package/dist/chunks/{reference-2sqse76q.js → file-mutation-e94r4fk5.js} +79 -79
- package/dist/chunks/{reference-2yberneh.js → file-mutation-enamxrz2.js} +2 -2
- package/dist/chunks/{reference-5ngsm0n8.js → file-mutation-etamtscj.js} +5 -5
- package/dist/chunks/{reference-hjrjbgez.js → file-mutation-ev7pq6rs.js} +5 -5
- package/dist/chunks/{reference-41p65mbg.js → file-mutation-evj8e4hg.js} +26 -26
- package/dist/chunks/{reference-asvzsbd0.js → file-mutation-evj94p3t.js} +13 -13
- package/dist/chunks/{reference-wyrajqkf.js → file-mutation-f40w3zwy.js} +46 -46
- package/dist/chunks/{reference-86s3977f.js → file-mutation-f9x6rp1j.js} +1 -1
- package/dist/chunks/{reference-kw0c7kv6.js → file-mutation-fdcmbayr.js} +20 -20
- package/dist/chunks/{reference-2w60sym0.js → file-mutation-fhbjhm8t.js} +48 -48
- package/dist/chunks/{reference-6bwsc8qf.js → file-mutation-fj5hcd03.js} +35 -35
- package/dist/chunks/{reference-njkh1s3y.js → file-mutation-fke00733.js} +8 -8
- package/dist/chunks/{reference-a3jrf4x9.js → file-mutation-fmzy9ynz.js} +10 -10
- package/dist/chunks/{reference-y3t4revc.js → file-mutation-fvpasvjq.js} +4 -4
- package/dist/chunks/{reference-8nfv3dr6.js → file-mutation-fw416nha.js} +20 -20
- package/dist/chunks/{reference-fxbjtjnd.js → file-mutation-fxbjtjnd.js} +1 -1
- package/dist/chunks/{reference-fxypknc8.js → file-mutation-fxypknc8.js} +1 -1
- package/dist/chunks/{reference-1n116cmy.js → file-mutation-fz1pdqz4.js} +9 -9
- package/dist/chunks/{reference-hrvm11jt.js → file-mutation-g2dy4bvs.js} +3 -3
- package/dist/chunks/{reference-d72308c8.js → file-mutation-g2gt0w0k.js} +2 -2
- package/dist/chunks/{reference-mzj84rkx.js → file-mutation-g8a6h08d.js} +13 -13
- package/dist/chunks/{reference-yegg0avx.js → file-mutation-gd0bwbeh.js} +83 -83
- package/dist/chunks/{reference-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{reference-etjqf465.js → file-mutation-ger17fbp.js} +59 -59
- package/dist/chunks/{reference-3gzh0vtz.js → file-mutation-gkvt71jh.js} +9 -9
- package/dist/chunks/{reference-ef7xpky4.js → file-mutation-gz5et4ap.js} +16 -16
- package/dist/chunks/file-mutation-h139r1mg.js +460 -0
- package/dist/chunks/{reference-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{reference-trss6eke.js → file-mutation-hayn59kd.js} +27 -27
- package/dist/chunks/{reference-heyhwy2w.js → file-mutation-heyhwy2w.js} +1 -1
- package/dist/chunks/{reference-5k3f87xj.js → file-mutation-hgeb4s25.js} +1 -1
- package/dist/chunks/{reference-y2cqme3r.js → file-mutation-hhpzk61m.js} +5 -5
- package/dist/chunks/{reference-ffynz4t3.js → file-mutation-hjpabd42.js} +23 -23
- package/dist/chunks/{reference-e82z9tr0.js → file-mutation-hjt4xg1x.js} +7 -7
- package/dist/chunks/{reference-hn57h045.js → file-mutation-hn57h045.js} +1 -1
- package/dist/chunks/{reference-bsvvsrn1.js → file-mutation-hnyf01b0.js} +5 -5
- package/dist/chunks/{reference-v60ecprk.js → file-mutation-hpbtcqba.js} +9 -9
- package/dist/chunks/{reference-856yxx7h.js → file-mutation-htqkwcnv.js} +10 -10
- package/dist/chunks/{reference-x6z3jawz.js → file-mutation-hzzs2yvs.js} +36 -36
- package/dist/chunks/{reference-7x2s7bzw.js → file-mutation-j8swj2w1.js} +11 -11
- package/dist/chunks/{reference-paphc93g.js → file-mutation-j935v87r.js} +2 -2
- package/dist/chunks/{reference-1r334jan.js → file-mutation-jykcc5qa.js} +6 -6
- package/dist/chunks/{reference-f7tmr1cs.js → file-mutation-k0g96r8n.js} +4 -4
- package/dist/chunks/{reference-k0zpnkm5.js → file-mutation-k0zpnkm5.js} +1 -1
- package/dist/chunks/{reference-4829mzp8.js → file-mutation-k1h3pd12.js} +10 -10
- package/dist/chunks/{reference-50xx9m7g.js → file-mutation-k3b33mde.js} +7 -7
- package/dist/chunks/{reference-x2q61z0h.js → file-mutation-k3xp7ghz.js} +18 -18
- package/dist/chunks/{reference-k4bwy1x5.js → file-mutation-k4bwy1x5.js} +1 -1
- package/dist/chunks/{reference-tk4kvvnf.js → file-mutation-kbsyt50d.js} +25 -25
- package/dist/chunks/{reference-1qh4pj30.js → file-mutation-kdrneqjw.js} +29 -29
- package/dist/chunks/{reference-kg06axw8.js → file-mutation-kg06axw8.js} +1 -1
- package/dist/chunks/{reference-6k404gxp.js → file-mutation-kkxc5154.js} +4 -4
- package/dist/chunks/{reference-68prq3sc.js → file-mutation-kry5p3r0.js} +26 -26
- package/dist/chunks/{reference-j8tds478.js → file-mutation-ks0jjys9.js} +12 -12
- package/dist/chunks/{reference-hw4pv20g.js → file-mutation-kvsjn1dr.js} +2 -2
- package/dist/chunks/{reference-3qew0nv7.js → file-mutation-kx9ynrf0.js} +15 -15
- package/dist/chunks/{reference-zn2pq4p8.js → file-mutation-kxnt8qcg.js} +5 -5
- package/dist/chunks/{reference-4h3djfaw.js → file-mutation-m5a4zvg4.js} +39 -39
- package/dist/chunks/{reference-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{reference-ztnyd3e4.js → file-mutation-mfv0zw27.js} +9 -9
- package/dist/chunks/{reference-jdqgf29y.js → file-mutation-mkajv2tb.js} +6 -6
- package/dist/chunks/{reference-vkfv6j0y.js → file-mutation-mpsa3nes.js} +12 -12
- package/dist/chunks/{reference-6wt2d068.js → file-mutation-mq3bjh81.js} +22 -22
- package/dist/chunks/{reference-mhkvc446.js → file-mutation-mvfsc1pv.js} +3 -3
- package/dist/chunks/{reference-a17pxmag.js → file-mutation-n0gbmnre.js} +11 -11
- package/dist/chunks/{reference-spxrvp3q.js → file-mutation-n27y30w6.js} +46 -46
- package/dist/chunks/{reference-tcttdp38.js → file-mutation-n8dztyn3.js} +13 -13
- package/dist/chunks/{reference-tjtqfkq6.js → file-mutation-npsbfqmn.js} +31 -31
- package/dist/chunks/{reference-018mknr8.js → file-mutation-nt2vsa9g.js} +22 -22
- package/dist/chunks/{reference-rmk9teax.js → file-mutation-nvm3xv8h.js} +28 -28
- package/dist/chunks/{reference-6md5mvvn.js → file-mutation-nxepqw4e.js} +18 -18
- package/dist/chunks/{reference-xrq8ec0v.js → file-mutation-ny5fc873.js} +15 -15
- package/dist/chunks/{reference-vg3d5k3k.js → file-mutation-p33zfxh6.js} +26 -26
- package/dist/chunks/{reference-asb6ptdj.js → file-mutation-pjvn5h54.js} +12 -12
- package/dist/chunks/{reference-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{reference-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{reference-d657j5sf.js → file-mutation-ptg06ky0.js} +12 -12
- package/dist/chunks/{reference-agc30tdk.js → file-mutation-ptrtafvx.js} +11 -11
- package/dist/chunks/{reference-692yah3v.js → file-mutation-q36vtzqe.js} +5 -5
- package/dist/chunks/{reference-snxwbbja.js → file-mutation-q68wbhj3.js} +4 -4
- package/dist/chunks/{reference-s3eqpch7.js → file-mutation-qbyj8qxd.js} +1 -1
- package/dist/chunks/{reference-ea1bn3s4.js → file-mutation-qfv34cas.js} +17 -17
- package/dist/chunks/{reference-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{reference-8dtfw9dp.js → file-mutation-qswnket4.js} +16 -16
- package/dist/chunks/{reference-9qm9egsn.js → file-mutation-qvbcabdc.js} +2 -2
- package/dist/chunks/{reference-wvd7xkhd.js → file-mutation-qxezqvzm.js} +17 -17
- package/dist/chunks/{reference-mb6p4x5v.js → file-mutation-r062cge9.js} +40 -40
- package/dist/chunks/{reference-r8dhm0tv.js → file-mutation-r8dhm0tv.js} +1 -1
- package/dist/chunks/{reference-18se47gg.js → file-mutation-rae26gbb.js} +8 -8
- package/dist/chunks/{reference-0pkwxjdh.js → file-mutation-renmeb8y.js} +7 -7
- package/dist/chunks/{reference-hmw71aj6.js → file-mutation-rhqk4sk8.js} +14 -14
- package/dist/chunks/{reference-xcjh69t4.js → file-mutation-rwh0xq6p.js} +15 -15
- package/dist/chunks/{reference-pztv92z9.js → file-mutation-rx7yndt1.js} +11 -11
- package/dist/chunks/{reference-v72skxvp.js → file-mutation-s38wv68t.js} +18 -18
- package/dist/chunks/{reference-r4fs0yvq.js → file-mutation-s3vrd4d2.js} +18 -18
- package/dist/chunks/{reference-sba4qhjf.js → file-mutation-sba4qhjf.js} +1 -1
- package/dist/chunks/{reference-esxkkh19.js → file-mutation-sbnvhk9g.js} +20 -20
- package/dist/chunks/{reference-sxfxx2yk.js → file-mutation-sc1wqa8e.js} +24 -24
- package/dist/chunks/{reference-bcv0c355.js → file-mutation-shfaz11f.js} +4 -4
- package/dist/chunks/{reference-09ywgxwg.js → file-mutation-sxhwk0c0.js} +4 -4
- package/dist/chunks/{reference-1ks609kc.js → file-mutation-ta5yt3rh.js} +34 -34
- package/dist/chunks/{reference-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{reference-tcezcvh9.js → file-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{reference-sznyev98.js → file-mutation-tdpndm1c.js} +5 -5
- package/dist/chunks/{reference-g97bp859.js → file-mutation-tgnthhz6.js} +25 -25
- package/dist/chunks/{reference-dryn3h34.js → file-mutation-thb62adn.js} +10 -10
- package/dist/chunks/{reference-tjykrgmx.js → file-mutation-tjykrgmx.js} +1 -1
- package/dist/chunks/{reference-y5ey60w0.js → file-mutation-v3gnfvgj.js} +11 -11
- package/dist/chunks/{reference-kwjjfgw8.js → file-mutation-v7r3cw40.js} +32 -32
- package/dist/chunks/{reference-mcxg6pmm.js → file-mutation-v8gy3pjr.js} +1 -1
- package/dist/chunks/{reference-y18qbtn0.js → file-mutation-vdve1s0m.js} +3 -3
- package/dist/chunks/{reference-84p78t7c.js → file-mutation-vfhg49f4.js} +11 -11
- package/dist/chunks/{reference-67cp0t3n.js → file-mutation-vhh9ar68.js} +11 -11
- package/dist/chunks/{reference-k3895j1r.js → file-mutation-vj79ke67.js} +27 -27
- package/dist/chunks/{reference-g2xm0wwc.js → file-mutation-vnj10zg0.js} +14 -14
- package/dist/chunks/{reference-cawt2ka0.js → file-mutation-vwq77r6c.js} +32 -32
- package/dist/chunks/{reference-e7ngq1fb.js → file-mutation-w19ppvv8.js} +11 -11
- package/dist/chunks/{reference-5kw2ja90.js → file-mutation-w25meggd.js} +14 -14
- package/dist/chunks/{reference-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{reference-2n1jf9zw.js → file-mutation-w5gv9txn.js} +7 -7
- package/dist/chunks/{reference-j3qa67je.js → file-mutation-w7a45d2w.js} +23 -23
- package/dist/chunks/{reference-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{reference-9v2dm5wj.js → file-mutation-wy24wt1k.js} +17 -17
- package/dist/chunks/{reference-v5qh35yv.js → file-mutation-wzn1pg97.js} +9 -9
- package/dist/chunks/{reference-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{reference-k1m6m3k9.js → file-mutation-x7n6jb1w.js} +17 -17
- package/dist/chunks/{reference-pgnsvmsq.js → file-mutation-xscz55ef.js} +15 -15
- package/dist/chunks/{reference-2zjvjrq5.js → file-mutation-xspyb9m3.js} +8 -8
- package/dist/chunks/{reference-evv0wppe.js → file-mutation-y1a5n2r0.js} +16 -16
- package/dist/chunks/{reference-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{reference-r9vqe5sy.js → file-mutation-y4xjyrf3.js} +18 -18
- package/dist/chunks/{reference-1pxjmmqp.js → file-mutation-y5h9vgb0.js} +8 -8
- package/dist/chunks/{reference-5mmddgh2.js → file-mutation-y61qnw8a.js} +10 -10
- package/dist/chunks/{reference-y71avatq.js → file-mutation-y71avatq.js} +1 -1
- package/dist/chunks/{reference-pv06p42z.js → file-mutation-y724s5yt.js} +4 -4
- package/dist/chunks/{reference-sht6jbn9.js → file-mutation-y8g99sqg.js} +29 -29
- package/dist/chunks/{reference-1gdy6sdc.js → file-mutation-ye0hwk1t.js} +9 -9
- package/dist/chunks/{reference-yfbd16n1.js → file-mutation-yfbd16n1.js} +2 -2
- package/dist/chunks/{reference-ajtjthsy.js → file-mutation-yg7sb877.js} +2 -2
- package/dist/chunks/{reference-fm6rrk6d.js → file-mutation-ypexc4gq.js} +41 -41
- package/dist/chunks/file-mutation-ywgxakqv.js +247 -0
- package/dist/chunks/{reference-z1k01bn4.js → file-mutation-z1k01bn4.js} +2 -2
- package/dist/chunks/{reference-b2vrfppg.js → file-mutation-z3s9j4q6.js} +12 -12
- package/dist/chunks/{reference-g937y3ww.js → file-mutation-z48dvxa8.js} +1 -1
- package/dist/chunks/{reference-z6q3sy01.js → file-mutation-z5wp74ca.js} +13 -13
- package/dist/chunks/{reference-8ss6hdvh.js → file-mutation-zjx20249.js} +4 -4
- package/dist/chunks/{reference-fexhrjwy.js → file-mutation-zjy9mrjh.js} +17 -17
- package/dist/chunks/{reference-xb8haxn3.js → file-mutation-zr1rg8va.js} +22 -22
- package/dist/chunks/{reference-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +96 -96
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +79 -79
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +353 -353
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +72 -72
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +93 -93
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +96 -96
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +93 -93
- package/dist/git.js +7 -7
- 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 +3 -3
- 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 +1 -1
- package/dist/instance.js +346 -346
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +129 -129
- package/dist/location-mutation.js +81 -81
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +347 -347
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +99 -99
- package/dist/mcp/instructions.js +119 -119
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +8 -8
- package/dist/models-dev.js +78 -78
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- 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 +73 -73
- package/dist/plugin/agent.js +98 -98
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +321 -321
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +96 -96
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +336 -336
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- 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.js +217 -217
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +88 -88
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +128 -128
- package/dist/session/context.js +146 -146
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +119 -119
- package/dist/session/generate.js +147 -147
- package/dist/session/history.js +14 -14
- package/dist/session/inbox.js +78 -78
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +91 -91
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +112 -112
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +125 -125
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +99 -99
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +1 -1
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +82 -82
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +118 -118
- package/dist/session/runner/to-llm-message.js +1 -1
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +168 -168
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +97 -97
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +82 -82
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -204
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +148 -148
- package/dist/session/to-session-error.js +106 -106
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- 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 +13 -13
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +101 -101
- package/dist/skill.js +102 -102
- package/dist/snapshot.js +88 -88
- 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 +118 -118
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +117 -117
- package/dist/tool/plugin/grep.js +119 -119
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +95 -95
- package/dist/tool/plugin/read.js +120 -120
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +103 -103
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +106 -106
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +11 -11
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +14 -14
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +337 -337
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +7 -7
- package/dist/chunks/reference-584ntgtv.js +0 -460
- package/dist/chunks/reference-ehdge3wy.js +0 -22
- package/dist/chunks/reference-q509s3k3.js +0 -18
- package/dist/chunks/reference-yb1x73y0.js +0 -247
- /package/dist/chunks/{reference-0fabt78z.js → file-mutation-0fabt78z.js} +0 -0
- /package/dist/chunks/{reference-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{reference-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{reference-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{reference-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{reference-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{reference-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{reference-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{reference-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{reference-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{reference-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{reference-3t738kvx.js → file-mutation-3t738kvx.js} +0 -0
- /package/dist/chunks/{reference-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{reference-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{reference-41nvscxy.js → file-mutation-41nvscxy.js} +0 -0
- /package/dist/chunks/{reference-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{reference-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{reference-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{reference-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{reference-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{reference-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{reference-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{reference-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{reference-7zk4hah4.js → file-mutation-7zk4hah4.js} +0 -0
- /package/dist/chunks/{reference-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{reference-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{reference-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{reference-982e01ww.js → file-mutation-982e01ww.js} +0 -0
- /package/dist/chunks/{reference-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{reference-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{reference-a1tpkmh4.js → file-mutation-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{reference-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{reference-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{reference-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{reference-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{reference-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{reference-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{reference-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{reference-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{reference-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{reference-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{reference-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{reference-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{reference-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{reference-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{reference-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{reference-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{reference-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{reference-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{reference-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{reference-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{reference-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{reference-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{reference-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{reference-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{reference-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{reference-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{reference-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{reference-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{reference-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{reference-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{reference-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{reference-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{reference-mntxs535.js → file-mutation-mntxs535.js} +0 -0
- /package/dist/chunks/{reference-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{reference-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{reference-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{reference-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{reference-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{reference-p8qxwesx.js → file-mutation-p8qxwesx.js} +0 -0
- /package/dist/chunks/{reference-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{reference-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{reference-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{reference-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{reference-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{reference-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{reference-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{reference-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{reference-se0s1eqw.js → file-mutation-se0s1eqw.js} +0 -0
- /package/dist/chunks/{reference-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{reference-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{reference-twg0f83k.js → file-mutation-twg0f83k.js} +0 -0
- /package/dist/chunks/{reference-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{reference-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{reference-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{reference-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{reference-x1b8g1yb.js → file-mutation-x1b8g1yb.js} +0 -0
- /package/dist/chunks/{reference-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{reference-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{reference-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{reference-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{reference-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
- /package/dist/chunks/{reference-zbjnn3ac.js → file-mutation-zbjnn3ac.js} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service56
|
|
7
|
+
} from "./file-mutation-ada40aw5.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service64
|
|
13
|
+
} from "./file-mutation-62z4m846.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service42
|
|
16
|
+
} from "./file-mutation-qxezqvzm.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePath2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service66
|
|
20
|
+
} from "./file-mutation-dk2pae67.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service45
|
|
23
|
+
} from "./file-mutation-ger17fbp.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-mutation-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service60,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-mutation-4b1sg654.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError8,
|
|
36
|
+
Service54
|
|
37
|
+
} from "./file-mutation-3pt7nqe6.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service20
|
|
40
|
+
} from "./file-mutation-e94r4fk5.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./file-mutation-k0g96r8n.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell2 = {};
|
|
50
|
+
__export(exports_shell2, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input5,
|
|
53
|
+
Plugin: () => Plugin22,
|
|
54
|
+
ShellTool: () => exports_shell2,
|
|
55
|
+
name: () => name5
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode-ai/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name5 = "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. DO NOT run sleep commands or poll the output file to check for completion. You can read from the file when its current output would be useful, such as when inspecting logs from a background server. Otherwise, continue with other work or end your response.";
|
|
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 Input5 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin22 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service20;
|
|
122
|
+
const jobs = yield* Service42;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const mutation = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service64;
|
|
125
|
+
const mutation = yield* Service66;
|
|
126
|
+
const shell = yield* Service54;
|
|
127
|
+
const shellSelect = yield* Service60;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service45;
|
|
130
|
+
const config = yield* Service56;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -155,7 +155,7 @@ var Plugin26 = {
|
|
|
155
155
|
});
|
|
156
156
|
if (parsed.commands.length > 0)
|
|
157
157
|
yield* permission.assert({
|
|
158
|
-
action:
|
|
158
|
+
action: name5,
|
|
159
159
|
resources: parsed.commands.map((command) => command.resource),
|
|
160
160
|
save: parsed.commands.map((command) => command.save),
|
|
161
161
|
sessionID: context.sessionID,
|
|
@@ -192,10 +192,10 @@ var Plugin26 = {
|
|
|
192
192
|
yield* jobs.completeBackground(info.notificationID);
|
|
193
193
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
194
194
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
195
|
-
name:
|
|
195
|
+
name: name5,
|
|
196
196
|
options: { codemode: false },
|
|
197
197
|
description: description(),
|
|
198
|
-
input:
|
|
198
|
+
input: Input5,
|
|
199
199
|
output: Output,
|
|
200
200
|
execute: (input, context) => Effect.gen(function* () {
|
|
201
201
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -214,7 +214,7 @@ var Plugin26 = {
|
|
|
214
214
|
const run = Effect.gen(function* () {
|
|
215
215
|
const result = yield* shell.result(info);
|
|
216
216
|
if (!result.capture)
|
|
217
|
-
return yield* new
|
|
217
|
+
return yield* new NotFoundError8({ id: info.id });
|
|
218
218
|
const output = output2(result);
|
|
219
219
|
return {
|
|
220
220
|
...output,
|
|
@@ -228,7 +228,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
228
228
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
229
229
|
const job = yield* jobs.start({
|
|
230
230
|
id: info.id,
|
|
231
|
-
type:
|
|
231
|
+
type: name5,
|
|
232
232
|
title: info.command,
|
|
233
233
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
234
234
|
recovery: {
|
|
@@ -258,7 +258,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
258
258
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
259
259
|
})).pipe(Effect.orDie);
|
|
260
260
|
yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
|
|
261
|
-
const tool = event.tools[
|
|
261
|
+
const tool = event.tools[name5];
|
|
262
262
|
if (!tool)
|
|
263
263
|
return;
|
|
264
264
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name5, DEFAULT_TIMEOUT_MS2, Input5, Plugin22, exports_shell2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service64,
|
|
6
|
+
node67
|
|
7
|
+
} from "./file-mutation-62z4m846.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service63,
|
|
17
|
+
node: () => node66,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode-ai/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service63 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service64;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service63.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node66 = makeLocationNode({ service: Service63, layer, deps: [node67] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service63, readText2, syncTextBom2, node66, exports_file_mutation };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service67
|
|
6
|
+
} from "./file-mutation-zjy9mrjh.js";
|
|
7
7
|
import {
|
|
8
8
|
externalDirectoryPermission2,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service66
|
|
10
|
+
} from "./file-mutation-dk2pae67.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service45
|
|
13
|
+
} from "./file-mutation-ger17fbp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service9
|
|
16
|
+
} from "./file-mutation-35e7m4yx.js";
|
|
17
17
|
import {
|
|
18
18
|
NotFound2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-2a5m3afh.js";
|
|
20
20
|
import {
|
|
21
21
|
MEDIA_MIMES2,
|
|
22
22
|
BinaryFileError2,
|
|
@@ -27,26 +27,26 @@ import {
|
|
|
27
27
|
FileContent2,
|
|
28
28
|
TextPage2,
|
|
29
29
|
ListPage2,
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service10
|
|
31
|
+
} from "./file-mutation-8za182nc.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/read.ts
|
|
37
37
|
var exports_read = {};
|
|
38
38
|
__export(exports_read, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input6,
|
|
40
|
+
Plugin: () => Plugin23,
|
|
41
41
|
ReadTool: () => exports_read,
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
42
|
+
name: () => name6,
|
|
43
|
+
toModelContent: () => toModelContent3
|
|
44
44
|
});
|
|
45
45
|
import { basename, dirname, join } from "path";
|
|
46
46
|
import { ToolFailure } from "@opencode-ai/ai";
|
|
47
47
|
import { Effect, Schema } from "effect";
|
|
48
48
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
49
|
-
var
|
|
49
|
+
var name6 = "read";
|
|
50
50
|
var FILENAME = "AGENTS.md";
|
|
51
51
|
var LocationInput = Schema.Struct({
|
|
52
52
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -57,22 +57,22 @@ var LocationInput = Schema.Struct({
|
|
|
57
57
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var Input6 = LocationInput;
|
|
61
61
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
62
|
-
var
|
|
62
|
+
var Plugin23 = {
|
|
63
63
|
id: "opencode.tool.read",
|
|
64
64
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
65
|
-
const reader = yield*
|
|
66
|
-
const mutation = yield*
|
|
67
|
-
const permission = yield*
|
|
68
|
-
const sessionInstructions = yield*
|
|
65
|
+
const reader = yield* Service10;
|
|
66
|
+
const mutation = yield* Service66;
|
|
67
|
+
const permission = yield* Service45;
|
|
68
|
+
const sessionInstructions = yield* Service9;
|
|
69
69
|
const fs = yield* FSUtil.Service;
|
|
70
|
-
const location = yield*
|
|
70
|
+
const location = yield* Service67;
|
|
71
71
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
72
|
-
name:
|
|
72
|
+
name: name6,
|
|
73
73
|
options: { codemode: false },
|
|
74
74
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
75
|
-
input:
|
|
75
|
+
input: Input6,
|
|
76
76
|
output: Output,
|
|
77
77
|
execute: (input, context) => {
|
|
78
78
|
return Effect.gen(function* () {
|
|
@@ -90,7 +90,7 @@ var Plugin21 = {
|
|
|
90
90
|
source
|
|
91
91
|
});
|
|
92
92
|
yield* permission.assert({
|
|
93
|
-
action:
|
|
93
|
+
action: name6,
|
|
94
94
|
resources: [target.resource],
|
|
95
95
|
save: ["*"],
|
|
96
96
|
sessionID: context.sessionID,
|
|
@@ -141,7 +141,7 @@ var Plugin21 = {
|
|
|
141
141
|
return { output: result.content, path: result.path };
|
|
142
142
|
}).pipe(Effect.map((result) => ({
|
|
143
143
|
output: result.output,
|
|
144
|
-
content:
|
|
144
|
+
content: toModelContent3(result.path, input.offset, result.output),
|
|
145
145
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
146
146
|
})), Effect.mapError((error) => {
|
|
147
147
|
if (error instanceof ToolFailure)
|
|
@@ -173,7 +173,7 @@ ${suggestions.join(`
|
|
|
173
173
|
});
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
var
|
|
176
|
+
var toModelContent3 = (path, offset, output) => {
|
|
177
177
|
if (output.type === "file" && output.encoding === "base64")
|
|
178
178
|
return [
|
|
179
179
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -208,4 +208,4 @@ var toModelContent4 = (path, offset, output) => {
|
|
|
208
208
|
`);
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
export {
|
|
211
|
+
export { name6, Input6, Plugin23, toModelContent3, exports_read };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service80
|
|
3
|
-
} from "./reference-e7ngq1fb.js";
|
|
4
1
|
import {
|
|
5
2
|
Service79
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-w19ppvv8.js";
|
|
4
|
+
import {
|
|
5
|
+
Service78
|
|
6
|
+
} from "./file-mutation-2phvqca6.js";
|
|
7
7
|
import {
|
|
8
8
|
Service41
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-k0zpnkm5.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-p8qxwesx.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID5,
|
|
15
|
+
Service35
|
|
16
|
+
} from "./file-mutation-58hcpyay.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-mntxs535.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionMessage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./file-mutation-982e01ww.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./file-mutation-45a3e49b.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./file-mutation-g2dy4bvs.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/session/revert.ts
|
|
34
34
|
var exports_revert = {};
|
|
@@ -43,11 +43,11 @@ import { and, asc, eq, gt } from "drizzle-orm";
|
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
45
|
const instances = yield* Service41;
|
|
46
|
-
const database = yield*
|
|
47
|
-
const bus = yield*
|
|
46
|
+
const database = yield* Service79;
|
|
47
|
+
const bus = yield* Service78;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service35;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -75,12 +75,12 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
77
|
const instances = yield* Service41;
|
|
78
|
-
const bus = yield*
|
|
78
|
+
const bus = yield* Service78;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service35;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID5.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service80
|
|
3
|
-
} from "./reference-e7ngq1fb.js";
|
|
4
1
|
import {
|
|
5
2
|
Service79
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-w19ppvv8.js";
|
|
4
|
+
import {
|
|
5
|
+
Service78
|
|
6
|
+
} from "./file-mutation-2phvqca6.js";
|
|
7
7
|
import {
|
|
8
8
|
Service41
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-k0zpnkm5.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-fxbjtjnd.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-982e01ww.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError6,
|
|
18
18
|
MessageNotFoundError2,
|
|
19
19
|
MessageNotAssistantError2,
|
|
20
20
|
MessageIncompleteError2,
|
|
@@ -24,52 +24,52 @@ import {
|
|
|
24
24
|
CompactionConflictError2,
|
|
25
25
|
BusyError2,
|
|
26
26
|
InboxConflictError2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-mutation-45a3e49b.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionEvent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-mntxs535.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
Service46
|
|
33
|
+
} from "./file-mutation-wy24wt1k.js";
|
|
34
34
|
import {
|
|
35
35
|
Delivery2,
|
|
36
36
|
SyntheticPayload2,
|
|
37
37
|
Service39
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./file-mutation-s3vrd4d2.js";
|
|
39
39
|
import {
|
|
40
40
|
Service37
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./file-mutation-b2cva8t7.js";
|
|
42
42
|
import {
|
|
43
43
|
prepare2
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./file-mutation-rhqk4sk8.js";
|
|
45
45
|
import {
|
|
46
46
|
stage2,
|
|
47
47
|
clear2,
|
|
48
48
|
commit2
|
|
49
|
-
} from "./
|
|
49
|
+
} from "./file-mutation-nt2vsa9g.js";
|
|
50
50
|
import {
|
|
51
51
|
start2
|
|
52
|
-
} from "./
|
|
52
|
+
} from "./file-mutation-w5gv9txn.js";
|
|
53
53
|
import {
|
|
54
54
|
get4
|
|
55
|
-
} from "./
|
|
55
|
+
} from "./file-mutation-5e624tvg.js";
|
|
56
56
|
import {
|
|
57
57
|
__export
|
|
58
|
-
} from "./
|
|
58
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
59
59
|
|
|
60
60
|
// src/session/session.ts
|
|
61
61
|
var exports_session2 = {};
|
|
62
62
|
__export(exports_session2, {
|
|
63
63
|
Session: () => exports_session2,
|
|
64
|
-
make: () =>
|
|
64
|
+
make: () => make13
|
|
65
65
|
});
|
|
66
66
|
import { DateTime, Effect, Fiber, Schema, Scope } from "effect";
|
|
67
67
|
import { Event } from "@opencode-ai/schema/event";
|
|
68
68
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
69
|
-
var
|
|
70
|
-
const bus = yield*
|
|
71
|
-
const database = yield*
|
|
72
|
-
const store = yield*
|
|
69
|
+
var make13 = Effect.fn("Session.make")(function* () {
|
|
70
|
+
const bus = yield* Service78;
|
|
71
|
+
const database = yield* Service79;
|
|
72
|
+
const store = yield* Service46;
|
|
73
73
|
const instances = yield* Service41;
|
|
74
74
|
const execution = yield* Service37;
|
|
75
75
|
const admission = yield* Service39;
|
|
@@ -78,7 +78,7 @@ var make12 = Effect.fn("Session.make")(function* () {
|
|
|
78
78
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
79
79
|
const session = yield* store.get(sessionID);
|
|
80
80
|
if (!session)
|
|
81
|
-
return yield* new
|
|
81
|
+
return yield* new NotFoundError6({ sessionID });
|
|
82
82
|
return session;
|
|
83
83
|
});
|
|
84
84
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -256,13 +256,13 @@ ${error.message}`,
|
|
|
256
256
|
const session = yield* get(sessionID);
|
|
257
257
|
if (yield* execution.isActive(sessionID))
|
|
258
258
|
return yield* new BusyError2({ sessionID });
|
|
259
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service41, instances), Effect.provideService(
|
|
259
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service41, instances), Effect.provideService(Service79, database), Effect.provideService(Service78, bus));
|
|
260
260
|
});
|
|
261
261
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
262
262
|
const session = yield* get(sessionID);
|
|
263
263
|
if (yield* execution.isActive(sessionID))
|
|
264
264
|
return yield* new BusyError2({ sessionID });
|
|
265
|
-
yield* clear2(session).pipe(Effect.provideService(Service41, instances), Effect.provideService(
|
|
265
|
+
yield* clear2(session).pipe(Effect.provideService(Service41, instances), Effect.provideService(Service78, bus));
|
|
266
266
|
return yield* execution.wake(sessionID);
|
|
267
267
|
});
|
|
268
268
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -348,4 +348,4 @@ function isUnfinishedTool(content) {
|
|
|
348
348
|
return content.type === "tool" && (content.state.status === "streaming" || content.state.status === "running");
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
export {
|
|
351
|
+
export { make13, exports_session2 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./file-mutation-w19ppvv8.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-mutation-g2gt0w0k.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-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: () =>
|
|
16
|
+
ID: () => ID8,
|
|
17
|
+
Info: () => Info8,
|
|
18
18
|
ListInput: () => ListInput5,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service47,
|
|
21
|
+
node: () => node50
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode-ai/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode-ai/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID8 = PermissionSaved.ID;
|
|
29
|
+
var Info8 = PermissionSaved.Info;
|
|
30
30
|
var ListInput5 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -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 Service47 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const db = (yield*
|
|
41
|
+
var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
42
|
+
const db = (yield* Service79).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) => ({
|
|
@@ -53,7 +53,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
53
53
|
if (!input.resources.length)
|
|
54
54
|
return;
|
|
55
55
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
56
|
-
id:
|
|
56
|
+
id: ID8.create(),
|
|
57
57
|
project_id: input.projectID,
|
|
58
58
|
action: input.action,
|
|
59
59
|
resource
|
|
@@ -62,8 +62,8 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
62
62
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
63
63
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
64
64
|
});
|
|
65
|
-
return
|
|
65
|
+
return Service47.of({ list, add, remove });
|
|
66
66
|
}));
|
|
67
|
-
var
|
|
67
|
+
var node50 = makeGlobalNode({ service: Service47, layer, deps: [node84] });
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { ID8, Info8, ListInput5, AddInput2, Service47, node50, exports_saved };
|