@opencode/core 0.0.0-dev-20292 → 0.0.0-dev-20295
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 +5 -5
- package/dist/bus.js +69 -69
- package/dist/chunks/{ripgrep-2dfsp93b.js → location-016zrmbp.js} +40 -40
- package/dist/chunks/{ripgrep-w29ra1z6.js → location-03b5ykzw.js} +3 -3
- package/dist/chunks/{ripgrep-rpg9c19m.js → location-06x8he3q.js} +4 -4
- package/dist/chunks/{ripgrep-n542nw20.js → location-09mh3h53.js} +15 -15
- package/dist/chunks/{ripgrep-rgwtw4pk.js → location-0g11kb4v.js} +13 -13
- package/dist/chunks/{ripgrep-0czp0bk4.js → location-0jvg19fh.js} +21 -21
- package/dist/chunks/{ripgrep-0paq2nw3.js → location-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-j4g07zwy.js → location-13xegjf9.js} +33 -33
- package/dist/chunks/{ripgrep-4hkxpksb.js → location-15zraegk.js} +30 -30
- package/dist/chunks/{ripgrep-5vtq9k1b.js → location-16a16tg4.js} +13 -13
- package/dist/chunks/{ripgrep-f5gy8qwh.js → location-18rp1xkf.js} +8 -8
- package/dist/chunks/{ripgrep-2f7cedef.js → location-1akzjdkx.js} +20 -20
- package/dist/chunks/{ripgrep-1dazxqgg.js → location-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-6g6nvm69.js → location-1gmrbm9q.js} +20 -20
- package/dist/chunks/{ripgrep-4djqy3b1.js → location-1jysqf0q.js} +26 -26
- package/dist/chunks/{ripgrep-2dch9cv2.js → location-1qetcq2f.js} +4 -4
- package/dist/chunks/location-1s2cnys0.js +252 -0
- package/dist/chunks/{ripgrep-937m9zg6.js → location-1zr7j3r4.js} +5 -5
- package/dist/chunks/{ripgrep-21r38tys.js → location-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-464yenze.js → location-25h6wh0b.js} +33 -33
- package/dist/chunks/{ripgrep-hw1tkaa7.js → location-27z7pma6.js} +16 -16
- package/dist/chunks/{ripgrep-8d0p2m37.js → location-299n82gd.js} +8 -8
- package/dist/chunks/{ripgrep-2a5m3afh.js → location-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-qgn6gcr1.js → location-2k8khapm.js} +5 -5
- package/dist/chunks/{ripgrep-669mnavw.js → location-2r60reda.js} +21 -21
- package/dist/chunks/{ripgrep-bdqrk2vk.js → location-2y34zzjz.js} +4 -4
- package/dist/chunks/{ripgrep-52dfra55.js → location-2zxaccxt.js} +10 -10
- package/dist/chunks/{ripgrep-xq1s1hxa.js → location-30pndsv9.js} +4 -4
- package/dist/chunks/{ripgrep-73a2vzjg.js → location-3ez35teb.js} +15 -15
- package/dist/chunks/{ripgrep-3fc6dm20.js → location-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-a8zr1srk.js → location-3pbjq009.js} +8 -8
- package/dist/chunks/{ripgrep-j3s2z371.js → location-3pe7sts8.js} +9 -9
- package/dist/chunks/{ripgrep-3smtnn6g.js → location-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → location-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-3zsf4n22.js → location-3zsf4n22.js} +1 -1
- package/dist/chunks/{ripgrep-0bfcnrg1.js → location-427t97hr.js} +1 -1
- package/dist/chunks/{ripgrep-eqd5qykg.js → location-46t99vnr.js} +13 -13
- package/dist/chunks/{ripgrep-aq3yrsfq.js → location-4928d4yw.js} +11 -11
- package/dist/chunks/{ripgrep-4vznd14g.js → location-4c9fncqc.js} +5 -5
- package/dist/chunks/{ripgrep-atg39wsg.js → location-4gma0qdv.js} +11 -11
- package/dist/chunks/{ripgrep-5yjg4844.js → location-4jmq7cn8.js} +11 -11
- package/dist/chunks/{ripgrep-wexprs6b.js → location-4r1h02t6.js} +29 -29
- package/dist/chunks/{ripgrep-rx84aht4.js → location-4sb5xsr0.js} +15 -15
- package/dist/chunks/{ripgrep-p2szdq98.js → location-4v0x0v53.js} +44 -44
- package/dist/chunks/{ripgrep-cznrqaaz.js → location-4vgcem2z.js} +1 -1
- package/dist/chunks/{ripgrep-avzdjs5z.js → location-51n8w2am.js} +6 -6
- package/dist/chunks/{ripgrep-54ma36ye.js → location-54ma36ye.js} +1 -1
- package/dist/chunks/{ripgrep-mfqp6xfm.js → location-56gdpj1q.js} +6 -6
- package/dist/chunks/{ripgrep-5nf5fkza.js → location-58exf9s3.js} +18 -18
- package/dist/chunks/{ripgrep-97d1gz13.js → location-5aserzf1.js} +11 -11
- package/dist/chunks/{ripgrep-k7sekcqa.js → location-5bpccfdn.js} +19 -19
- package/dist/chunks/{ripgrep-5daktx2q.js → location-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-s7cej264.js → location-5j3nemfx.js} +24 -24
- package/dist/chunks/{ripgrep-5848hxr9.js → location-5kbmmh0w.js} +11 -11
- package/dist/chunks/{ripgrep-zpmxzwgb.js → location-5ns8y5nv.js} +8 -8
- package/dist/chunks/{ripgrep-x4k31b5q.js → location-5pc7ckbf.js} +39 -39
- package/dist/chunks/{ripgrep-5t3nmthw.js → location-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-xwm6bryg.js → location-5xpznt2d.js} +4 -4
- package/dist/chunks/{ripgrep-dqx57jvk.js → location-613reg7y.js} +7 -7
- package/dist/chunks/{ripgrep-669tq793.js → location-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-ce6ce29e.js → location-6bass0b7.js} +16 -16
- package/dist/chunks/{ripgrep-6msgmcgs.js → location-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-q4e7vy2b.js → location-6nex2bx1.js} +21 -21
- package/dist/chunks/{ripgrep-q826ync2.js → location-6yvxz189.js} +13 -13
- package/dist/chunks/{ripgrep-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-py3kkmfq.js → location-7fkffz83.js} +4 -4
- package/dist/chunks/{ripgrep-a4691zpg.js → location-7ybfkyhv.js} +19 -19
- package/dist/chunks/{ripgrep-b446k4sn.js → location-7ysj2gw8.js} +24 -24
- package/dist/chunks/{ripgrep-57ez7d0k.js → location-81swgkk7.js} +7 -7
- package/dist/chunks/{ripgrep-84txncab.js → location-84txncab.js} +1 -1
- package/dist/chunks/{ripgrep-fqhn89qk.js → location-87eb0wvk.js} +32 -32
- package/dist/chunks/{ripgrep-4c2df9zx.js → location-8aaqm6qj.js} +8 -8
- package/dist/chunks/{ripgrep-8d7r5vzw.js → location-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-6wgqnbhb.js → location-8j5e0nxw.js} +32 -32
- package/dist/chunks/{ripgrep-40p1p2fq.js → location-8pv27hsx.js} +17 -17
- package/dist/chunks/{ripgrep-asrgbh96.js → location-8t9r9m98.js} +24 -24
- package/dist/chunks/{ripgrep-apcpvt2b.js → location-8x023p49.js} +6 -6
- package/dist/chunks/{ripgrep-vv97ra8n.js → location-8zqs9j7p.js} +11 -11
- package/dist/chunks/{ripgrep-6gsfn1dv.js → location-92r5fjaa.js} +34 -34
- package/dist/chunks/{ripgrep-94ek1h2f.js → location-94ek1h2f.js} +2 -2
- package/dist/chunks/{ripgrep-67r4mtw2.js → location-96xc4j73.js} +9 -9
- package/dist/chunks/{ripgrep-1jqh21ez.js → location-9h6052ys.js} +37 -37
- package/dist/chunks/{ripgrep-qp7sx9de.js → location-9jbrny13.js} +32 -32
- package/dist/chunks/{ripgrep-8v9axdqq.js → location-9sm9gfq3.js} +20 -20
- package/dist/chunks/{ripgrep-y5mjhv0c.js → location-a1b9eenk.js} +4 -4
- package/dist/chunks/{ripgrep-ss37jsxd.js → location-a6zkzxs1.js} +15 -15
- package/dist/chunks/{ripgrep-aaet6srn.js → location-aaet6srn.js} +2 -2
- package/dist/chunks/location-aba4y9w7.js +26 -0
- package/dist/chunks/{ripgrep-te91bpk3.js → location-ajpn13bz.js} +24 -24
- package/dist/chunks/{ripgrep-j7y92zpc.js → location-ambwqhm0.js} +61 -61
- package/dist/chunks/{ripgrep-svxtz2p3.js → location-aqxvbtvc.js} +23 -23
- package/dist/chunks/{ripgrep-d5y0ve3n.js → location-at8brtyc.js} +17 -17
- package/dist/chunks/{ripgrep-84zcxbc9.js → location-axs6pdy0.js} +5 -5
- package/dist/chunks/{ripgrep-vmgq4x8b.js → location-b09hzw3k.js} +2 -2
- package/dist/chunks/{ripgrep-b6gygkdw.js → location-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-dbdkqs60.js → location-b7t5wn2m.js} +17 -17
- package/dist/chunks/{ripgrep-atvavzdr.js → location-bj3zhn3q.js} +5 -5
- package/dist/chunks/{ripgrep-qbbmae1w.js → location-bnty75vp.js} +5 -5
- package/dist/chunks/{ripgrep-j6bb8g4d.js → location-bpc3jfqy.js} +11 -11
- package/dist/chunks/{ripgrep-s9mggv36.js → location-bwqnkjsb.js} +17 -17
- package/dist/chunks/{ripgrep-jpcvf65v.js → location-bx8vey6p.js} +21 -21
- package/dist/chunks/{ripgrep-tn0aqsam.js → location-c78bbtc9.js} +5 -5
- package/dist/chunks/{ripgrep-dxczsaw9.js → location-ckbtgcas.js} +12 -12
- package/dist/chunks/{ripgrep-ckecvw8r.js → location-ckecvw8r.js} +2 -2
- package/dist/chunks/{ripgrep-cpy6gm2a.js → location-cpy6gm2a.js} +1 -1
- package/dist/chunks/{ripgrep-fvy6pxa1.js → location-cqhb2t13.js} +23 -23
- package/dist/chunks/{ripgrep-7nm77vb3.js → location-csp167nn.js} +3 -3
- package/dist/chunks/{ripgrep-pymq7jkz.js → location-cw1jgv1w.js} +8 -8
- package/dist/chunks/{ripgrep-5d607bsg.js → location-cwa6csj7.js} +9 -9
- package/dist/chunks/{ripgrep-3hfr6h8q.js → location-czfptnv9.js} +8 -8
- package/dist/chunks/{ripgrep-46tkexde.js → location-d3z5vgb9.js} +77 -77
- package/dist/chunks/{ripgrep-dnpyyfmr.js → location-d725fnbd.js} +30 -30
- package/dist/chunks/{ripgrep-vg7bdtvb.js → location-dnh5am79.js} +9 -9
- package/dist/chunks/{ripgrep-cgkq456e.js → location-dvfstcq5.js} +17 -17
- package/dist/chunks/{ripgrep-r4yqrmdq.js → location-e89xj288.js} +5 -5
- package/dist/chunks/{ripgrep-h5r8400x.js → location-eae26f42.js} +13 -13
- package/dist/chunks/{ripgrep-n5qb4bnc.js → location-eag70mrj.js} +3 -3
- package/dist/chunks/{ripgrep-ecfe7b91.js → location-ecfe7b91.js} +2 -2
- package/dist/chunks/{ripgrep-2wts5qzq.js → location-ednp5hmx.js} +8 -8
- package/dist/chunks/{ripgrep-ef5x83kb.js → location-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-aj930q3s.js → location-ek5t7eqg.js} +3 -3
- package/dist/chunks/{ripgrep-etq0c3wd.js → location-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-tb18kw1r.js → location-f0v8xfz9.js} +33 -33
- package/dist/chunks/{ripgrep-yp2x3t23.js → location-f2n192rq.js} +4 -4
- package/dist/chunks/{ripgrep-a8bn8zg0.js → location-f3ngv102.js} +4 -4
- package/dist/chunks/{ripgrep-hjpq76f0.js → location-f3rj20sn.js} +20 -20
- package/dist/chunks/{ripgrep-9seqqng0.js → location-f5qn67hn.js} +321 -321
- package/dist/chunks/{ripgrep-cpgvmsmz.js → location-f6qf1r64.js} +9 -9
- package/dist/chunks/{ripgrep-n00nrqde.js → location-f99pqswk.js} +36 -36
- package/dist/chunks/{ripgrep-ajskgwrh.js → location-f9qcgrnz.js} +33 -33
- package/dist/chunks/{ripgrep-7dftej1j.js → location-fg6vqa6w.js} +31 -31
- package/dist/chunks/{ripgrep-g5agzp2h.js → location-g5agzp2h.js} +2 -2
- package/dist/chunks/{ripgrep-qa3qhgw8.js → location-g8d3gcyj.js} +7 -7
- package/dist/chunks/{ripgrep-gd4qta3r.js → location-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-dqp0ptjh.js → location-gq9kk5at.js} +6 -6
- package/dist/chunks/{ripgrep-gv6a8nnw.js → location-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-4fx0v051.js → location-gydr4vsc.js} +9 -9
- package/dist/chunks/{ripgrep-4ndvwbzn.js → location-gz5dk3bq.js} +3 -3
- package/dist/chunks/{ripgrep-7ab4f44s.js → location-h23ctypg.js} +18 -18
- package/dist/chunks/{ripgrep-3tfp5dh2.js → location-h345add1.js} +8 -8
- package/dist/chunks/{ripgrep-y3c47kq2.js → location-h3qzgcp1.js} +13 -13
- package/dist/chunks/{ripgrep-6ydrntg5.js → location-h3s7v34z.js} +6 -6
- package/dist/chunks/{ripgrep-h6vf3j39.js → location-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-e7ncmn5y.js → location-hhc9atkh.js} +15 -15
- package/dist/chunks/{ripgrep-h6b50tg5.js → location-hmr7k35w.js} +25 -25
- package/dist/chunks/{ripgrep-ez62b8nj.js → location-hn61d6g7.js} +6 -6
- package/dist/chunks/{ripgrep-qnj1ev0v.js → location-hn75rfyg.js} +11 -11
- package/dist/chunks/{ripgrep-e6te0wgx.js → location-hngjveb4.js} +10 -10
- package/dist/chunks/{ripgrep-de52ckkz.js → location-hnr8f6ws.js} +4 -4
- package/dist/chunks/{ripgrep-qndte7za.js → location-hq78f3qw.js} +33 -33
- package/dist/chunks/{ripgrep-fr2byary.js → location-hre7hyen.js} +17 -17
- package/dist/chunks/{ripgrep-1bbkgx8g.js → location-j028xdjb.js} +3 -3
- package/dist/chunks/{ripgrep-j56e64zr.js → location-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-sh80pnfr.js → location-j5fma2v7.js} +33 -33
- package/dist/chunks/{ripgrep-1j6r9yf3.js → location-j6h5z8n4.js} +30 -30
- package/dist/chunks/{ripgrep-sx1n432n.js → location-j83byb14.js} +4 -4
- package/dist/chunks/{ripgrep-jj72jhew.js → location-j8zvn2fh.js} +8 -8
- package/dist/chunks/{ripgrep-8vp0jrea.js → location-jdhe76k5.js} +3 -3
- package/dist/chunks/{ripgrep-80scg3y3.js → location-jewzahs7.js} +4 -4
- package/dist/chunks/{ripgrep-hnefe9tq.js → location-jf5a25sz.js} +44 -44
- package/dist/chunks/{ripgrep-9979gqg8.js → location-jggnvhtg.js} +56 -56
- package/dist/chunks/{ripgrep-m1gcv8kj.js → location-jmasdga9.js} +51 -51
- package/dist/chunks/{ripgrep-t3fh9vjv.js → location-jtfh4wfs.js} +19 -19
- package/dist/chunks/{ripgrep-ea8e1byc.js → location-k0h4mfgc.js} +46 -46
- package/dist/chunks/{ripgrep-mxfbfm56.js → location-kk3cv3zh.js} +1 -1
- package/dist/chunks/{ripgrep-29jfjc42.js → location-kn0epzjf.js} +7 -7
- package/dist/chunks/{ripgrep-bv8nht0w.js → location-knetett0.js} +48 -48
- package/dist/chunks/{ripgrep-6hjx5zpb.js → location-kp8q1t60.js} +9 -9
- package/dist/chunks/{ripgrep-6dwdgb0a.js → location-kx6ewwgc.js} +5 -5
- package/dist/chunks/{ripgrep-m3fdjcah.js → location-m3fdjcah.js} +1 -1
- package/dist/chunks/{ripgrep-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-9r5kv9cm.js → location-mam35mvc.js} +12 -12
- package/dist/chunks/{ripgrep-14yyfa4b.js → location-math506r.js} +24 -24
- package/dist/chunks/{ripgrep-bn30swxx.js → location-mc8ws243.js} +26 -26
- package/dist/chunks/{ripgrep-5g11er5x.js → location-mn2xmmev.js} +14 -14
- package/dist/chunks/{ripgrep-vkchd65f.js → location-mntfxcz2.js} +4 -4
- package/dist/chunks/{ripgrep-addxnjmp.js → location-mpk0rfs5.js} +4 -4
- package/dist/chunks/{ripgrep-z508a32f.js → location-mq8f5nmh.js} +24 -24
- package/dist/chunks/{ripgrep-qq5y994f.js → location-mw2h8ask.js} +18 -18
- package/dist/chunks/{ripgrep-wnj5dgs2.js → location-n0ppq016.js} +14 -14
- package/dist/chunks/{ripgrep-1ynb6qa0.js → location-n1m68ejj.js} +20 -20
- package/dist/chunks/{ripgrep-tn8eqcjj.js → location-n5rr0bsk.js} +6 -6
- package/dist/chunks/{ripgrep-x3ggs2d6.js → location-n77hk0vh.js} +12 -12
- package/dist/chunks/{ripgrep-e5jn2fa5.js → location-nw7gx7cz.js} +28 -28
- package/dist/chunks/{ripgrep-614e606q.js → location-nwnnebx3.js} +20 -20
- package/dist/chunks/{ripgrep-sypvhjmn.js → location-nxhp6d1h.js} +18 -18
- package/dist/chunks/{ripgrep-k3c624dm.js → location-nzks3jc8.js} +3 -3
- package/dist/chunks/{ripgrep-3b9qt4hj.js → location-patgj9rf.js} +9 -9
- package/dist/chunks/{ripgrep-snrx9wzx.js → location-pb18q5py.js} +36 -36
- package/dist/chunks/{ripgrep-0f9afca0.js → location-pecb0brz.js} +5 -5
- package/dist/chunks/{ripgrep-9gqwmv79.js → location-pg092y7m.js} +23 -23
- package/dist/chunks/{ripgrep-c5zhzd6d.js → location-pgsw580e.js} +17 -17
- package/dist/chunks/{ripgrep-pjvnvgmy.js → location-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-qkn179pw.js → location-pr72k1jg.js} +13 -13
- package/dist/chunks/{ripgrep-jgnf2bvc.js → location-prww9d41.js} +10 -10
- package/dist/chunks/{ripgrep-drtcq7dv.js → location-ps9c259y.js} +17 -17
- package/dist/chunks/{ripgrep-qpwf5ett.js → location-px4zyfbx.js} +10 -10
- package/dist/chunks/{ripgrep-gn14yt0k.js → location-pxya9xw6.js} +26 -26
- package/dist/chunks/{ripgrep-91wvh588.js → location-q7sva9xj.js} +9 -9
- package/dist/chunks/{ripgrep-ymtchxmw.js → location-qahgzyff.js} +36 -36
- package/dist/chunks/{ripgrep-54j2g604.js → location-qgt4e7dm.js} +8 -8
- package/dist/chunks/{ripgrep-gmddfe7k.js → location-qqcp2fey.js} +11 -6
- package/dist/chunks/{ripgrep-xfkkasph.js → location-qqeeq2t9.js} +7 -7
- package/dist/chunks/{ripgrep-dppfvz3f.js → location-qrarvdac.js} +16 -16
- package/dist/chunks/{ripgrep-v88ypzx6.js → location-qrpna819.js} +15 -15
- package/dist/chunks/{ripgrep-qsdy395h.js → location-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-ng5rtwhy.js → location-qtpgf39r.js} +3 -3
- package/dist/chunks/{ripgrep-a2qe2ev9.js → location-qwjmgwmn.js} +8 -8
- package/dist/chunks/{ripgrep-54n8g67r.js → location-qwwvq786.js} +11 -11
- package/dist/chunks/{ripgrep-f8yxf6yh.js → location-r0dmdece.js} +2 -2
- package/dist/chunks/{ripgrep-cp937pt4.js → location-ra4n65wq.js} +4 -4
- package/dist/chunks/{ripgrep-rdw6cm16.js → location-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-wbd0sh62.js → location-rnr5nq63.js} +20 -20
- package/dist/chunks/{ripgrep-gpp31qn3.js → location-rnx3qgyn.js} +37 -37
- package/dist/chunks/{ripgrep-72mdmaav.js → location-rp7q4m9n.js} +14 -14
- package/dist/chunks/{ripgrep-eaj1djv9.js → location-s8d7rejh.js} +6 -6
- package/dist/chunks/{ripgrep-bjb1q8ez.js → location-sc4ksy03.js} +8 -8
- package/dist/chunks/{ripgrep-h90y3pkt.js → location-sd23ea76.js} +15 -15
- package/dist/chunks/{ripgrep-dnwg479b.js → location-sdvk2ad6.js} +20 -20
- package/dist/chunks/{ripgrep-gc0xbwck.js → location-sqr731h9.js} +10 -10
- package/dist/chunks/{ripgrep-v2p4rfxw.js → location-swabsky0.js} +6 -6
- package/dist/chunks/{ripgrep-yf4jcbx9.js → location-sxzvkvgj.js} +6 -6
- package/dist/chunks/{ripgrep-s30fyz93.js → location-syf57q56.js} +4 -4
- package/dist/chunks/{ripgrep-n3vygs5b.js → location-sz763eb6.js} +6 -6
- package/dist/chunks/{ripgrep-tazgh4e4.js → location-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-tcezcvh9.js → location-tcezcvh9.js} +1 -1
- package/dist/chunks/{ripgrep-tdstcens.js → location-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-pj6tenb7.js → location-tjp0ts8d.js} +177 -177
- package/dist/chunks/{ripgrep-a48m945n.js → location-tjyds3np.js} +15 -15
- package/dist/chunks/{ripgrep-xhfc0ae0.js → location-tvsfvamq.js} +5 -5
- package/dist/chunks/{ripgrep-tvtrv512.js → location-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-0j45e4a4.js → location-v01qj8m2.js} +22 -22
- package/dist/chunks/{ripgrep-v1faaxn9.js → location-v1faaxn9.js} +1 -1
- package/dist/chunks/{ripgrep-xdfgknmx.js → location-v3679p2r.js} +17 -17
- package/dist/chunks/{ripgrep-ap544ky7.js → location-v4w8s23p.js} +32 -32
- package/dist/chunks/{ripgrep-mwymx5eg.js → location-v537vfcj.js} +44 -44
- package/dist/chunks/{ripgrep-g4ev0w7y.js → location-v8v948yd.js} +10 -10
- package/dist/chunks/{ripgrep-veqvce7d.js → location-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-ner28t5a.js → location-vfbk05zz.js} +74 -74
- package/dist/chunks/{ripgrep-bm12swdw.js → location-vz2v0y1g.js} +11 -11
- package/dist/chunks/{ripgrep-vzcthcp8.js → location-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-vzs5sf6e.js → location-vzs5sf6e.js} +1 -1
- package/dist/chunks/{ripgrep-hr01dqex.js → location-w3efebdc.js} +27 -27
- package/dist/chunks/{ripgrep-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-yrdcmk37.js → location-w6fmte8d.js} +30 -30
- package/dist/chunks/{ripgrep-wd3x2cqz.js → location-wd3x2cqz.js} +2 -2
- package/dist/chunks/{ripgrep-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-0spqb8br.js → location-wpn654rn.js} +38 -38
- package/dist/chunks/{ripgrep-yp4zak5f.js → location-wpttx3ek.js} +23 -23
- package/dist/chunks/{ripgrep-2d0eq7f5.js → location-wtyk7tnn.js} +6 -6
- package/dist/chunks/{ripgrep-70m7fb3k.js → location-wxxtmkrx.js} +5 -5
- package/dist/chunks/{ripgrep-xm47dg1f.js → location-wyanbm64.js} +4 -4
- package/dist/chunks/{ripgrep-x1ezjp6w.js → location-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-g3p8qp1x.js → location-xd7pxsgz.js} +10 -10
- package/dist/chunks/{ripgrep-3fn1d266.js → location-xdqwyhzn.js} +7 -7
- package/dist/chunks/{ripgrep-xkntkrq7.js → location-xkntkrq7.js} +2 -2
- package/dist/chunks/{ripgrep-7d4qx0wr.js → location-xxdt3syk.js} +11 -11
- package/dist/chunks/{ripgrep-ndhs64pk.js → location-xxewh186.js} +9 -9
- package/dist/chunks/{ripgrep-y1fvbwt7.js → location-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-97ffttsr.js → location-y4h12032.js} +22 -22
- package/dist/chunks/{ripgrep-dq0v80fr.js → location-y5df08dr.js} +12 -12
- package/dist/chunks/{ripgrep-5cmxdwv8.js → location-y6f0p4jw.js} +3 -3
- package/dist/chunks/{ripgrep-y71avatq.js → location-y71avatq.js} +1 -1
- package/dist/chunks/{ripgrep-ew2ae9f5.js → location-y9kjyn13.js} +12 -12
- package/dist/chunks/{ripgrep-nndvp20a.js → location-yahe92kn.js} +20 -20
- package/dist/chunks/{ripgrep-9xpmj48t.js → location-yf8kg88s.js} +7 -7
- package/dist/chunks/{ripgrep-jv01nqvq.js → location-yjptyezs.js} +5 -5
- package/dist/chunks/{ripgrep-harp7y6f.js → location-yk6wy72m.js} +21 -21
- package/dist/chunks/{ripgrep-g0qymqv1.js → location-yrccs5dw.js} +29 -29
- package/dist/chunks/{ripgrep-yrhqyw5v.js → location-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-yrznvahk.js → location-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-a6znh3jt.js → location-yxcw63er.js} +23 -23
- package/dist/chunks/{ripgrep-z07pqspn.js → location-z07pqspn.js} +3 -3
- package/dist/chunks/{ripgrep-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-qr0v61ms.js → location-z1dsjv8w.js} +24 -24
- package/dist/chunks/{ripgrep-vb3rn859.js → location-z5q8ygm0.js} +25 -25
- package/dist/chunks/{ripgrep-z63w68vq.js → location-z63w68vq.js} +2 -2
- package/dist/chunks/{ripgrep-2wyx13rv.js → location-z7eps1h1.js} +4 -4
- package/dist/chunks/{ripgrep-zeh9ct20.js → location-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-s5v1wr1y.js → location-zm51y9zq.js} +14 -14
- package/dist/chunks/{ripgrep-zr2ceqn5.js → location-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-nd3632dr.js → location-zsh9941h.js} +10 -10
- package/dist/chunks/{ripgrep-zxq2ej10.js → location-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +213 -213
- 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 +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +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/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +98 -98
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +99 -99
- 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 +362 -362
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +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 +100 -100
- package/dist/models-dev.js +103 -103
- 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 +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- 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 +5 -5
- package/dist/plugin/internal.js +334 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +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 +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +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 +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +162 -162
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +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 +133 -133
- package/dist/session/context.js +149 -149
- 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 +219 -219
- 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 +90 -90
- 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 +2 -2
- 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 +126 -126
- package/dist/session/projector.js +84 -84
- 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 +3 -3
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +112 -112
- 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 +116 -116
- package/dist/tool/plugin/grep.js +122 -122
- 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 +218 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/types/session/error.d.ts +5 -0
- package/dist/types/session/history.d.ts +48 -0
- package/dist/types/session/transfer.d.ts +30 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +1 -1
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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/ripgrep-0qk019jc.js +0 -26
- package/dist/chunks/ripgrep-34d822yn.js +0 -252
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → location-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → location-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-34c7v6d4.js → location-34c7v6d4.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → location-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-5qd3pb7m.js → location-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → location-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → location-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → location-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → location-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → location-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → location-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → location-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-csp167nn.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-mntfxcz2.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event18,
|
|
24
|
+
ID: () => ID15,
|
|
25
|
+
Info: () => Info29,
|
|
26
|
+
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service76,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node80
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID15 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event18 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info29 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID15,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service76 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service84).db;
|
|
55
55
|
const bus = yield* Service83;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info29({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service76.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info29({
|
|
80
|
+
id: ID15.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node80 = makeGlobalNode({ service: Service76, layer, deps: [node88, node87] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID15, OAuth3, Key4, Value2, Event18, Info29, Service76, node80, exports_credential };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/skills.ts
|
|
6
6
|
var exports_skills = {};
|
|
7
7
|
__export(exports_skills, {
|
|
8
8
|
ConfigSkillsV1: () => exports_skills,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info12
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info12 = Schema.Struct({
|
|
13
13
|
paths: Schema.optional(Schema.Array(Schema.String)).annotate({
|
|
14
14
|
description: "Additional paths to skill folders"
|
|
15
15
|
}),
|
|
@@ -18,4 +18,4 @@ var Info10 = Schema.Struct({
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info12, exports_skills };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error3,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make19,
|
|
14
|
+
node: () => node55,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error3 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make19 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node55 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error3, ProviderNotFound2, make19, RegistryService2, registry2, registryNode2, node55, exports_driver };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./location-v4w8s23p.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/amazon-bedrock.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -18,7 +18,7 @@ var AmazonBedrockPlugin2 = define({
|
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
19
19
|
yield* ctx.integration.transform((editor) => {
|
|
20
20
|
editor.method.update({
|
|
21
|
-
integrationID:
|
|
21
|
+
integrationID: ID13.amazonBedrock,
|
|
22
22
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin46,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin46 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin29 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin46, exports_identity };
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service49
|
|
7
|
+
} from "./location-5pc7ckbf.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service51
|
|
13
|
+
} from "./location-5j3nemfx.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service43
|
|
16
|
+
} from "./location-8pv27hsx.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service64
|
|
19
|
+
} from "./location-jggnvhtg.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service57,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-58exf9s3.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service54,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-rnr5nq63.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError6,
|
|
36
|
+
Service47
|
|
37
|
+
} from "./location-k0h4mfgc.js";
|
|
38
38
|
import {
|
|
39
39
|
Service22
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./location-d3z5vgb9.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./location-z7eps1h1.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./location-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell = {};
|
|
50
|
+
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input7,
|
|
53
|
+
Plugin: () => Plugin9,
|
|
54
|
+
ShellTool: () => exports_shell,
|
|
55
|
+
name: () => name7
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name7 = "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 Input7 = 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 Plugin9 = {
|
|
120
120
|
id: "opencode.tool.shell",
|
|
121
121
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
122
122
|
const sessions = yield* Service22;
|
|
123
|
-
const jobs = yield*
|
|
123
|
+
const jobs = yield* Service43;
|
|
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* Service51;
|
|
126
|
+
const access = yield* Service57;
|
|
127
|
+
const shell = yield* Service47;
|
|
128
|
+
const shellSelect = yield* Service54;
|
|
129
129
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
130
|
-
const permission = yield*
|
|
131
|
-
const config = yield*
|
|
130
|
+
const permission = yield* Service64;
|
|
131
|
+
const config = yield* Service49;
|
|
132
132
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
133
133
|
const source = {
|
|
134
134
|
type: "tool",
|
|
@@ -147,7 +147,7 @@ var Plugin48 = {
|
|
|
147
147
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
148
148
|
if (parsed.commands.length > 0)
|
|
149
149
|
yield* permission.assert({
|
|
150
|
-
action:
|
|
150
|
+
action: name7,
|
|
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 Plugin48 = {
|
|
|
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: name7,
|
|
188
188
|
options: { codemode: false },
|
|
189
189
|
description: description(),
|
|
190
|
-
input:
|
|
190
|
+
input: Input7,
|
|
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 Plugin48 = {
|
|
|
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 NotFoundError6({ 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: name7,
|
|
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[name7];
|
|
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 { name7, DEFAULT_TIMEOUT_MS2, Input7, Plugin9, exports_shell };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-mntfxcz2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./location-6bass0b7.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID11,
|
|
11
|
+
Service67,
|
|
12
|
+
node71
|
|
13
|
+
} from "./location-2r60reda.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError8
|
|
16
|
+
} from "./location-sz763eb6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service65,
|
|
19
|
+
node69
|
|
20
|
+
} from "./location-zm51y9zq.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service66,
|
|
26
|
+
node70
|
|
27
|
+
} from "./location-ps9c259y.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service71,
|
|
30
|
+
node75
|
|
31
|
+
} from "./location-qwjmgwmn.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
37
|
var exports_permission2 = {};
|
|
@@ -42,29 +42,29 @@ __export(exports_permission2, {
|
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
45
|
+
Event: () => Event13,
|
|
46
|
+
ID: () => ID8,
|
|
47
|
+
NotFoundError: () => NotFoundError7,
|
|
48
48
|
Permission: () => exports_permission2,
|
|
49
|
-
Reply: () =>
|
|
49
|
+
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
|
-
Request: () =>
|
|
51
|
+
Request: () => Request2,
|
|
52
52
|
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service64,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node68
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
63
|
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
-
import { Event as
|
|
64
|
+
import { Event as Event13 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID8 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -74,20 +74,20 @@ var RequestFields = {
|
|
|
74
74
|
metadata: Permission.Request.fields.metadata,
|
|
75
75
|
source: Permission.Request.fields.source
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
var
|
|
77
|
+
var Request2 = Permission.Request;
|
|
78
|
+
var Reply2 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID8.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID11.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
86
|
-
reply:
|
|
85
|
+
requestID: ID8,
|
|
86
|
+
reply: Reply2,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID8,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError7 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID8
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service64 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service83;
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
132
|
+
const location = yield* Service79;
|
|
133
|
+
const agents = yield* Service67;
|
|
134
|
+
const sessions = yield* Service65;
|
|
135
|
+
const saved = yield* Service66;
|
|
136
|
+
const hooks = yield* Service71;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError8({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID8.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID8.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError7({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -259,7 +259,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
259
259
|
requestID: item.request.id,
|
|
260
260
|
reply: "reject"
|
|
261
261
|
});
|
|
262
|
-
yield* Deferred.fail(item.deferred, new DeclinedError2);
|
|
262
|
+
yield* Deferred.fail(item.deferred, input.message ? new CorrectedError2({ feedback: input.message }) : new DeclinedError2);
|
|
263
263
|
pending.delete(id);
|
|
264
264
|
}
|
|
265
265
|
return;
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service64.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node68 = makeLocationNode({
|
|
303
|
+
service: Service64,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node87,
|
|
305
|
+
deps: [node87, node83, node71, node69, node70, node75]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID8, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError7, evaluate2, merge2, Service64, node68, exports_permission2, Rule3, Ruleset2, Event13 };
|