@chrisjowen/wheelhouse 0.22.9 → 0.22.10
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/build/client/_app/immutable/assets/0.CxgStULu.css +1 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js +1 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.br +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js +1 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.br +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js +2 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.br +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js +1 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js +1 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js +1 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js +1 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js +7 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js +1 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js +6 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js +1 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js +7 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js +1 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js +8 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js +3 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js +1 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js +3 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js +1 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js +2 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.br +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js +1 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js +1 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js +1 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js +4 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js +1 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.br +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js +3 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js +5 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.br +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js +1 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js +2 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.br +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js +6 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.br +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js +2 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js +1 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js +9 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js +1 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js +9 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js +3 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js +6 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js +1 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js +10 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js +1 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js +3 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js +1 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js +14 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js +150 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js +40 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js +25 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js +5 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js +18 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js +4 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js +6 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js +8 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js +2 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js +5 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js +2 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js +4 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js +3 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js +7 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js +2 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js +4 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js +7 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js +6 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js +23 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.br +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js +5 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js +6 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.br +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js +1 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js +3 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js +10 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/DecisionForm.js-xvsHzFol.js +246 -0
- package/build/server/chunks/chunks/DecisionsBadge.js-Ba3uHWZs.js +79 -0
- package/build/server/chunks/chunks/Discussion.js-Bdc6mCza.js +582 -0
- package/build/server/chunks/chunks/ResizableRail.js-CaXYsa14.js +864 -0
- package/build/server/chunks/chunks/TaskView.js-Ceg1VgsE.js +3015 -0
- package/build/server/chunks/chunks/bell.js-bn_lKpLG.js +194 -0
- package/build/server/chunks/chunks/chat.svelte.js-sTASVMGv.js +417 -0
- package/build/server/chunks/chunks/decisionhome.js-GDNgBJjF.js +319 -0
- package/build/server/chunks/chunks/detail.js-BiXsOr5e.js +149 -0
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +181 -0
- package/build/server/chunks/chunks/feedback.js-DqPCMKCB.js +67 -0
- package/build/server/chunks/chunks/handled.js-CSOW-IZA.js +20 -0
- package/build/server/chunks/chunks/inbox.js-Ci-STS86.js +229 -0
- package/build/server/chunks/chunks/insights.svelte.js-Bkr5JwNs.js +567 -0
- package/build/server/chunks/chunks/internal.js-BFZQ29Rw.js +151 -0
- package/build/server/chunks/chunks/marketplace-service.js-Dux8KDZW.js +557 -0
- package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +121 -0
- package/build/server/chunks/chunks/package.js-BddORhTc.js +160 -0
- package/build/server/chunks/chunks/page.js-BBQIXL1m.js +13 -0
- package/build/server/chunks/chunks/previewhelper2.js-BkkOMPpE.js +210 -0
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +33 -0
- package/build/server/chunks/chunks/runtime.js-D5CM1xFr.js +25696 -0
- package/build/server/chunks/chunks/scribe.js-DPteFaiJ.js +1376 -0
- package/build/server/chunks/chunks/service.js-Jsxdma_u.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CNlAY9fC.js +835 -0
- package/build/server/chunks/chunks/service3.js-CJCzXm3j.js +234 -0
- package/build/server/chunks/chunks/sessions.js-DwnsAQAT.js +519 -0
- package/build/server/chunks/chunks/settings.js-B_K2GMso.js +379 -0
- package/build/server/chunks/chunks/starter.js-De6FnYRT.js +400 -0
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +334 -0
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +504 -0
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +156 -0
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +107 -0
- package/build/server/chunks/chunks/view.js-7t_fs4Ou.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Y1d6GsCd.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CH-h3Pl7.js +111 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CCMWIWlb.js +59 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DXIH_Tt_.js +75 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-nWjmGzXO.js +79 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-SoyoQEs8.js +154 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dd51OPkW.js +56 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BJxEyrRY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0lQ7d4ex.js +107 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DLr0x0ZE.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-bScpFWhy.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dl_lCGny.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CMV9SuiA.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-j9aWA7Ox.js +67 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-mtr8O6IP.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DSTGdSa-.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BAk_G9UZ.js +115 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C_AWiFk_.js +76 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DVlzrd15.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CfdiA9Rf.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dr9UEEmG.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BKVOwD6Q.js +58 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Bjr287a3.js +58 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-B_6DE6G6.js +85 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJzlOY_q.js +83 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CiAgA4MB.js +76 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPgUobdG.js +168 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BMMFlj3H.js +58 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-psBYT9Pj.js +87 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BkaMXW0d.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BFVleJ7Y.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-53atYpc4.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CT3ITClO.js +96 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C2tqGck8.js +118 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEzg-GdT.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BtHG_jAo.js +93 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CBMV7d_i.js +82 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DGiV-zDl.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BmsdvL4P.js +74 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CKWaWFzi.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-sXcrpQCn.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-05bkKDCo.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dv2TIj2l.js +58 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BkaZp7ms.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BlpQJKLF.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-B0D6HGVa.js +63 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-CoGEDP4T.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CeH1E1-1.js +69 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BJAM9u1Z.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B5919bIx.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-fOS_n0Oo.js +81 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dhy3UyX1.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5yLhUK-.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8vY4bNlN.js +84 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-xVKILY2S.js +71 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-FOib6B1u.js +94 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B7PoKpP_.js +77 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-DboClsC1.js +473 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-_t2JBTpH.js +88 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BQq9eUgO.js +67 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DV5Sv6hi.js +77 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BiBWqjSe.js +137 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DxiG_OGk.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BGYEc37e.js +80 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CTzyglnl.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-rZFEYwUA.js +69 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BbY3jmr8.js +63 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rYs21Hmk.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B_kTjBS5.js +109 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ZkKoICXw.js +75 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-BGq0j-tp.js +104 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-COtlUErI.js +123 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-iofjMHUL.js +77 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-lh5ob5IU.js +80 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DibEHnqf.js +81 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BdjAbGdT.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CgI_ZLEj.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BUDwJeuz.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DtbdX65q.js +93 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BhPvfhR9.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-ytsnK_ZP.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CBcVn1mu.js +27 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BEELTWRW.js +82 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Eao6pczH.js +62 -0
- package/build/server/chunks/entries/hooks.server.js-CF4JNzUJ.js +104 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-TepwAVSL.js +54 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CO0DVsYz.js +6028 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-Dhr60fyS.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-D35KG02R.js +5810 -0
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-B1SJ4JXR.js +115 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cuc-vbOM.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-6jCtHLOX.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-BFOofQDq.js +93 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-C0iJcT5-.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DLTE5C5n.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-BGngm7Na.js +16 -0
- package/build/server/chunks/entries/pages/health/_page.svelte.js-q1P9AuIv.js +517 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DX9hQHEu.js +18 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BOQ1XsWC.js +666 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBNfjd5P.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B7Dmf30h.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKEe2-Fq.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DQP_r_hz.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-B6DP_hXM.js +15 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-0ZU6L4gV.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B9y6kIJg.js +18 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-D1bVoyS8.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BlTW0hjJ.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-tetctN1t.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BSg0cHvQ.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DnuFc9-d.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DVFgUMvV.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-B0HUsANb.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CHMmRvZ3.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Bn6Ntdtb.js +15 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D2lE9oK6.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D_08lJPM.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-vFkcChIQ.js +112 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-rpxoOqIW.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Cu-V5UEB.js +11 -0
- package/build/server/chunks/handler-Dr03OdQ-.js +1474 -0
- package/build/server/chunks/index.js-BMxFQyjC.js +4296 -0
- package/build/server/chunks/manifest.js-C_Ui3kN5.js +969 -0
- package/build/server/chunks/nodes/0.js-BV8n1wnt.js +66 -0
- package/build/server/chunks/nodes/1.js-CYQdJgHA.js +9 -0
- package/build/server/chunks/nodes/10.js-BrDRWQQx.js +65 -0
- package/build/server/chunks/nodes/11.js-DdqofsD3.js +64 -0
- package/build/server/chunks/nodes/12.js-DLPGUsTC.js +12 -0
- package/build/server/chunks/nodes/13.js-BdokX4Tq.js +9 -0
- package/build/server/chunks/nodes/14.js-S81xczxH.js +9 -0
- package/build/server/chunks/nodes/15.js-DpvHCVGB.js +63 -0
- package/build/server/chunks/nodes/16.js-BWStEOBD.js +66 -0
- package/build/server/chunks/nodes/17.js-gvgV2hER.js +64 -0
- package/build/server/chunks/nodes/18.js-CT7k54Ej.js +65 -0
- package/build/server/chunks/nodes/19.js-B9UtpBBj.js +64 -0
- package/build/server/chunks/nodes/2.js-Dbm7TfZ5.js +63 -0
- package/build/server/chunks/nodes/20.js-vT3xrxjL.js +24 -0
- package/build/server/chunks/nodes/21.js-BbXio736.js +25 -0
- package/build/server/chunks/nodes/22.js-BMPIZV2w.js +9 -0
- package/build/server/chunks/nodes/23.js-DxLM-Z83.js +25 -0
- package/build/server/chunks/nodes/24.js-CHEjlfCe.js +63 -0
- package/build/server/chunks/nodes/26.js-D4F01T28.js +64 -0
- package/build/server/chunks/nodes/27.js-SDmmboPo.js +63 -0
- package/build/server/chunks/nodes/28.js-BfB0OsO7.js +25 -0
- package/build/server/chunks/nodes/29.js-DmoRXmbF.js +63 -0
- package/build/server/chunks/nodes/3.js-CILuDxnn.js +9 -0
- package/build/server/chunks/nodes/30.js-qL8fMPlb.js +24 -0
- package/build/server/chunks/nodes/31.js-D8hKIBnL.js +22 -0
- package/build/server/chunks/nodes/32.js-opcnFZYn.js +63 -0
- package/build/server/chunks/nodes/33.js-DTBnnQEr.js +66 -0
- package/build/server/chunks/nodes/34.js-CN-lXIx7.js +65 -0
- package/build/server/chunks/nodes/35.js-leP1Nmab.js +26 -0
- package/build/server/chunks/nodes/36.js-BXVNTEuJ.js +65 -0
- package/build/server/chunks/nodes/37.js-BL1cJNDE.js +67 -0
- package/build/server/chunks/nodes/38.js-Ds4te6eT.js +64 -0
- package/build/server/chunks/nodes/39.js-fqFUZvsO.js +64 -0
- package/build/server/chunks/nodes/4.js-BeT-z_5E.js +64 -0
- package/build/server/chunks/nodes/40.js-WIor0bYG.js +63 -0
- package/build/server/chunks/nodes/5.js-Ns9cI3B2.js +63 -0
- package/build/server/chunks/nodes/7.js-BU21SoSq.js +63 -0
- package/build/server/chunks/nodes/8.js-XnRzynxm.js +14 -0
- package/build/server/chunks/nodes/9.js-Dw79X6qg.js +63 -0
- package/dist/cli.js +82 -81
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +0 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
- package/build/client/_app/immutable/chunks/0emaOfOx.js +0 -7
- package/build/client/_app/immutable/chunks/0emaOfOx.js.br +0 -0
- package/build/client/_app/immutable/chunks/0emaOfOx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AATz5Vtc.js +0 -7
- package/build/client/_app/immutable/chunks/AATz5Vtc.js.br +0 -0
- package/build/client/_app/immutable/chunks/AATz5Vtc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B0ZphyID.js +0 -3
- package/build/client/_app/immutable/chunks/B0ZphyID.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0ZphyID.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BC_XNeHe.js +0 -1
- package/build/client/_app/immutable/chunks/BC_XNeHe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BC_XNeHe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPz1qeSs.js +0 -1
- package/build/client/_app/immutable/chunks/BPz1qeSs.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPz1qeSs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js +0 -1
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYQm-VHb.js +0 -6
- package/build/client/_app/immutable/chunks/BYQm-VHb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYQm-VHb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_GB-3Er.js +0 -1
- package/build/client/_app/immutable/chunks/B_GB-3Er.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_GB-3Er.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js +0 -1
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgPPmbbW.js +0 -1
- package/build/client/_app/immutable/chunks/BgPPmbbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgPPmbbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnWhj1AH.js +0 -2
- package/build/client/_app/immutable/chunks/BnWhj1AH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnWhj1AH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrB0U8Br.js +0 -1
- package/build/client/_app/immutable/chunks/BrB0U8Br.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrB0U8Br.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJfafoqX.js +0 -1
- package/build/client/_app/immutable/chunks/CJfafoqX.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJfafoqX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js +0 -1
- package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRG7D48i.js +0 -2
- package/build/client/_app/immutable/chunks/CRG7D48i.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRG7D48i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js +0 -2
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjDEH2t9.js +0 -1
- package/build/client/_app/immutable/chunks/CjDEH2t9.js.br +0 -2
- package/build/client/_app/immutable/chunks/CjDEH2t9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjSftIOB.js +0 -6
- package/build/client/_app/immutable/chunks/CjSftIOB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjSftIOB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpMvc8EL.js +0 -3
- package/build/client/_app/immutable/chunks/CpMvc8EL.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpMvc8EL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2pY9EPU.js +0 -1
- package/build/client/_app/immutable/chunks/D2pY9EPU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2pY9EPU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js +0 -1
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js +0 -1
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js +0 -5
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Do9MI93T.js +0 -8
- package/build/client/_app/immutable/chunks/Do9MI93T.js.br +0 -0
- package/build/client/_app/immutable/chunks/Do9MI93T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Fr_QipqL.js +0 -3
- package/build/client/_app/immutable/chunks/Fr_QipqL.js.br +0 -0
- package/build/client/_app/immutable/chunks/Fr_QipqL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js +0 -4
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js +0 -1
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jQN7UPrf.js +0 -1
- package/build/client/_app/immutable/chunks/jQN7UPrf.js.br +0 -0
- package/build/client/_app/immutable/chunks/jQN7UPrf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m9V6PYwh.js +0 -1
- package/build/client/_app/immutable/chunks/m9V6PYwh.js.br +0 -0
- package/build/client/_app/immutable/chunks/m9V6PYwh.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B9en0bhu.js +0 -2
- package/build/client/_app/immutable/entry/app.B9en0bhu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B9en0bhu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js +0 -1
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js +0 -9
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js +0 -1
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js +0 -9
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js +0 -2
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js +0 -6
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js +0 -1
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.B-f98he1.js +0 -10
- package/build/client/_app/immutable/nodes/14.B-f98he1.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.B-f98he1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js +0 -1
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js +0 -3
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js +0 -1
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js +0 -14
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js +0 -150
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js +0 -40
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js +0 -25
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js +0 -5
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js +0 -18
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js +0 -4
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js +0 -6
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CugI13rk.js +0 -8
- package/build/client/_app/immutable/nodes/27.CugI13rk.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CugI13rk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js +0 -2
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js +0 -5
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js +0 -2
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js +0 -4
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js +0 -3
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js +0 -7
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js +0 -2
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js +0 -4
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js +0 -7
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js +0 -6
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js +0 -23
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js +0 -1
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js.br +0 -1
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js +0 -5
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js +0 -6
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js +0 -1
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js +0 -3
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js +0 -10
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.gz +0 -0
- package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +0 -246
- package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +0 -78
- package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +0 -581
- package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +0 -864
- package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +0 -3015
- package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +0 -194
- package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +0 -417
- package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +0 -311
- package/build/server/chunks/chunks/detail.js-DzX_zEkI.js +0 -149
- package/build/server/chunks/chunks/features.js-B2GRQeLG.js +0 -181
- package/build/server/chunks/chunks/feedback.js-BmnlQB1X.js +0 -67
- package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +0 -20
- package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +0 -222
- package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +0 -567
- package/build/server/chunks/chunks/internal.js-Bwnrl13Q.js +0 -151
- package/build/server/chunks/chunks/marketplace-service.js-BwjByFH7.js +0 -557
- package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +0 -119
- package/build/server/chunks/chunks/package.js-BWopDYsw.js +0 -160
- package/build/server/chunks/chunks/page.js-C9qsE1U6.js +0 -13
- package/build/server/chunks/chunks/previewhelper2.js-Bro5Kyoe.js +0 -210
- package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +0 -33
- package/build/server/chunks/chunks/runtime.js-B79JnWK2.js +0 -25642
- package/build/server/chunks/chunks/scribe.js-Dwxy2NkA.js +0 -1376
- package/build/server/chunks/chunks/service.js-rmCdUjBa.js +0 -1339
- package/build/server/chunks/chunks/service2.js-CuVjzjMp.js +0 -835
- package/build/server/chunks/chunks/service3.js-B_AwjFXe.js +0 -234
- package/build/server/chunks/chunks/sessions.js-DGHSwMvs.js +0 -519
- package/build/server/chunks/chunks/settings.js-84gUkx7e.js +0 -379
- package/build/server/chunks/chunks/starter.js-Bk0e4tp1.js +0 -400
- package/build/server/chunks/chunks/store.js-m6116Gee.js +0 -332
- package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +0 -450
- package/build/server/chunks/chunks/tools.js-B9Uzu0OB.js +0 -156
- package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +0 -107
- package/build/server/chunks/chunks/view.js-CdbC9u-X.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSbkbcih.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Cuh4l5cX.js +0 -111
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CxqjNz9K.js +0 -59
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BOkqzAso.js +0 -75
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-DqWeZDnx.js +0 -79
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Dp6d92o1.js +0 -154
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +0 -56
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-sHIaJYuD.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DVLiAZXm.js +0 -107
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-bcOD-UAG.js +0 -83
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-XIdGfksa.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dvo2WaVg.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BFzvnUDG.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CZFPUyv7.js +0 -67
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-xwvYiN0P.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-R8e7z94R.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BgE6HXps.js +0 -115
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CXfwTb-v.js +0 -76
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DqS1e_EW.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-jf8PJ-20.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Cm3ek5GT.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dxmd5sWA.js +0 -58
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DdE-9v71.js +0 -58
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-uZjy2F7t.js +0 -85
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DY1h0w69.js +0 -83
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C2OsWqIH.js +0 -76
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-8DtekGgO.js +0 -168
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Ba_gA_kn.js +0 -58
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-knOqja0e.js +0 -87
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Dk_70OY8.js +0 -68
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CMCc7usd.js +0 -23
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-BnIiNLLM.js +0 -26
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-58SJEI-H.js +0 -96
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +0 -69
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-DpVQ0-gU.js +0 -118
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CDCEHZ2F.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-bXndbXtD.js +0 -93
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-GqjxRGNr.js +0 -82
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BIcthzJl.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CDsa251C.js +0 -74
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BXha7rBL.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-CglpfA_i.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DY6GpUvU.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CezMnMxX.js +0 -58
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-n8aIgwiW.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Brc3Rir_.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-D_PpU_IB.js +0 -63
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-wdUFeQpc.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CUvFLTtL.js +0 -69
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-Di-7UkP0.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-GNyM42L2.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-RsBtJkWF.js +0 -81
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-TUH5OYFz.js +0 -63
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Bl5DdXd_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8gJ1LMd2.js +0 -84
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-lfPXl0y_.js +0 -71
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-wnnWrfJX.js +0 -94
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B2MBCiL5.js +0 -77
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-C55ehr6a.js +0 -473
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BH29IQL1.js +0 -88
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D-isqamt.js +0 -67
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CQIibVRV.js +0 -77
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Cw9ILP_Q.js +0 -137
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BWgNfggv.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DsKFgPLd.js +0 -80
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CAU01lOe.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BtLUIQuT.js +0 -69
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTQDnPYZ.js +0 -63
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-KEGfpYIz.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-COkOxJYB.js +0 -109
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DVL8enNe.js +0 -75
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B31-eql9.js +0 -104
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DlNfcbxs.js +0 -123
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-xItkzpp3.js +0 -77
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-V8xFvJTX.js +0 -80
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DDRIjDs2.js +0 -81
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-CPKTJr6D.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BtxwuwK2.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-Bl6WY6lX.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-BvEexih3.js +0 -93
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-Cpw5TIJt.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BtiKFkKo.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-Bd8mHvHa.js +0 -27
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DceVA1-i.js +0 -82
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DlIQzyEF.js +0 -62
- package/build/server/chunks/entries/hooks.server.js-DrCOEIuz.js +0 -104
- package/build/server/chunks/entries/pages/_layout.server.ts.js-RXTNXalN.js +0 -54
- package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +0 -6028
- package/build/server/chunks/entries/pages/_page.server.ts.js-CNkzwH65.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +0 -5810
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +0 -115
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-C0FE960w.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-zZ9qO_dt.js +0 -16
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +0 -93
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-DKnSppph.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Git6SUxW.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-CF0wP4Jt.js +0 -16
- package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +0 -517
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DMrngf0O.js +0 -18
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +0 -653
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-B4GqGgPh.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-DIXpFWB4.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CErk9FDM.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-b1Pl3BCW.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BWXtnM6f.js +0 -15
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-COOUFJWd.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-BF6kG2B5.js +0 -18
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-B6uTAGl9.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-STPv_aQR.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BQJtnh5-.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-V4uJeIzJ.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DlHvnbaR.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DD6EulII.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BdlfVJUR.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-D024t04u.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-CqU-yzLn.js +0 -15
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bl3_Glym.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D1YzGPKz.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +0 -112
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BXQ0X1ko.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-CzXN68NU.js +0 -11
- package/build/server/chunks/handler-Bn1fUv6B.js +0 -1474
- package/build/server/chunks/index.js-Mx2dDARn.js +0 -4296
- package/build/server/chunks/manifest.js-B-YEp54X.js +0 -969
- package/build/server/chunks/nodes/0.js-BUBiSzRS.js +0 -66
- package/build/server/chunks/nodes/1.js-BLJ7Klm0.js +0 -9
- package/build/server/chunks/nodes/10.js-CtrWc2wn.js +0 -65
- package/build/server/chunks/nodes/11.js-DJ3Gaern.js +0 -64
- package/build/server/chunks/nodes/12.js-pLEUUewd.js +0 -12
- package/build/server/chunks/nodes/13.js-hX0iR3ZH.js +0 -9
- package/build/server/chunks/nodes/14.js-CGtz8B7y.js +0 -9
- package/build/server/chunks/nodes/15.js-8RVQO15R.js +0 -63
- package/build/server/chunks/nodes/16.js-D7bYd07V.js +0 -66
- package/build/server/chunks/nodes/17.js-DhdPdpU0.js +0 -64
- package/build/server/chunks/nodes/18.js-B0V_uhB9.js +0 -65
- package/build/server/chunks/nodes/19.js-CmWOSZcm.js +0 -64
- package/build/server/chunks/nodes/2.js-CLB-XV4H.js +0 -63
- package/build/server/chunks/nodes/20.js-Bv8mf2k9.js +0 -24
- package/build/server/chunks/nodes/21.js-Cj-sht45.js +0 -25
- package/build/server/chunks/nodes/22.js-BMWD13bW.js +0 -9
- package/build/server/chunks/nodes/23.js-BFPu5J7m.js +0 -25
- package/build/server/chunks/nodes/24.js-DmRx7lma.js +0 -63
- package/build/server/chunks/nodes/26.js-BzmxsP0K.js +0 -64
- package/build/server/chunks/nodes/27.js-BOBLm3Xv.js +0 -63
- package/build/server/chunks/nodes/28.js--5lcdSOl.js +0 -25
- package/build/server/chunks/nodes/29.js-BpFLyOWJ.js +0 -63
- package/build/server/chunks/nodes/3.js-B93UtyJs.js +0 -9
- package/build/server/chunks/nodes/30.js-B4DJpQXi.js +0 -24
- package/build/server/chunks/nodes/31.js-DOOOaYTt.js +0 -22
- package/build/server/chunks/nodes/32.js-BY7fFTcK.js +0 -63
- package/build/server/chunks/nodes/33.js-3D_1qIJ2.js +0 -66
- package/build/server/chunks/nodes/34.js-BYRFhIDN.js +0 -65
- package/build/server/chunks/nodes/35.js-CfsTfMZd.js +0 -26
- package/build/server/chunks/nodes/36.js-BLSBbLWX.js +0 -65
- package/build/server/chunks/nodes/37.js-D97cum02.js +0 -67
- package/build/server/chunks/nodes/38.js-DmCNtoo5.js +0 -64
- package/build/server/chunks/nodes/39.js-zevF1xrn.js +0 -64
- package/build/server/chunks/nodes/4.js-DkEAmKO9.js +0 -64
- package/build/server/chunks/nodes/40.js-9ki1tEOB.js +0 -63
- package/build/server/chunks/nodes/5.js-0Xrkj28g.js +0 -63
- package/build/server/chunks/nodes/7.js-BwbHOQcn.js +0 -63
- package/build/server/chunks/nodes/8.js-3pWfDfVU.js +0 -14
- package/build/server/chunks/nodes/9.js-BgyqCMp-.js +0 -63
|
@@ -1,1339 +0,0 @@
|
|
|
1
|
-
import { d as defaultConfigDir, r as readPluginSettings, w as writePluginSettings, a as PLUGINS_FILE } from './config.js-CjvhJWDv.js';
|
|
2
|
-
import { execFile } from 'node:child_process';
|
|
3
|
-
import { readFile, mkdir, writeFile, rename, rm, realpath, readdir, stat, mkdtemp } from 'node:fs/promises';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { d as defaultPluginsDir, r as readInstalled, w as writeInstalled, m as manifestPath, p as parseManifest, s as settingViews, a as parseGiven, g as gatherSettings } from './settings4.js-8JjZvg3U.js';
|
|
6
|
-
import { r as roleWords, c as capabilityWords, a as addressWords } from './words.js-DDFrKS99.js';
|
|
7
|
-
import { tmpdir } from 'node:os';
|
|
8
|
-
import { r as restartSoon, c as canRestart } from './restart.js-Dv1_ODgZ.js';
|
|
9
|
-
import { existsSync } from 'node:fs';
|
|
10
|
-
import { N as NPM_STEPS, C as CLONE_SWITCH_STEPS, a as CLONE_SETUP_STEPS, U as UPGRADE_STEPS } from './updates.js-CPT_S4vG.js';
|
|
11
|
-
|
|
12
|
-
const NAME = /^[A-Za-z0-9_.-]+$/;
|
|
13
|
-
const SHA$1 = /^[0-9a-f]{7,40}$/;
|
|
14
|
-
function parseSource(spec) {
|
|
15
|
-
const m = /^([^/@\s]+)\/([^/@\s]+?)(?:\.git)?(?:@(\S+))?$/.exec(spec.trim());
|
|
16
|
-
if (!m || !NAME.test(m[1]) || !NAME.test(m[2]) || m[1].startsWith("-") || m[2].startsWith(".")) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const ref = m[3] ?? null;
|
|
20
|
-
if (ref !== null && (ref.startsWith("-") || !/^[A-Za-z0-9_./-]+$/.test(ref))) return null;
|
|
21
|
-
return { org: m[1], repo: m[2], ref };
|
|
22
|
-
}
|
|
23
|
-
const runGit = (args, cwd) => new Promise((resolve) => {
|
|
24
|
-
execFile(
|
|
25
|
-
"git",
|
|
26
|
-
args,
|
|
27
|
-
{
|
|
28
|
-
cwd,
|
|
29
|
-
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
|
|
30
|
-
maxBuffer: 4 * 1024 * 1024
|
|
31
|
-
},
|
|
32
|
-
(err, stdout, stderr) => resolve({
|
|
33
|
-
code: err ? typeof err.code === "number" ? err.code : 1 : 0,
|
|
34
|
-
stdout: String(stdout),
|
|
35
|
-
stderr: String(stderr)
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
const githubUrl$1 = (s) => `https://github.com/${s.org}/${s.repo}.git`;
|
|
40
|
-
const short = (commit) => commit.slice(0, 12);
|
|
41
|
-
const label = (r) => `${r.repository}${r.ref ? `@${r.ref}` : ""}`;
|
|
42
|
-
class Refused extends Error {
|
|
43
|
-
}
|
|
44
|
-
async function fetchSource(source, into, deps) {
|
|
45
|
-
const git = deps.git ?? runGit;
|
|
46
|
-
const url = (deps.gitUrl ?? githubUrl$1)(source);
|
|
47
|
-
const step = async (args) => {
|
|
48
|
-
const r = await git(args, into);
|
|
49
|
-
if (r.code !== 0)
|
|
50
|
-
throw new Refused(r.stderr.trim().split("\n").pop() || `git ${args[0]} failed`);
|
|
51
|
-
return r.stdout.trim();
|
|
52
|
-
};
|
|
53
|
-
await step(["init", "-q"]);
|
|
54
|
-
const want = source.ref ?? "HEAD";
|
|
55
|
-
const shallow = await git(["fetch", "-q", "--depth", "1", url, want], into);
|
|
56
|
-
if (shallow.code !== 0) {
|
|
57
|
-
if (!source.ref || !SHA$1.test(source.ref)) {
|
|
58
|
-
throw new Refused(
|
|
59
|
-
`could not fetch ${source.org}/${source.repo}${source.ref ? ` at ${source.ref}` : ""}: ${shallow.stderr.trim().split("\n").pop() ?? ""}`
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
await step(["fetch", "-q", url]);
|
|
63
|
-
await step(["checkout", "-q", "--detach", source.ref]);
|
|
64
|
-
} else {
|
|
65
|
-
await step(["checkout", "-q", "--detach", "FETCH_HEAD"]);
|
|
66
|
-
}
|
|
67
|
-
const commit = await step(["rev-parse", "HEAD"]);
|
|
68
|
-
await rm(path.join(into, ".git"), { recursive: true, force: true });
|
|
69
|
-
return commit;
|
|
70
|
-
}
|
|
71
|
-
async function checkCopy(dir) {
|
|
72
|
-
let text;
|
|
73
|
-
try {
|
|
74
|
-
text = await readFile(manifestPath(dir), "utf8");
|
|
75
|
-
} catch {
|
|
76
|
-
throw new Refused("it has no .wheelhouse-plugin/plugin.json, so it is not a Wheelhouse plugin");
|
|
77
|
-
}
|
|
78
|
-
const parsed = parseManifest(text);
|
|
79
|
-
if (!parsed.ok) throw new Refused(`its manifest is not valid: ${parsed.error}`);
|
|
80
|
-
const m = parsed.manifest;
|
|
81
|
-
const base = await realpath(dir);
|
|
82
|
-
for (const [what, rel] of [
|
|
83
|
-
["server entry", m.wheelhouse.server],
|
|
84
|
-
["ui bundle", m.wheelhouse.ui]
|
|
85
|
-
]) {
|
|
86
|
-
if (!rel) continue;
|
|
87
|
-
let file;
|
|
88
|
-
try {
|
|
89
|
-
file = await realpath(path.join(base, rel));
|
|
90
|
-
if (!(await stat(file)).isFile()) throw new Error();
|
|
91
|
-
} catch {
|
|
92
|
-
throw new Refused(`its ${what} ${rel} is missing`);
|
|
93
|
-
}
|
|
94
|
-
if (!file.startsWith(base + path.sep))
|
|
95
|
-
throw new Refused(`its ${what} leads outside the plugin`);
|
|
96
|
-
}
|
|
97
|
-
return m;
|
|
98
|
-
}
|
|
99
|
-
function enabledText(m) {
|
|
100
|
-
const w = m.wheelhouse;
|
|
101
|
-
return w.enabledWhenHomeFile ? `while the Firstmate home has ${w.enabledWhenHomeFile}` : w.enabledWhenFile ? `for projects whose clone has ${w.enabledWhenFile}` : w.enabledByDefault ? "for every project" : "only where your plugins file turns it on";
|
|
102
|
-
}
|
|
103
|
-
function describeManifest(m, from, commit) {
|
|
104
|
-
const w = m.wheelhouse;
|
|
105
|
-
const enabled = enabledText(m);
|
|
106
|
-
return [
|
|
107
|
-
`${m.displayName} (${m.name}) ${m.version}`,
|
|
108
|
-
...m.description ? [` ${m.description}`] : [],
|
|
109
|
-
` From: ${from}`,
|
|
110
|
-
` Commit: ${commit}`,
|
|
111
|
-
...m.author ? [` Author: ${m.author.name}${m.author.url ? ` <${m.author.url}>` : ""}`] : [],
|
|
112
|
-
...m.repository ? [` Homepage: ${m.repository}`] : [],
|
|
113
|
-
` Contract: plugin API ${w.apiVersion}`,
|
|
114
|
-
` Slots: ${w.contributions.map((c) => `${c.slot} (${c.id})`).join(", ") || "none"}`,
|
|
115
|
-
` Services: ${w.services.map((s) => `${s.id} (${s.scope})`).join(", ") || "none"}`,
|
|
116
|
-
` Settings: ${w.settings.map((s) => `${s.key}${s.required ? " (required)" : ""}`).join(", ") || "none"}`,
|
|
117
|
-
...w.mcpServers.length ? [
|
|
118
|
-
` MCP apps: ${w.mcpServers.map((s) => `${s.id} (on ${s.service})`).join(", ")}, drawn in a sandboxed frame`
|
|
119
|
-
] : [],
|
|
120
|
-
...w.hostRoutes.length ? [
|
|
121
|
-
` Answers: ${w.hostRoutes.map((r) => r.host).join(", ")} on Wheelhouse’s port, with its own code`
|
|
122
|
-
] : [],
|
|
123
|
-
...w.addressRewrites.length ? [
|
|
124
|
-
` Addresses: opens addresses on this computer at ${w.addressRewrites.map((r) => r.to).join(", ")}`
|
|
125
|
-
] : [],
|
|
126
|
-
...w.capabilities.includes("feedback") ? [" Sends: feedback lists to Firstmate about a task, each on your click"] : [],
|
|
127
|
-
...roleWords(w.provides.map((p) => p.role)).map((r) => ` Role: ${r}`),
|
|
128
|
-
` UI bundle: ${w.ui ?? "none"}`,
|
|
129
|
-
` On: ${enabled}`,
|
|
130
|
-
"",
|
|
131
|
-
"Its code runs with your permissions: its server entry inside Wheelhouse, and",
|
|
132
|
-
"its UI bundle in Wheelhouse’s pages. Wheelhouse gives it read-only helpers, but",
|
|
133
|
-
"does not sandbox it. Install only plugins you trust."
|
|
134
|
-
];
|
|
135
|
-
}
|
|
136
|
-
async function withStaging(dir, work) {
|
|
137
|
-
await mkdir(dir, { recursive: true });
|
|
138
|
-
const staging = await mkdtemp(path.join(dir, ".staging-"));
|
|
139
|
-
try {
|
|
140
|
-
return await work(staging);
|
|
141
|
-
} finally {
|
|
142
|
-
await rm(staging, { recursive: true, force: true });
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
async function guarded(work) {
|
|
146
|
-
try {
|
|
147
|
-
return await work();
|
|
148
|
-
} catch (e) {
|
|
149
|
-
if (e instanceof Refused) return { ok: false, error: e.message };
|
|
150
|
-
throw e;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function given(pairs2) {
|
|
154
|
-
const g2 = parseGiven(pairs2 ?? []);
|
|
155
|
-
if (!g2.ok) throw new Refused(g2.error);
|
|
156
|
-
return g2.given;
|
|
157
|
-
}
|
|
158
|
-
async function settle(m, deps, o) {
|
|
159
|
-
if (!m.wheelhouse.settings.length && !Object.keys(o.given).length) return null;
|
|
160
|
-
const current = await readPluginSettings(deps.configDir, m.name);
|
|
161
|
-
if (!current.ok) throw new Refused(current.error);
|
|
162
|
-
const r = await gatherSettings(m.name, m.wheelhouse.settings, {
|
|
163
|
-
current: current.settings,
|
|
164
|
-
given: o.given,
|
|
165
|
-
ask: o.yes ? null : deps.ask ?? null,
|
|
166
|
-
intro: `${m.displayName} needs some settings (Enter keeps the one in brackets):`,
|
|
167
|
-
log: deps.log
|
|
168
|
-
});
|
|
169
|
-
if (!r.ok) throw new Refused(r.error);
|
|
170
|
-
return r.settings;
|
|
171
|
-
}
|
|
172
|
-
async function keepSettings(id, settings, deps) {
|
|
173
|
-
const w = await writePluginSettings(deps.configDir, id, settings);
|
|
174
|
-
if (!w.ok) throw new Refused(`could not keep ${id}'s settings: ${w.error}`);
|
|
175
|
-
deps.log(`Kept ${id}'s settings in ${path.join(deps.configDir, PLUGINS_FILE)}.`);
|
|
176
|
-
}
|
|
177
|
-
async function reload(deps, what, yes) {
|
|
178
|
-
const r = await deps.restart(async (url, busy) => {
|
|
179
|
-
deps.log(`Restarting Wheelhouse at ${url} stops what it is running:`);
|
|
180
|
-
for (const b of busy) deps.log(` - ${b}`);
|
|
181
|
-
return yes || deps.confirm("Restart it now?");
|
|
182
|
-
});
|
|
183
|
-
for (const url of r.restarted) deps.log(`Restarting Wheelhouse at ${url} to ${what}.`);
|
|
184
|
-
for (const url of r.kept) deps.log(`Left Wheelhouse at ${url} running; restart it to ${what}.`);
|
|
185
|
-
for (const f of r.failed) {
|
|
186
|
-
deps.log(`Could not restart Wheelhouse at ${f.url} (${f.reason}); restart it to ${what}.`);
|
|
187
|
-
}
|
|
188
|
-
if (!r.restarted.length && !r.kept.length && !r.failed.length) {
|
|
189
|
-
deps.log(`Wheelhouse is not running; it will ${what} when it next starts.`);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
async function record(deps) {
|
|
193
|
-
const r = await readInstalled(deps.dir);
|
|
194
|
-
if (!r.ok) throw new Refused(r.error);
|
|
195
|
-
return r.installed;
|
|
196
|
-
}
|
|
197
|
-
function expected(commit, expect, repository) {
|
|
198
|
-
if (expect !== void 0 && commit !== expect) {
|
|
199
|
-
throw new Refused(
|
|
200
|
-
`${repository} is at ${short(commit)} now, not ${short(expect)} as when you looked; look it up again`
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
async function preview(m, at, deps, installed) {
|
|
205
|
-
const current = await readPluginSettings(deps.configDir, m.name);
|
|
206
|
-
const have = current.ok ? current.settings : {};
|
|
207
|
-
const w = m.wheelhouse;
|
|
208
|
-
return {
|
|
209
|
-
id: m.name,
|
|
210
|
-
name: m.displayName,
|
|
211
|
-
version: m.version,
|
|
212
|
-
description: m.description,
|
|
213
|
-
...at,
|
|
214
|
-
author: m.author?.name ?? null,
|
|
215
|
-
homepage: m.repository,
|
|
216
|
-
apiVersion: w.apiVersion,
|
|
217
|
-
slots: w.contributions.map((c) => c.slot),
|
|
218
|
-
services: w.services.map((x) => `${x.id} (${x.scope})`),
|
|
219
|
-
addresses: addressWords(
|
|
220
|
-
w.hostRoutes.map((r) => r.host),
|
|
221
|
-
w.addressRewrites.map((r) => r.to)
|
|
222
|
-
),
|
|
223
|
-
capabilities: capabilityWords(w.capabilities),
|
|
224
|
-
roles: roleWords(w.provides.map((p) => p.role)),
|
|
225
|
-
ui: w.ui,
|
|
226
|
-
on: enabledText(m),
|
|
227
|
-
settings: settingViews(w.settings, have),
|
|
228
|
-
installed
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function inspect(spec, deps) {
|
|
232
|
-
return guardedInspect(async () => {
|
|
233
|
-
const source = parseSource(spec);
|
|
234
|
-
if (!source) throw new Refused(`"${spec}" is not org/repo or org/repo@ref`);
|
|
235
|
-
const installed = await record(deps);
|
|
236
|
-
const repository = `${source.org}/${source.repo}`;
|
|
237
|
-
return withStaging(deps.dir, async (staging) => {
|
|
238
|
-
const commit = await fetchSource(source, staging, deps);
|
|
239
|
-
const m = await checkCopy(staging);
|
|
240
|
-
if (installed.plugins[m.name]) {
|
|
241
|
-
throw new Refused(
|
|
242
|
-
`${m.name} is already installed from ${label(installed.plugins[m.name])}; update it from its row instead`
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
if (await exists(path.join(deps.dir, m.name))) {
|
|
246
|
-
throw new Refused(`${path.join(deps.dir, m.name)} already exists; remove it first`);
|
|
247
|
-
}
|
|
248
|
-
return preview(m, { repository, ref: source.ref, commit }, deps, null);
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
function inspectUpdate(id, deps, o = {}) {
|
|
253
|
-
return guardedInspect(async () => {
|
|
254
|
-
const installed = await record(deps);
|
|
255
|
-
const was = installed.plugins[id];
|
|
256
|
-
if (!was) throw new Refused(`${id} is not installed`);
|
|
257
|
-
const [org, repo] = was.repository.split("/");
|
|
258
|
-
const ref = o.ref === void 0 ? was.ref : o.ref;
|
|
259
|
-
const source = { org, repo, ref };
|
|
260
|
-
if (!parseSource(`${org}/${repo}${ref ? `@${ref}` : ""}`)) {
|
|
261
|
-
throw new Refused(`"${ref}" is not a ref`);
|
|
262
|
-
}
|
|
263
|
-
return withStaging(deps.dir, async (staging) => {
|
|
264
|
-
const commit = await fetchSource(source, staging, deps);
|
|
265
|
-
if (commit === was.commit) throw new Refused(`${id} is already at ${short(commit)}`);
|
|
266
|
-
const m = await checkCopy(staging);
|
|
267
|
-
if (m.name !== id) {
|
|
268
|
-
throw new Refused(`${was.repository} now names its plugin "${m.name}", not "${id}"`);
|
|
269
|
-
}
|
|
270
|
-
return preview(m, { repository: was.repository, ref, commit }, deps, {
|
|
271
|
-
version: was.version,
|
|
272
|
-
commit: was.commit,
|
|
273
|
-
ref: was.ref
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
async function guardedInspect(work) {
|
|
279
|
-
try {
|
|
280
|
-
return { ok: true, preview: await work() };
|
|
281
|
-
} catch (e) {
|
|
282
|
-
if (e instanceof Refused) return { ok: false, error: e.message };
|
|
283
|
-
throw e;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
function install(spec, deps, o = {}) {
|
|
287
|
-
return guarded(async () => {
|
|
288
|
-
const source = parseSource(spec);
|
|
289
|
-
if (!source) throw new Refused(`"${spec}" is not org/repo or org/repo@ref`);
|
|
290
|
-
const answers = given(o.settings);
|
|
291
|
-
const installed = await record(deps);
|
|
292
|
-
const repository = `${source.org}/${source.repo}`;
|
|
293
|
-
return withStaging(deps.dir, async (staging) => {
|
|
294
|
-
deps.log(`Fetching ${repository}${source.ref ? ` at ${source.ref}` : ""}…`);
|
|
295
|
-
const commit = await fetchSource(source, staging, deps);
|
|
296
|
-
expected(commit, o.expect, repository);
|
|
297
|
-
const m = await checkCopy(staging);
|
|
298
|
-
const target = path.join(deps.dir, m.name);
|
|
299
|
-
if (installed.plugins[m.name]) {
|
|
300
|
-
throw new Refused(
|
|
301
|
-
`${m.name} is already installed from ${label(installed.plugins[m.name])}; use \`wheelhouse plugin update ${m.name}\``
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
if (await exists(target)) {
|
|
305
|
-
throw new Refused(`${target} already exists; remove it first`);
|
|
306
|
-
}
|
|
307
|
-
for (const line of describeManifest(
|
|
308
|
-
m,
|
|
309
|
-
`${repository}${source.ref ? ` (${source.ref})` : ""}`,
|
|
310
|
-
commit
|
|
311
|
-
))
|
|
312
|
-
deps.log(line);
|
|
313
|
-
if (!o.yes && !await deps.confirm(`Install ${m.name}?`)) {
|
|
314
|
-
throw new Refused("not installed");
|
|
315
|
-
}
|
|
316
|
-
const settings = await settle(m, deps, { yes: o.yes, given: answers });
|
|
317
|
-
if (settings) await keepSettings(m.name, settings, deps);
|
|
318
|
-
await rename(staging, target);
|
|
319
|
-
installed.plugins[m.name] = {
|
|
320
|
-
repository,
|
|
321
|
-
ref: source.ref,
|
|
322
|
-
commit,
|
|
323
|
-
version: m.version,
|
|
324
|
-
installedAt: (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString(),
|
|
325
|
-
enabled: true
|
|
326
|
-
};
|
|
327
|
-
await writeInstalled(deps.dir, installed);
|
|
328
|
-
deps.log(`Installed ${m.name} ${m.version} at ${short(commit)}.`);
|
|
329
|
-
await reload(deps, `load ${m.name}`, o.yes);
|
|
330
|
-
return { ok: true };
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
function update(id, deps, o = {}) {
|
|
335
|
-
return guarded(async () => {
|
|
336
|
-
const answers = given(o.settings);
|
|
337
|
-
const installed = await record(deps);
|
|
338
|
-
const was = installed.plugins[id];
|
|
339
|
-
if (!was) throw new Refused(`${id} is not installed`);
|
|
340
|
-
const [org, repo] = was.repository.split("/");
|
|
341
|
-
const source = { org, repo, ref: o.ref ?? was.ref };
|
|
342
|
-
if (!parseSource(`${org}/${repo}${source.ref ? `@${source.ref}` : ""}`)) {
|
|
343
|
-
throw new Refused(`"${source.ref}" is not a ref`);
|
|
344
|
-
}
|
|
345
|
-
return withStaging(deps.dir, async (staging) => {
|
|
346
|
-
deps.log(`Fetching ${was.repository}${source.ref ? ` at ${source.ref}` : ""}…`);
|
|
347
|
-
const commit = await fetchSource(source, staging, deps);
|
|
348
|
-
expected(commit, o.expect, was.repository);
|
|
349
|
-
if (commit === was.commit) {
|
|
350
|
-
if (source.ref !== was.ref) {
|
|
351
|
-
installed.plugins[id] = { ...was, ref: source.ref };
|
|
352
|
-
await writeInstalled(deps.dir, installed);
|
|
353
|
-
}
|
|
354
|
-
deps.log(`${id} is already at ${short(commit)}.`);
|
|
355
|
-
return { ok: true };
|
|
356
|
-
}
|
|
357
|
-
const m = await checkCopy(staging);
|
|
358
|
-
if (m.name !== id) {
|
|
359
|
-
throw new Refused(`${was.repository} now names its plugin "${m.name}", not "${id}"`);
|
|
360
|
-
}
|
|
361
|
-
deps.log(
|
|
362
|
-
`Update ${id} from ${was.version} (${short(was.commit)}) to ${m.version} (${short(commit)}):`
|
|
363
|
-
);
|
|
364
|
-
for (const line of describeManifest(
|
|
365
|
-
m,
|
|
366
|
-
`${was.repository}${source.ref ? ` (${source.ref})` : ""}`,
|
|
367
|
-
commit
|
|
368
|
-
))
|
|
369
|
-
deps.log(line);
|
|
370
|
-
if (!o.yes && !await deps.confirm(`Update ${id}?`)) throw new Refused("not updated");
|
|
371
|
-
const settings = await settle(m, deps, { yes: o.yes, given: answers });
|
|
372
|
-
if (settings) await keepSettings(id, settings, deps);
|
|
373
|
-
const target = path.join(deps.dir, id);
|
|
374
|
-
const old = await mkdtemp(path.join(deps.dir, ".old-"));
|
|
375
|
-
const parked = path.join(old, id);
|
|
376
|
-
if (await exists(target)) await rename(target, parked);
|
|
377
|
-
try {
|
|
378
|
-
await rename(staging, target);
|
|
379
|
-
} catch (e) {
|
|
380
|
-
if (await exists(parked)) await rename(parked, target);
|
|
381
|
-
throw e;
|
|
382
|
-
} finally {
|
|
383
|
-
await rm(old, { recursive: true, force: true });
|
|
384
|
-
}
|
|
385
|
-
installed.plugins[id] = {
|
|
386
|
-
...was,
|
|
387
|
-
ref: source.ref,
|
|
388
|
-
commit,
|
|
389
|
-
version: m.version,
|
|
390
|
-
installedAt: (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString()
|
|
391
|
-
};
|
|
392
|
-
await writeInstalled(deps.dir, installed);
|
|
393
|
-
deps.log(`Updated ${id} to ${m.version} at ${short(commit)}.`);
|
|
394
|
-
await reload(deps, `load ${id} ${m.version}`, o.yes);
|
|
395
|
-
return { ok: true };
|
|
396
|
-
});
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
function setEnabled(id, enabled, deps, o = {}) {
|
|
400
|
-
return guarded(async () => {
|
|
401
|
-
const installed = await record(deps);
|
|
402
|
-
const r = installed.plugins[id];
|
|
403
|
-
if (!r) throw new Refused(`${id} is not installed`);
|
|
404
|
-
installed.plugins[id] = { ...r, enabled };
|
|
405
|
-
await writeInstalled(deps.dir, installed);
|
|
406
|
-
deps.log(`${id} is ${enabled ? "on" : "off"}.`);
|
|
407
|
-
await reload(deps, `${enabled ? "load" : "unload"} ${id}`, o.yes);
|
|
408
|
-
return { ok: true };
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
async function exists(p) {
|
|
412
|
-
try {
|
|
413
|
-
await stat(p);
|
|
414
|
-
return true;
|
|
415
|
-
} catch {
|
|
416
|
-
return false;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
const SEMVER = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
420
|
-
function parseVersion(s) {
|
|
421
|
-
const m = SEMVER.exec(s.trim());
|
|
422
|
-
if (!m) return null;
|
|
423
|
-
return { major: +m[1], minor: +m[2], patch: +m[3], pre: m[4] ?? null };
|
|
424
|
-
}
|
|
425
|
-
function comparePre(a, b) {
|
|
426
|
-
if (a === b) return 0;
|
|
427
|
-
if (a === null) return 1;
|
|
428
|
-
if (b === null) return -1;
|
|
429
|
-
const pa = a.split(".");
|
|
430
|
-
const pb = b.split(".");
|
|
431
|
-
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
|
|
432
|
-
if (pa[i] === void 0) return -1;
|
|
433
|
-
if (pb[i] === void 0) return 1;
|
|
434
|
-
const na = /^\d+$/.test(pa[i]) ? Number(pa[i]) : null;
|
|
435
|
-
const nb = /^\d+$/.test(pb[i]) ? Number(pb[i]) : null;
|
|
436
|
-
if (na !== null && nb !== null) {
|
|
437
|
-
if (na !== nb) return na < nb ? -1 : 1;
|
|
438
|
-
} else if (na !== null) return -1;
|
|
439
|
-
else if (nb !== null) return 1;
|
|
440
|
-
else if (pa[i] !== pb[i]) return pa[i] < pb[i] ? -1 : 1;
|
|
441
|
-
}
|
|
442
|
-
return 0;
|
|
443
|
-
}
|
|
444
|
-
function compareVersions$1(a, b) {
|
|
445
|
-
const va = parseVersion(a);
|
|
446
|
-
const vb = parseVersion(b);
|
|
447
|
-
if (!va || !vb) return null;
|
|
448
|
-
for (const k of ["major", "minor", "patch"]) {
|
|
449
|
-
if (va[k] !== vb[k]) return va[k] < vb[k] ? -1 : 1;
|
|
450
|
-
}
|
|
451
|
-
return comparePre(va.pre, vb.pre);
|
|
452
|
-
}
|
|
453
|
-
function newerTag(current, tags) {
|
|
454
|
-
const cur = parseVersion(current);
|
|
455
|
-
if (!cur) return null;
|
|
456
|
-
let best = null;
|
|
457
|
-
for (const t of tags) {
|
|
458
|
-
const v = parseVersion(t);
|
|
459
|
-
if (!v || v.pre !== null && cur.pre === null) continue;
|
|
460
|
-
if ((compareVersions$1(t, current) ?? 0) <= 0) continue;
|
|
461
|
-
if (best === null || (compareVersions$1(t, best) ?? 0) > 0) best = t;
|
|
462
|
-
}
|
|
463
|
-
return best;
|
|
464
|
-
}
|
|
465
|
-
function parseLsRemote(text) {
|
|
466
|
-
const out = { head: null, heads: /* @__PURE__ */ new Map(), tags: /* @__PURE__ */ new Map() };
|
|
467
|
-
const peeled = /* @__PURE__ */ new Map();
|
|
468
|
-
for (const line of text.split("\n")) {
|
|
469
|
-
const [sha, ref] = line.trim().split(/\s+/);
|
|
470
|
-
if (!sha || !ref || !/^[0-9a-f]{40}$/.test(sha)) continue;
|
|
471
|
-
if (ref === "HEAD") out.head = sha;
|
|
472
|
-
else if (ref.startsWith("refs/heads/")) out.heads.set(ref.slice(11), sha);
|
|
473
|
-
else if (ref.startsWith("refs/tags/")) {
|
|
474
|
-
const name = ref.slice(10);
|
|
475
|
-
if (name.endsWith("^{}")) peeled.set(name.slice(0, -3), sha);
|
|
476
|
-
else out.tags.set(name, sha);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
for (const [name, sha] of peeled) out.tags.set(name, sha);
|
|
480
|
-
return out;
|
|
481
|
-
}
|
|
482
|
-
const githubUrl = (s) => `https://github.com/${s.org}/${s.repo}.git`;
|
|
483
|
-
const SHA = /^[0-9a-f]{7,40}$/;
|
|
484
|
-
async function checkPlugin(id, r, deps = {}) {
|
|
485
|
-
const base = {
|
|
486
|
-
id,
|
|
487
|
-
repository: r.repository,
|
|
488
|
-
ref: r.ref,
|
|
489
|
-
commit: r.commit,
|
|
490
|
-
version: r.version,
|
|
491
|
-
latest: null,
|
|
492
|
-
reason: null
|
|
493
|
-
};
|
|
494
|
-
const [org, repo] = r.repository.split("/");
|
|
495
|
-
const url = (deps.gitUrl ?? githubUrl)({ org, repo, ref: r.ref });
|
|
496
|
-
const res = await (deps.git ?? runGit)(["ls-remote", url], tmpdir());
|
|
497
|
-
if (res.code !== 0) {
|
|
498
|
-
const why = res.stderr.trim().split("\n").pop() || "git ls-remote failed";
|
|
499
|
-
return { ...base, state: "error", reason: `could not reach ${r.repository}: ${why}` };
|
|
500
|
-
}
|
|
501
|
-
const refs = parseLsRemote(res.stdout);
|
|
502
|
-
const moved = (commit, ref) => commit && commit !== r.commit ? { ...base, state: "available", latest: { ref, commit } } : { ...base, state: "current" };
|
|
503
|
-
if (r.ref === null) return moved(refs.head, null);
|
|
504
|
-
if (refs.tags.has(r.ref)) {
|
|
505
|
-
const tag = newerTag(r.ref, [...refs.tags.keys()]);
|
|
506
|
-
if (tag) {
|
|
507
|
-
return {
|
|
508
|
-
...base,
|
|
509
|
-
state: "newer-tag",
|
|
510
|
-
latest: { ref: tag, commit: refs.tags.get(tag) }
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
return moved(refs.tags.get(r.ref), r.ref);
|
|
514
|
-
}
|
|
515
|
-
if (refs.heads.has(r.ref)) return moved(refs.heads.get(r.ref), r.ref);
|
|
516
|
-
if (SHA.test(r.ref)) return { ...base, state: "pinned" };
|
|
517
|
-
return {
|
|
518
|
-
...base,
|
|
519
|
-
state: "error",
|
|
520
|
-
reason: `${r.repository} has no branch or tag ${r.ref} any more`
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
async function checkPlugins(dir, deps = {}) {
|
|
524
|
-
const checkedAt = (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString();
|
|
525
|
-
const installed = await readInstalled(dir);
|
|
526
|
-
if (!installed.ok) {
|
|
527
|
-
return {
|
|
528
|
-
schema: "wheelhouse-plugin-updates.v1",
|
|
529
|
-
checkedAt,
|
|
530
|
-
plugins: [],
|
|
531
|
-
error: installed.error
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
const rows = Object.entries(installed.installed.plugins).sort(([a], [b]) => a.localeCompare(b));
|
|
535
|
-
return {
|
|
536
|
-
schema: "wheelhouse-plugin-updates.v1",
|
|
537
|
-
checkedAt,
|
|
538
|
-
plugins: await Promise.all(rows.map(([id, r]) => checkPlugin(id, r, deps))),
|
|
539
|
-
error: null
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
const COMMITS_SHOWN = 20;
|
|
543
|
-
const runCommand = (cmd, args, cwd) => new Promise((resolve) => {
|
|
544
|
-
execFile(cmd, args, { cwd, maxBuffer: 64 * 1024 * 1024 }, (err, stdout, stderr) => {
|
|
545
|
-
const output = `${String(stdout)}${String(stderr)}`;
|
|
546
|
-
resolve({
|
|
547
|
-
code: err ? typeof err.code === "number" ? err.code : 1 : 0,
|
|
548
|
-
output: output.slice(-6e4)
|
|
549
|
-
});
|
|
550
|
-
});
|
|
551
|
-
});
|
|
552
|
-
function githubRepository(url) {
|
|
553
|
-
const m = /^(?:https?:\/\/(?:[^@/]+@)?github\.com\/|(?:ssh:\/\/)?git@github\.com[:/])([^/]+)\/([^/]+?)(?:\.git)?\/?$/.exec(
|
|
554
|
-
url.trim()
|
|
555
|
-
);
|
|
556
|
-
return m ? `${m[1]}/${m[2]}` : null;
|
|
557
|
-
}
|
|
558
|
-
function packageVersion(text) {
|
|
559
|
-
if (text === null) return null;
|
|
560
|
-
try {
|
|
561
|
-
const v = JSON.parse(text).version;
|
|
562
|
-
return typeof v === "string" ? v : null;
|
|
563
|
-
} catch {
|
|
564
|
-
return null;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
const lastLine = (s) => s.trim().split("\n").pop() ?? "";
|
|
568
|
-
async function checkClone(deps) {
|
|
569
|
-
const git = deps.git ?? runGit;
|
|
570
|
-
const g2 = async (...args) => git(args, deps.dir);
|
|
571
|
-
const out = {
|
|
572
|
-
schema: "wheelhouse-update.v1",
|
|
573
|
-
checkedAt: (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString(),
|
|
574
|
-
state: "unsupported",
|
|
575
|
-
reason: null,
|
|
576
|
-
dir: deps.dir,
|
|
577
|
-
repository: null,
|
|
578
|
-
branch: null,
|
|
579
|
-
current: { commit: null, version: null },
|
|
580
|
-
latest: null,
|
|
581
|
-
commits: [],
|
|
582
|
-
behind: 0,
|
|
583
|
-
changes: []
|
|
584
|
-
};
|
|
585
|
-
out.current.version = packageVersion(
|
|
586
|
-
await readFile(path.join(deps.dir, "package.json"), "utf8").catch(() => null)
|
|
587
|
-
);
|
|
588
|
-
const top = await g2("rev-parse", "--show-toplevel");
|
|
589
|
-
const here = await realpath(deps.dir).catch(() => deps.dir);
|
|
590
|
-
if (top.code !== 0 || await realpath(top.stdout.trim()).catch(() => "") !== here) {
|
|
591
|
-
out.reason = `${deps.dir} is not a git clone, so Wheelhouse cannot upgrade it; update it the way it was installed (for npm, \`npm install -g @chrisjowen/wheelhouse\`)`;
|
|
592
|
-
return out;
|
|
593
|
-
}
|
|
594
|
-
const head = await g2("rev-parse", "HEAD");
|
|
595
|
-
out.current.commit = head.code === 0 ? head.stdout.trim() : null;
|
|
596
|
-
const origin = await g2("remote", "get-url", "origin");
|
|
597
|
-
if (origin.code !== 0) {
|
|
598
|
-
out.reason = `${deps.dir} has no origin remote to upgrade from`;
|
|
599
|
-
return out;
|
|
600
|
-
}
|
|
601
|
-
out.repository = githubRepository(origin.stdout);
|
|
602
|
-
const symref = await g2("ls-remote", "--symref", "origin", "HEAD");
|
|
603
|
-
const branch = /^ref: refs\/heads\/(\S+)\s+HEAD$/m.exec(symref.stdout)?.[1] ?? null;
|
|
604
|
-
if (symref.code !== 0 || !branch) {
|
|
605
|
-
out.state = "error";
|
|
606
|
-
out.reason = `could not reach origin: ${lastLine(symref.stderr) || "it named no default branch"}`;
|
|
607
|
-
return out;
|
|
608
|
-
}
|
|
609
|
-
out.branch = branch;
|
|
610
|
-
const fetched = await g2("fetch", "--quiet", "--no-tags", "origin", `refs/heads/${branch}`);
|
|
611
|
-
if (fetched.code !== 0) {
|
|
612
|
-
out.state = "error";
|
|
613
|
-
out.reason = `could not fetch ${branch}: ${lastLine(fetched.stderr)}`;
|
|
614
|
-
return out;
|
|
615
|
-
}
|
|
616
|
-
const latest = (await g2("rev-parse", "FETCH_HEAD")).stdout.trim();
|
|
617
|
-
const remotePkg = await g2("show", `${latest}:package.json`);
|
|
618
|
-
out.latest = {
|
|
619
|
-
commit: latest,
|
|
620
|
-
version: packageVersion(remotePkg.code === 0 ? remotePkg.stdout : null)
|
|
621
|
-
};
|
|
622
|
-
const counts = (await g2("rev-list", "--left-right", "--count", `HEAD...${latest}`)).stdout.trim().split(/\s+/).map(Number);
|
|
623
|
-
const ahead = counts[0] || 0;
|
|
624
|
-
out.behind = counts[1] || 0;
|
|
625
|
-
if (out.behind === 0) {
|
|
626
|
-
out.state = "current";
|
|
627
|
-
return out;
|
|
628
|
-
}
|
|
629
|
-
const log = await g2("log", "--format=%H%x1f%s%x1f%cI", `-n${COMMITS_SHOWN}`, `HEAD..${latest}`);
|
|
630
|
-
out.commits = log.stdout.split("\n").filter(Boolean).map((l) => {
|
|
631
|
-
const [sha, subject, date] = l.split("");
|
|
632
|
-
return { sha, subject, date };
|
|
633
|
-
});
|
|
634
|
-
const on = await g2("symbolic-ref", "--quiet", "--short", "HEAD");
|
|
635
|
-
const status = await g2("status", "--porcelain", "--untracked-files=no");
|
|
636
|
-
const changes = status.stdout.split("\n").filter((l) => l.trim());
|
|
637
|
-
out.state = "refused";
|
|
638
|
-
if (on.code !== 0) {
|
|
639
|
-
out.reason = `${deps.dir} is not on a branch (detached HEAD), so it cannot fast-forward to ${branch}`;
|
|
640
|
-
} else if (on.stdout.trim() !== branch) {
|
|
641
|
-
out.reason = `${deps.dir} is on ${on.stdout.trim()}, not ${branch}, so it cannot fast-forward`;
|
|
642
|
-
} else if (changes.length) {
|
|
643
|
-
out.reason = `${deps.dir} has local changes; commit or discard them, then check again`;
|
|
644
|
-
out.changes = changes;
|
|
645
|
-
} else if (ahead > 0) {
|
|
646
|
-
out.reason = `${deps.dir} has ${ahead} commit${ahead === 1 ? "" : "s"} that ${branch} does not, so it cannot fast-forward`;
|
|
647
|
-
} else {
|
|
648
|
-
out.state = "available";
|
|
649
|
-
}
|
|
650
|
-
return out;
|
|
651
|
-
}
|
|
652
|
-
async function upgradeClone(deps, onStep = () => {
|
|
653
|
-
}) {
|
|
654
|
-
const git = deps.git ?? runGit;
|
|
655
|
-
const run = deps.run ?? runCommand;
|
|
656
|
-
onStep("fetch");
|
|
657
|
-
const check = await checkClone(deps);
|
|
658
|
-
if (check.state !== "available" || !check.latest) {
|
|
659
|
-
const error = check.state === "current" ? `Wheelhouse is already up to date with ${check.branch}` : check.reason ?? "there is nothing to upgrade to";
|
|
660
|
-
return { ok: false, step: "fetch", error, output: "", check };
|
|
661
|
-
}
|
|
662
|
-
onStep("fast-forward");
|
|
663
|
-
const ff = await git(["merge", "--ff-only", "--quiet", check.latest.commit], deps.dir);
|
|
664
|
-
if (ff.code !== 0) {
|
|
665
|
-
return {
|
|
666
|
-
ok: false,
|
|
667
|
-
step: "fast-forward",
|
|
668
|
-
error: `could not fast-forward: ${lastLine(ff.stderr)}`,
|
|
669
|
-
output: ff.stderr,
|
|
670
|
-
check
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
for (const [step, args] of [
|
|
674
|
-
["install", ["ci"]],
|
|
675
|
-
["build", ["run", "build"]]
|
|
676
|
-
]) {
|
|
677
|
-
onStep(step);
|
|
678
|
-
const r = await run("npm", [...args], deps.dir);
|
|
679
|
-
if (r.code !== 0) {
|
|
680
|
-
return {
|
|
681
|
-
ok: false,
|
|
682
|
-
step,
|
|
683
|
-
error: `npm ${args.join(" ")} failed (exit ${r.code}); the clone is at ${check.latest.commit.slice(0, 7)} but its build is incomplete, so rebuild it (npm ci && npm run build) before Wheelhouse restarts`,
|
|
684
|
-
output: r.output,
|
|
685
|
-
check
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
return { ok: true, check, from: check.current.commit, to: check.latest.commit };
|
|
690
|
-
}
|
|
691
|
-
const WHEELHOUSE_REPO = "https://github.com/chrisjowen/wheelhouse.git";
|
|
692
|
-
async function switchToClone(deps, onStep = () => {
|
|
693
|
-
}) {
|
|
694
|
-
const git = deps.git ?? runGit;
|
|
695
|
-
const run = deps.run ?? runCommand;
|
|
696
|
-
let note = null;
|
|
697
|
-
let build = false;
|
|
698
|
-
if (existsSync(path.join(deps.dir, ".git"))) {
|
|
699
|
-
const r = await upgradeClone(deps, onStep);
|
|
700
|
-
if (!r.ok) {
|
|
701
|
-
if (r.step !== "fetch") return r;
|
|
702
|
-
note = r.error;
|
|
703
|
-
build = !existsSync(path.join(deps.dir, "build", "handler.js"));
|
|
704
|
-
}
|
|
705
|
-
} else {
|
|
706
|
-
const entries = await readdir(deps.dir).catch(() => []);
|
|
707
|
-
if (entries.length) {
|
|
708
|
-
return {
|
|
709
|
-
ok: false,
|
|
710
|
-
step: "clone",
|
|
711
|
-
error: `${deps.dir} is not empty and is not a git clone, so Wheelhouse will not clone into it; empty it or choose another clone directory`,
|
|
712
|
-
output: ""
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
onStep("clone");
|
|
716
|
-
await mkdir(path.dirname(deps.dir), { recursive: true });
|
|
717
|
-
const c = await git(["clone", "--quiet", WHEELHOUSE_REPO, deps.dir], path.dirname(deps.dir));
|
|
718
|
-
if (c.code !== 0) {
|
|
719
|
-
return {
|
|
720
|
-
ok: false,
|
|
721
|
-
step: "clone",
|
|
722
|
-
error: `could not clone ${WHEELHOUSE_REPO}: ${lastLine(c.stderr)}`,
|
|
723
|
-
output: c.stderr
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
build = true;
|
|
727
|
-
}
|
|
728
|
-
const steps = [
|
|
729
|
-
...build ? [
|
|
730
|
-
["install", ["ci"]],
|
|
731
|
-
["build", ["run", "build"]]
|
|
732
|
-
] : [],
|
|
733
|
-
["link", ["link"]]
|
|
734
|
-
];
|
|
735
|
-
for (const [step, args] of steps) {
|
|
736
|
-
onStep(step);
|
|
737
|
-
const r = await run("npm", args, deps.dir);
|
|
738
|
-
if (r.code !== 0) {
|
|
739
|
-
return {
|
|
740
|
-
ok: false,
|
|
741
|
-
step,
|
|
742
|
-
error: `npm ${args.join(" ")} failed in ${deps.dir} (exit ${r.code})`,
|
|
743
|
-
output: r.output
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
return { ok: true, note };
|
|
748
|
-
}
|
|
749
|
-
async function readVersion(dir) {
|
|
750
|
-
try {
|
|
751
|
-
const pkg = JSON.parse(await readFile(path.join(dir, "package.json"), "utf8"));
|
|
752
|
-
return typeof pkg.version === "string" ? pkg.version : null;
|
|
753
|
-
} catch {
|
|
754
|
-
return null;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
async function hasGit(dir) {
|
|
758
|
-
try {
|
|
759
|
-
const st = await stat(path.join(dir, ".git"));
|
|
760
|
-
return st.isDirectory() || st.isFile();
|
|
761
|
-
} catch {
|
|
762
|
-
return false;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
async function detectInstallKind(dir) {
|
|
766
|
-
if (!dir) {
|
|
767
|
-
return { kind: "unknown", dir: null, realDir: null, version: null };
|
|
768
|
-
}
|
|
769
|
-
const resolvedDir = path.resolve(dir);
|
|
770
|
-
let real;
|
|
771
|
-
try {
|
|
772
|
-
real = await realpath(resolvedDir);
|
|
773
|
-
} catch {
|
|
774
|
-
real = resolvedDir;
|
|
775
|
-
}
|
|
776
|
-
const isClone = await hasGit(real);
|
|
777
|
-
const kind = isClone ? "clone" : "npm";
|
|
778
|
-
const version = await readVersion(real).catch(() => null);
|
|
779
|
-
return {
|
|
780
|
-
kind,
|
|
781
|
-
dir: resolvedDir,
|
|
782
|
-
realDir: real,
|
|
783
|
-
version
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
const runNpm = (cmd, args, cwd) => new Promise((resolve) => {
|
|
787
|
-
execFile(cmd, args, { cwd, maxBuffer: 64 * 1024 * 1024 }, (err, stdout, stderr) => {
|
|
788
|
-
const output = `${String(stdout)}${String(stderr)}`;
|
|
789
|
-
resolve({
|
|
790
|
-
code: err ? typeof err.code === "number" ? err.code : 1 : 0,
|
|
791
|
-
output: output.slice(-6e4)
|
|
792
|
-
});
|
|
793
|
-
});
|
|
794
|
-
});
|
|
795
|
-
async function readInstalledVersion(dir) {
|
|
796
|
-
try {
|
|
797
|
-
const text = await readFile(path.join(dir, "package.json"), "utf8");
|
|
798
|
-
const v = JSON.parse(text).version;
|
|
799
|
-
return typeof v === "string" ? v : null;
|
|
800
|
-
} catch {
|
|
801
|
-
return null;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
async function npmViewLatest(run = runNpm) {
|
|
805
|
-
const r = await run("npm", ["view", "@chrisjowen/wheelhouse", "version"]);
|
|
806
|
-
if (r.code !== 0) {
|
|
807
|
-
return { error: r.output.trim() || "npm view failed" };
|
|
808
|
-
}
|
|
809
|
-
const v = r.output.trim();
|
|
810
|
-
if (!v) return { error: "npm view returned no version" };
|
|
811
|
-
return { version: v };
|
|
812
|
-
}
|
|
813
|
-
function compareVersions(a, b) {
|
|
814
|
-
const parse = (v) => {
|
|
815
|
-
const [core, pre] = v.trim().replace(/^v/, "").split("+")[0].split(/-(.*)/s);
|
|
816
|
-
return { nums: core.split(".").map((n) => Number.parseInt(n, 10) || 0), pre: pre ?? null };
|
|
817
|
-
};
|
|
818
|
-
const x = parse(a);
|
|
819
|
-
const y = parse(b);
|
|
820
|
-
for (let i = 0; i < 3; i++) {
|
|
821
|
-
const d = (x.nums[i] ?? 0) - (y.nums[i] ?? 0);
|
|
822
|
-
if (d !== 0) return d;
|
|
823
|
-
}
|
|
824
|
-
if (x.pre === y.pre) return 0;
|
|
825
|
-
if (x.pre === null) return 1;
|
|
826
|
-
if (y.pre === null) return -1;
|
|
827
|
-
const xs = x.pre.split(".");
|
|
828
|
-
const ys = y.pre.split(".");
|
|
829
|
-
for (let i = 0; i < Math.max(xs.length, ys.length); i++) {
|
|
830
|
-
if (xs[i] === void 0) return -1;
|
|
831
|
-
if (ys[i] === void 0) return 1;
|
|
832
|
-
const xn = /^\d+$/.test(xs[i]) ? Number(xs[i]) : null;
|
|
833
|
-
const yn = /^\d+$/.test(ys[i]) ? Number(ys[i]) : null;
|
|
834
|
-
if (xn !== null && yn !== null) {
|
|
835
|
-
if (xn !== yn) return xn - yn;
|
|
836
|
-
} else if (xn !== null) return -1;
|
|
837
|
-
else if (yn !== null) return 1;
|
|
838
|
-
else if (xs[i] !== ys[i]) return xs[i] < ys[i] ? -1 : 1;
|
|
839
|
-
}
|
|
840
|
-
return 0;
|
|
841
|
-
}
|
|
842
|
-
async function checkNpm(dir, run = runNpm, now = () => /* @__PURE__ */ new Date()) {
|
|
843
|
-
const out = {
|
|
844
|
-
schema: "wheelhouse-update.v1",
|
|
845
|
-
checkedAt: now().toISOString(),
|
|
846
|
-
state: "error",
|
|
847
|
-
reason: null,
|
|
848
|
-
dir: dir ?? "",
|
|
849
|
-
repository: null,
|
|
850
|
-
branch: null,
|
|
851
|
-
current: { commit: null, version: null },
|
|
852
|
-
latest: null,
|
|
853
|
-
commits: [],
|
|
854
|
-
behind: 0,
|
|
855
|
-
changes: []
|
|
856
|
-
};
|
|
857
|
-
if (!dir) {
|
|
858
|
-
out.reason = "Wheelhouse does not know where it is installed.";
|
|
859
|
-
return out;
|
|
860
|
-
}
|
|
861
|
-
out.current.version = await readInstalledVersion(dir);
|
|
862
|
-
const view = await npmViewLatest(run);
|
|
863
|
-
if ("error" in view) {
|
|
864
|
-
out.reason = view.error;
|
|
865
|
-
return out;
|
|
866
|
-
}
|
|
867
|
-
out.latest = { commit: "", version: view.version };
|
|
868
|
-
out.state = !out.current.version || compareVersions(out.current.version, view.version) < 0 ? "available" : "current";
|
|
869
|
-
return out;
|
|
870
|
-
}
|
|
871
|
-
async function upgradeNpm(dir, targetVersion, run = runNpm) {
|
|
872
|
-
if (!dir) {
|
|
873
|
-
return { ok: false, error: "Wheelhouse does not know where it is installed.", output: "" };
|
|
874
|
-
}
|
|
875
|
-
const spec = targetVersion ? `@chrisjowen/wheelhouse@${targetVersion}` : "@chrisjowen/wheelhouse";
|
|
876
|
-
const r = await run("npm", ["install", "-g", spec]);
|
|
877
|
-
if (r.code !== 0) {
|
|
878
|
-
return {
|
|
879
|
-
ok: false,
|
|
880
|
-
error: `npm install -g ${spec} failed (exit ${r.code})`,
|
|
881
|
-
output: r.output
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
return { ok: true, from: null, to: targetVersion ?? "latest" };
|
|
885
|
-
}
|
|
886
|
-
async function npmGlobalDir(run = runNpm) {
|
|
887
|
-
const r = await run("npm", ["root", "-g"]);
|
|
888
|
-
const root = r.output.trim().split("\n").pop()?.trim();
|
|
889
|
-
return r.code === 0 && root ? path.join(root, "@chrisjowen", "wheelhouse") : null;
|
|
890
|
-
}
|
|
891
|
-
const UPDATE_SETTINGS_SCHEMA = "wheelhouse-update-settings.v1";
|
|
892
|
-
const isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
893
|
-
const str = (v) => typeof v === "string" && v ? v : null;
|
|
894
|
-
function isValidSource(s) {
|
|
895
|
-
return s === "published" || s === "github";
|
|
896
|
-
}
|
|
897
|
-
const updateDir = (configDir) => path.join(configDir, "update");
|
|
898
|
-
class UpdateSettings {
|
|
899
|
-
constructor(dir) {
|
|
900
|
-
this.dir = dir;
|
|
901
|
-
}
|
|
902
|
-
dir;
|
|
903
|
-
get file() {
|
|
904
|
-
return path.join(this.dir, "settings.json");
|
|
905
|
-
}
|
|
906
|
-
/** The settings, with defaults for anything missing or unreadable. */
|
|
907
|
-
async read() {
|
|
908
|
-
const settings = { source: null, cloneDir: null };
|
|
909
|
-
let text;
|
|
910
|
-
try {
|
|
911
|
-
text = await readFile(this.file, "utf8");
|
|
912
|
-
} catch (e) {
|
|
913
|
-
if (e.code === "ENOENT") return { settings, error: null };
|
|
914
|
-
return { settings, error: `${this.file} could not be read: ${e.message}` };
|
|
915
|
-
}
|
|
916
|
-
let parsed;
|
|
917
|
-
try {
|
|
918
|
-
parsed = JSON.parse(text);
|
|
919
|
-
} catch {
|
|
920
|
-
return { settings, error: `${this.file} is not valid JSON.` };
|
|
921
|
-
}
|
|
922
|
-
if (!isObj(parsed) || parsed.schema !== UPDATE_SETTINGS_SCHEMA) {
|
|
923
|
-
return { settings, error: `${this.file} is not a Wheelhouse update settings file.` };
|
|
924
|
-
}
|
|
925
|
-
const src = str(parsed.source);
|
|
926
|
-
if (src && isValidSource(src)) settings.source = src;
|
|
927
|
-
settings.cloneDir = str(parsed.cloneDir);
|
|
928
|
-
return { settings, error: null };
|
|
929
|
-
}
|
|
930
|
-
async update(change) {
|
|
931
|
-
const { settings } = await this.read();
|
|
932
|
-
change(settings);
|
|
933
|
-
if (!isValidSource(settings.source)) settings.source = null;
|
|
934
|
-
await this.writeAtomic(
|
|
935
|
-
this.file,
|
|
936
|
-
JSON.stringify(
|
|
937
|
-
{ schema: UPDATE_SETTINGS_SCHEMA, source: settings.source, cloneDir: settings.cloneDir },
|
|
938
|
-
null,
|
|
939
|
-
" "
|
|
940
|
-
) + "\n"
|
|
941
|
-
);
|
|
942
|
-
return settings;
|
|
943
|
-
}
|
|
944
|
-
async writeAtomic(file, text) {
|
|
945
|
-
await mkdir(path.dirname(file), { recursive: true, mode: 448 });
|
|
946
|
-
const tmp = `${file}.tmp-${process.pid}`;
|
|
947
|
-
try {
|
|
948
|
-
await writeFile(tmp, text, { mode: 384 });
|
|
949
|
-
await rename(tmp, file);
|
|
950
|
-
} catch (e) {
|
|
951
|
-
await rm(tmp, { force: true }).catch(() => {
|
|
952
|
-
});
|
|
953
|
-
throw e;
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
const defaultCloneDir = (configDir) => path.join(updateDir(configDir), "wheelhouse");
|
|
958
|
-
const handoffFile = (configDir) => path.join(updateDir(configDir), "next-install");
|
|
959
|
-
async function writeHandoff(configDir, installDir) {
|
|
960
|
-
await mkdir(updateDir(configDir), { recursive: true, mode: 448 });
|
|
961
|
-
await writeFile(handoffFile(configDir), `${installDir}
|
|
962
|
-
`, { mode: 384 });
|
|
963
|
-
}
|
|
964
|
-
const CHECK_EVERY_MS = 6 * 60 * 60 * 1e3;
|
|
965
|
-
const fresh = () => ({
|
|
966
|
-
check: null,
|
|
967
|
-
checking: null,
|
|
968
|
-
job: null,
|
|
969
|
-
plugins: null,
|
|
970
|
-
pluginsChecking: null,
|
|
971
|
-
changing: null,
|
|
972
|
-
installKind: null,
|
|
973
|
-
source: null
|
|
974
|
-
});
|
|
975
|
-
const sameDir = async (a, b) => await realpath(a).catch(() => path.resolve(a)) === await realpath(b).catch(() => path.resolve(b));
|
|
976
|
-
class UpdateService {
|
|
977
|
-
constructor(deps) {
|
|
978
|
-
this.deps = deps;
|
|
979
|
-
}
|
|
980
|
-
deps;
|
|
981
|
-
s = fresh();
|
|
982
|
-
now = () => this.deps.now?.() ?? Date.now();
|
|
983
|
-
log = (line) => (this.deps.log ?? console.log)(line);
|
|
984
|
-
stale = (at) => !at || this.now() - Date.parse(at) >= CHECK_EVERY_MS;
|
|
985
|
-
/** The directory Wheelhouse runs from, as `wheelhouse open` names it. */
|
|
986
|
-
installDir() {
|
|
987
|
-
return this.deps.env.WHEELHOUSE_INSTALL_DIR || null;
|
|
988
|
-
}
|
|
989
|
-
configDir() {
|
|
990
|
-
return defaultConfigDir(this.deps.env);
|
|
991
|
-
}
|
|
992
|
-
updateSettings() {
|
|
993
|
-
return new UpdateSettings(updateDir(this.configDir()));
|
|
994
|
-
}
|
|
995
|
-
/** The chosen source and how this Wheelhouse is installed (cached); unset follows the install. */
|
|
996
|
-
async setup() {
|
|
997
|
-
const dir = this.installDir();
|
|
998
|
-
this.s.installKind ??= dir ? (await detectInstallKind(dir)).kind : "unknown";
|
|
999
|
-
if (!this.s.source) {
|
|
1000
|
-
const { settings } = await this.updateSettings().read();
|
|
1001
|
-
this.s.source = settings.source ?? (this.s.installKind === "clone" ? "github" : "published");
|
|
1002
|
-
}
|
|
1003
|
-
return { source: this.s.source, kind: this.s.installKind };
|
|
1004
|
-
}
|
|
1005
|
-
async saveSource(source) {
|
|
1006
|
-
await this.updateSettings().update((s) => s.source = source);
|
|
1007
|
-
this.s.source = source;
|
|
1008
|
-
}
|
|
1009
|
-
/** Why the source cannot work with how Wheelhouse is installed, or null. */
|
|
1010
|
-
mismatch(source, kind) {
|
|
1011
|
-
if (source === "published" && kind === "clone") return PUBLISHED_ON_CLONE;
|
|
1012
|
-
if (source === "github" && kind === "npm") return GITHUB_ON_NPM;
|
|
1013
|
-
return null;
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* Claim the one change at a time for `what`, or say why not. On success
|
|
1017
|
-
* `changing` stays set: the caller clears it if it does not start a job.
|
|
1018
|
-
*/
|
|
1019
|
-
async begin(what) {
|
|
1020
|
-
const refused = this.refuseChange();
|
|
1021
|
-
if (refused) return { ok: false, error: refused };
|
|
1022
|
-
const dir = this.installDir();
|
|
1023
|
-
if (!dir) return { ok: false, error: "This Wheelhouse does not know where it is installed." };
|
|
1024
|
-
this.s.changing = what;
|
|
1025
|
-
try {
|
|
1026
|
-
return { ok: true, dir, ...await this.setup() };
|
|
1027
|
-
} catch (e) {
|
|
1028
|
-
this.s.changing = null;
|
|
1029
|
-
return { ok: false, error: e.message };
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
/**
|
|
1033
|
-
* Run a change as the job `wheelhouse()` shows: on success it restarts (and
|
|
1034
|
-
* `changing` stays set until this server closes); on failure it clears it.
|
|
1035
|
-
*/
|
|
1036
|
-
runJob(steps, work) {
|
|
1037
|
-
const what = this.s.changing ?? "the change";
|
|
1038
|
-
const job = {
|
|
1039
|
-
state: "running",
|
|
1040
|
-
step: steps[0].step,
|
|
1041
|
-
steps,
|
|
1042
|
-
to: null,
|
|
1043
|
-
error: null,
|
|
1044
|
-
output: null,
|
|
1045
|
-
startedAt: new Date(this.now()).toISOString()
|
|
1046
|
-
};
|
|
1047
|
-
this.s.job = job;
|
|
1048
|
-
this.log(`Wheelhouse: ${what}…`);
|
|
1049
|
-
void work(job).then((r) => {
|
|
1050
|
-
if (r.check) this.s.check = r.check;
|
|
1051
|
-
if (!r.ok) {
|
|
1052
|
-
job.state = "failed";
|
|
1053
|
-
job.error = r.error;
|
|
1054
|
-
job.output = r.output.slice(-4e3) || null;
|
|
1055
|
-
this.log(`Wheelhouse: ${what} failed: ${r.error}.`);
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
job.to = r.to;
|
|
1059
|
-
job.step = "restart";
|
|
1060
|
-
job.state = "restarting";
|
|
1061
|
-
this.log(`Wheelhouse is restarting after ${what}.`);
|
|
1062
|
-
restartSoon();
|
|
1063
|
-
}).catch((e) => {
|
|
1064
|
-
job.state = "failed";
|
|
1065
|
-
job.error = e.message;
|
|
1066
|
-
}).finally(() => {
|
|
1067
|
-
if (job.state === "failed") this.s.changing = null;
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
/** `npm install -g` the published package; hand the restart to it when it is not this install. */
|
|
1071
|
-
async installPublished(dir, version) {
|
|
1072
|
-
const r = await upgradeNpm(dir, version, this.deps.npm);
|
|
1073
|
-
if (!r.ok) return r;
|
|
1074
|
-
const global = await npmGlobalDir(this.deps.npm);
|
|
1075
|
-
if (!global) {
|
|
1076
|
-
return { ok: false, error: "`npm root -g` did not say where npm installed it", output: "" };
|
|
1077
|
-
}
|
|
1078
|
-
if (!await sameDir(global, dir)) await writeHandoff(this.configDir(), global);
|
|
1079
|
-
return { ok: true, to: r.to };
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* Switch the update source: published installs the npm package globally and
|
|
1083
|
-
* restarts into it; github clones Wheelhouse (or brings the clone it runs
|
|
1084
|
-
* from up to date), links it and restarts from it. Answers once the switch
|
|
1085
|
-
* has started; its progress is the job in `wheelhouse()`. The source is
|
|
1086
|
-
* saved only when the switch succeeds. Choosing the current source again
|
|
1087
|
-
* does nothing unless the install does not match it.
|
|
1088
|
-
*/
|
|
1089
|
-
async setSource(source) {
|
|
1090
|
-
const started = await this.begin("switching the update source");
|
|
1091
|
-
if (!started.ok) return started;
|
|
1092
|
-
const { dir, kind } = started;
|
|
1093
|
-
if (started.source === source && !this.mismatch(source, kind)) {
|
|
1094
|
-
this.s.changing = null;
|
|
1095
|
-
return { ok: true };
|
|
1096
|
-
}
|
|
1097
|
-
if (source === "published") {
|
|
1098
|
-
this.runJob(NPM_STEPS, async () => {
|
|
1099
|
-
const r = await this.installPublished(dir, null);
|
|
1100
|
-
if (r.ok) await this.saveSource("published");
|
|
1101
|
-
return r;
|
|
1102
|
-
});
|
|
1103
|
-
return { ok: true };
|
|
1104
|
-
}
|
|
1105
|
-
let cloneDir = dir;
|
|
1106
|
-
if (kind !== "clone") {
|
|
1107
|
-
try {
|
|
1108
|
-
const { settings } = await this.updateSettings().read();
|
|
1109
|
-
cloneDir = settings.cloneDir ?? defaultCloneDir(this.configDir());
|
|
1110
|
-
} catch (e) {
|
|
1111
|
-
this.s.changing = null;
|
|
1112
|
-
return { ok: false, error: e.message };
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
const steps = existsSync(path.join(cloneDir, ".git")) ? CLONE_SWITCH_STEPS : CLONE_SETUP_STEPS;
|
|
1116
|
-
this.runJob(steps, async (job) => {
|
|
1117
|
-
const r = await switchToClone(this.cloneDeps(cloneDir), (step) => job.step = step);
|
|
1118
|
-
if (!r.ok) return r;
|
|
1119
|
-
if (r.note) this.log(`Wheelhouse switched to GitHub source without updating: ${r.note}.`);
|
|
1120
|
-
await this.saveSource("github");
|
|
1121
|
-
if (!await sameDir(cloneDir, dir)) await writeHandoff(this.configDir(), cloneDir);
|
|
1122
|
-
return { ok: true, to: null };
|
|
1123
|
-
});
|
|
1124
|
-
return { ok: true };
|
|
1125
|
-
}
|
|
1126
|
-
cloneDeps(dir) {
|
|
1127
|
-
return { now: () => new Date(this.now()), ...this.deps.clone, run: this.deps.npm, dir };
|
|
1128
|
-
}
|
|
1129
|
-
pluginDeps() {
|
|
1130
|
-
return {
|
|
1131
|
-
dir: defaultPluginsDir(this.deps.env),
|
|
1132
|
-
configDir: defaultConfigDir(this.deps.env),
|
|
1133
|
-
...this.deps.plugins,
|
|
1134
|
-
confirm: async () => true,
|
|
1135
|
-
// The page restarts this Wheelhouse itself once the change is kept.
|
|
1136
|
-
restart: async () => ({ restarted: [], failed: [], kept: [] }),
|
|
1137
|
-
log: () => {
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
/** Check Wheelhouse now from the chosen source; a check already under way is shared. */
|
|
1142
|
-
checkWheelhouse() {
|
|
1143
|
-
if (this.s.checking) return this.s.checking;
|
|
1144
|
-
this.s.checking = this.runCheck().then((c) => this.s.check = c).finally(() => this.s.checking = null);
|
|
1145
|
-
return this.s.checking;
|
|
1146
|
-
}
|
|
1147
|
-
async runCheck() {
|
|
1148
|
-
const dir = this.installDir();
|
|
1149
|
-
if (!dir) {
|
|
1150
|
-
return this.unsupported(
|
|
1151
|
-
"",
|
|
1152
|
-
"this Wheelhouse was not started by `wheelhouse open`, so it does not know where it is installed"
|
|
1153
|
-
);
|
|
1154
|
-
}
|
|
1155
|
-
const { source, kind } = await this.setup();
|
|
1156
|
-
const mismatch = this.mismatch(source, kind);
|
|
1157
|
-
if (mismatch) return this.unsupported(dir, mismatch);
|
|
1158
|
-
if (source === "github") return checkClone(this.cloneDeps(dir));
|
|
1159
|
-
return checkNpm(dir, this.deps.npm, () => new Date(this.now()));
|
|
1160
|
-
}
|
|
1161
|
-
unsupported(dir, reason) {
|
|
1162
|
-
return {
|
|
1163
|
-
schema: "wheelhouse-update.v1",
|
|
1164
|
-
checkedAt: new Date(this.now()).toISOString(),
|
|
1165
|
-
state: "unsupported",
|
|
1166
|
-
reason,
|
|
1167
|
-
dir,
|
|
1168
|
-
repository: null,
|
|
1169
|
-
branch: null,
|
|
1170
|
-
current: { commit: null, version: null },
|
|
1171
|
-
latest: null,
|
|
1172
|
-
commits: [],
|
|
1173
|
-
behind: 0,
|
|
1174
|
-
changes: []
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
/** The captain asked to check again: that also puts a failed upgrade behind them. */
|
|
1178
|
-
checkWheelhouseNow() {
|
|
1179
|
-
if (this.s.job?.state === "failed") this.s.job = null;
|
|
1180
|
-
return this.checkWheelhouse();
|
|
1181
|
-
}
|
|
1182
|
-
/** Wheelhouse's state; starts a check in the background when the last one is stale. */
|
|
1183
|
-
async wheelhouse() {
|
|
1184
|
-
if (!this.s.checking && !this.s.changing && this.stale(this.s.check?.checkedAt)) {
|
|
1185
|
-
void this.checkWheelhouse().catch(() => {
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
const { source, kind } = await this.setup();
|
|
1189
|
-
return {
|
|
1190
|
-
schema: "wheelhouse-self-update.v1",
|
|
1191
|
-
source,
|
|
1192
|
-
installKind: kind,
|
|
1193
|
-
mismatch: this.mismatch(source, kind) !== null,
|
|
1194
|
-
check: this.s.check,
|
|
1195
|
-
checking: this.s.checking !== null,
|
|
1196
|
-
job: this.s.job,
|
|
1197
|
-
canRestart: canRestart(),
|
|
1198
|
-
busy: await this.deps.busy?.() ?? []
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
/** Why a change cannot start now, or null. */
|
|
1202
|
-
refuseChange() {
|
|
1203
|
-
if (this.s.changing) return `Wait for ${this.s.changing} to finish.`;
|
|
1204
|
-
if (!canRestart()) {
|
|
1205
|
-
return "This Wheelhouse was not started by `wheelhouse open`, so it cannot restart itself to load a change.";
|
|
1206
|
-
}
|
|
1207
|
-
return null;
|
|
1208
|
-
}
|
|
1209
|
-
/**
|
|
1210
|
-
* Start upgrading Wheelhouse from the chosen source (published: `npm install
|
|
1211
|
-
* -g`; github: fast-forward the clone, reinstall, rebuild): answers once it
|
|
1212
|
-
* has started (or why it cannot), and the job's progress shows in
|
|
1213
|
-
* `wheelhouse()`. Ends by restarting.
|
|
1214
|
-
*/
|
|
1215
|
-
async startUpgrade() {
|
|
1216
|
-
const started = await this.begin("the Wheelhouse upgrade");
|
|
1217
|
-
if (!started.ok) return started;
|
|
1218
|
-
const { dir, source, kind } = started;
|
|
1219
|
-
const mismatch = this.mismatch(source, kind);
|
|
1220
|
-
if (mismatch) {
|
|
1221
|
-
this.s.changing = null;
|
|
1222
|
-
return { ok: false, error: mismatch };
|
|
1223
|
-
}
|
|
1224
|
-
if (source === "published") {
|
|
1225
|
-
this.runJob(
|
|
1226
|
-
NPM_STEPS,
|
|
1227
|
-
() => this.installPublished(dir, this.s.check?.latest?.version ?? null)
|
|
1228
|
-
);
|
|
1229
|
-
} else {
|
|
1230
|
-
this.runJob(UPGRADE_STEPS, async (job) => {
|
|
1231
|
-
const r = await upgradeClone(this.cloneDeps(dir), (step) => job.step = step);
|
|
1232
|
-
return r.ok ? { ok: true, to: r.to.slice(0, 7), check: r.check } : r;
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
return { ok: true };
|
|
1236
|
-
}
|
|
1237
|
-
/** Check every installed plugin now; a check under way is shared. */
|
|
1238
|
-
checkPlugins() {
|
|
1239
|
-
if (this.s.pluginsChecking) return this.s.pluginsChecking;
|
|
1240
|
-
this.s.pluginsChecking = checkPlugins(defaultPluginsDir(this.deps.env), {
|
|
1241
|
-
...this.deps.plugins,
|
|
1242
|
-
now: () => new Date(this.now())
|
|
1243
|
-
}).then((v) => this.s.plugins = v).finally(() => this.s.pluginsChecking = null);
|
|
1244
|
-
return this.s.pluginsChecking;
|
|
1245
|
-
}
|
|
1246
|
-
/** The installed plugins' update state; checks in the background when stale. */
|
|
1247
|
-
async plugins() {
|
|
1248
|
-
if (!this.s.pluginsChecking && this.stale(this.s.plugins?.checkedAt)) {
|
|
1249
|
-
void this.checkPlugins().catch(() => {
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
return {
|
|
1253
|
-
...this.s.plugins ?? {
|
|
1254
|
-
schema: "wheelhouse-plugin-updates.v1",
|
|
1255
|
-
checkedAt: null,
|
|
1256
|
-
plugins: [],
|
|
1257
|
-
error: null
|
|
1258
|
-
},
|
|
1259
|
-
checking: this.s.pluginsChecking !== null,
|
|
1260
|
-
busy: await this.deps.busy?.() ?? []
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
inspectInstall(repo, ref) {
|
|
1264
|
-
return inspect(ref ? `${repo}@${ref}` : repo, this.pluginDeps());
|
|
1265
|
-
}
|
|
1266
|
-
/** `ref` moves it to that tag, branch or commit; null keeps the one it was installed from. */
|
|
1267
|
-
inspectUpdate(id, ref) {
|
|
1268
|
-
return inspectUpdate(id, this.pluginDeps(), ref ? { ref } : {});
|
|
1269
|
-
}
|
|
1270
|
-
/** Install what a look-up showed (exactly that commit), keep its settings, then restart. */
|
|
1271
|
-
installPlugin(o) {
|
|
1272
|
-
return this.change(
|
|
1273
|
-
`installing ${o.repo}`,
|
|
1274
|
-
() => install(o.ref ? `${o.repo}@${o.ref}` : o.repo, this.pluginDeps(), {
|
|
1275
|
-
yes: true,
|
|
1276
|
-
expect: o.commit,
|
|
1277
|
-
settings: pairs(o.settings)
|
|
1278
|
-
})
|
|
1279
|
-
);
|
|
1280
|
-
}
|
|
1281
|
-
/** Update `id` to what a look-up showed (exactly that commit), keep new settings, then restart. */
|
|
1282
|
-
updatePlugin(id, o) {
|
|
1283
|
-
return this.change(
|
|
1284
|
-
`updating ${id}`,
|
|
1285
|
-
() => update(id, this.pluginDeps(), {
|
|
1286
|
-
yes: true,
|
|
1287
|
-
expect: o.commit,
|
|
1288
|
-
...o.ref ? { ref: o.ref } : {},
|
|
1289
|
-
settings: pairs(o.settings)
|
|
1290
|
-
})
|
|
1291
|
-
);
|
|
1292
|
-
}
|
|
1293
|
-
/** Turn an installed plugin that is off back on (as `wheelhouse plugin enable`), then restart to load it. */
|
|
1294
|
-
loadPlugin(id) {
|
|
1295
|
-
return this.change(
|
|
1296
|
-
`turning on ${id}`,
|
|
1297
|
-
() => setEnabled(id, true, this.pluginDeps(), { yes: true })
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
async change(what, work) {
|
|
1301
|
-
const refused = this.refuseChange();
|
|
1302
|
-
if (refused) return { ok: false, error: refused };
|
|
1303
|
-
this.s.changing = what;
|
|
1304
|
-
let r;
|
|
1305
|
-
try {
|
|
1306
|
-
r = await work();
|
|
1307
|
-
} catch (e) {
|
|
1308
|
-
this.s.changing = null;
|
|
1309
|
-
throw e;
|
|
1310
|
-
}
|
|
1311
|
-
if (!r.ok) {
|
|
1312
|
-
this.s.changing = null;
|
|
1313
|
-
return r;
|
|
1314
|
-
}
|
|
1315
|
-
this.s.plugins = null;
|
|
1316
|
-
this.log(`Wheelhouse is restarting after ${what}.`);
|
|
1317
|
-
restartSoon();
|
|
1318
|
-
return { ok: true, restarting: true };
|
|
1319
|
-
}
|
|
1320
|
-
/** Forget everything (tests). */
|
|
1321
|
-
reset() {
|
|
1322
|
-
this.s = fresh();
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
const PUBLISHED_ON_CLONE = "Wheelhouse runs from a git clone but the update source is Published release; choose Published release again in Settings → Update to install it from npm, or choose GitHub source";
|
|
1326
|
-
const GITHUB_ON_NPM = "Wheelhouse is installed from npm but the update source is GitHub source; choose GitHub source again in Settings → Update to clone and link it, or choose Published release";
|
|
1327
|
-
const pairs = (settings) => Object.entries(settings).map(([k, v]) => `${k}=${v}`);
|
|
1328
|
-
const KEY = /* @__PURE__ */ Symbol.for("wheelhouse.updates");
|
|
1329
|
-
const g = globalThis;
|
|
1330
|
-
function updateService() {
|
|
1331
|
-
g[KEY] ??= new UpdateService({
|
|
1332
|
-
env: process.env,
|
|
1333
|
-
busy: async () => (await import('./runtime.js-B79JnWK2.js').then((n) => n.aC)).busyRuntime()
|
|
1334
|
-
});
|
|
1335
|
-
return g[KEY];
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
export { updateService as u };
|
|
1339
|
-
//# sourceMappingURL=service.js-rmCdUjBa.js.map
|