@chrisjowen/wheelhouse 0.24.0 → 0.25.0
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.Bi7wbObi.css +1 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js +1 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js +1 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js +8 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js +2 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js +3 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js +3 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js +7 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js +6 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js +5 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js +3 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js +2 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js +1 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js +7 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js.br +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js +2 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js +1 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js +1 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js +1 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js +4 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js +3 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js +1 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.br +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js +1 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.br +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js +1 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.br +1 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.gz +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js +1 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js.br +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js +1 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.br +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.gz +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js +1 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.br +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js +1 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.br +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js +2 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js +1 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js +9 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js +1 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js +10 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js +9 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js +3 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js +2 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js +6 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js +1 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js +10 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js +1 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js +3 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js +1 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js +28 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js +14 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js +150 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js +3 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js +2 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js +25 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js +5 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js +18 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js +4 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js +2 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js +6 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js +8 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js +2 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js +5 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.br +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js +4 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js +3 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js +7 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js +2 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js +4 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js +7 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js +5 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js +6 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js +23 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js +1 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.br +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js +6 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js +1 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js +6 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js +3 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.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/ResizableRail.js-D0idmMXk.js +708 -0
- package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +3029 -0
- package/build/server/chunks/chunks/detail.js-B2R6Znek.js +149 -0
- package/build/server/chunks/chunks/features.js-BhXyRT_1.js +181 -0
- package/build/server/chunks/chunks/feedback.js-DthXPMki.js +67 -0
- package/build/server/chunks/chunks/internal.js-CEWzBR2Y.js +151 -0
- package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +261 -0
- package/build/server/chunks/chunks/marketplace-service.js-DSxw-XPY.js +557 -0
- package/build/server/chunks/chunks/package.js-B7nnL29I.js +160 -0
- package/build/server/chunks/chunks/page.js-DCiJruq9.js +13 -0
- package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +246 -0
- package/build/server/chunks/chunks/previewhelper2.js-Dokz3Re6.js +214 -0
- package/build/server/chunks/chunks/remote.js-TLEFH8L2.js +40 -0
- package/build/server/chunks/chunks/repo.js-DXPu1jYS.js +33 -0
- package/build/server/chunks/chunks/runtime.js-BcdjdUwr.js +26530 -0
- package/build/server/chunks/chunks/scribe.js-D30sP1z9.js +1591 -0
- package/build/server/chunks/chunks/service.js--01O07Iu.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CVR-BsF0.js +835 -0
- package/build/server/chunks/chunks/service3.js-Dx4TYIQa.js +234 -0
- package/build/server/chunks/chunks/sessions.js-BD6cxB3X.js +534 -0
- package/build/server/chunks/chunks/settings.js-t2yY6DMc.js +379 -0
- package/build/server/chunks/chunks/starter.js-CjOwkL4s.js +400 -0
- package/build/server/chunks/chunks/store.js-CBYhaqF1.js +334 -0
- package/build/server/chunks/chunks/tmux.js-DTQKbm92.js +504 -0
- package/build/server/chunks/chunks/tools.js-C_Xs95j-.js +156 -0
- package/build/server/chunks/chunks/uploads.js-ZX2kg51N.js +107 -0
- package/build/server/chunks/chunks/view.js-D02gwJlT.js +76 -0
- package/build/server/chunks/chunks/volume-2.js-BdrATtWy.js +24 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DCqY_Bda.js +116 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Dm04PmD_.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js--TGJX2z9.js +63 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-B9JGOQSd.js +79 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CgPkuD4I.js +83 -0
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-BkQr7zlk.js +68 -0
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-JXf9tr9y.js +73 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNlZzPAi.js +158 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-C9jkqC7K.js +57 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-D51z27Qh.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-UZLIIsLh.js +111 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-QBAtq3e4.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CMW5VeA1.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CYEPWDq9.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Dzw8Aq7W.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-H1O8SpZj.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C3UIEKwW.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BF0ddpon.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CQDDUPQH.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-Bj6fzAhI.js +80 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-KeBdme5-.js +91 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DWyorNkc.js +79 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DmocVrgJ.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CSSUNhkV.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-yZHelvlp.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-B95RBsOY.js +62 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BuCZ0nAz.js +62 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CmiCqFGa.js +89 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CfCsmFek.js +87 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-DMj7O_wm.js +80 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CCxzIYPx.js +172 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D_LWxNH8.js +62 -0
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-DHCwcT09.js +71 -0
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Dr83B5jC.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BFz64-UD.js +91 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-AI3xP87_.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CB9SAMkD.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-DaB0pK-G.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-C-RZ2hfW.js +105 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-Ct15HbWb.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-Kp-td74e.js +122 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-C4Er7ziD.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-D2CWeQx9.js +97 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Cxxjkcea.js +86 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BpSkuaqs.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DhqoeMSp.js +78 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-B978UeYH.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BjYkraIy.js +85 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BSm0fyqO.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DSZfo5DT.js +62 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-Bhlu3rq6.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Bc6_vVMA.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-q71bHTAI.js +67 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BdhHl9q5.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BbF_qpRh.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CVHc5ryW.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B7KmzEu4.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-ILPrSxNM.js +86 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DRzuvCjv.js +67 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BYotWMDG.js +76 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CXXw_967.js +88 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-5H8AVdf3.js +75 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js--_mniW0J.js +98 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DV5voQBw.js +81 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-6xFnfO31.js +476 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-DELGIKLB.js +92 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DrkDRFum.js +71 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-oOrlu6PL.js +81 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BmE51iKW.js +141 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CJJOCfAf.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BE-v4ctp.js +84 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-BSAksOTw.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-9jtQze4M.js +73 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BEbfK5Sb.js +67 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CC70KheS.js +86 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BPOVTSNr.js +113 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B0Ce7-kQ.js +79 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-mhQYv_sd.js +108 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-QMmOjqmI.js +127 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-IfH0F77C.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CLPXGlPH.js +84 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CIc1KsPd.js +85 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-G6xuTFYk.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-ChS6Cl9I.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-ylJaIr71.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-iQF5ttIM.js +97 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BW9O_FlY.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DTE3VOwI.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-s26vq0JS.js +27 -0
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-B8s3BS7I.js +78 -0
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-BsiL8VVP.js +68 -0
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-Co28KCNH.js +75 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-syWL6Knw.js +87 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BI2EVdsb.js +66 -0
- package/build/server/chunks/entries/hooks.server.js-B4zt2gMT.js +108 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BBZSb3zI.js +55 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +6023 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BS44Y_4B.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +4907 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-BfjjhUph.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Den-42vR.js +16 -0
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-CI8dk87B.js +15 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-BgARM8mm.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-HtDc07oV.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-QHRjb2mW.js +16 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-U6iyhhAi.js +18 -0
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-Ct7X9UNn.js +18 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CSy0Mcfk.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-OcqAZPqs.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D1OSHb0S.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DRtkOAgr.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Br-tOc7a.js +15 -0
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-C3qIWXBy.js +25 -0
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-Ce5mHdpe.js +37 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-KkohEbGV.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-C5r6-ShC.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DGKwb104.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B-xlxpbm.js +18 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-BDkMLIf6.js +15 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C3rAOzae.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BA-tWOES.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DRjZBOes.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BaJ2W22V.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DssDgFRV.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-niIXQvkx.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CbTQXe63.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BYvOjL40.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BAzQbxTI.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-C_PZ3K62.js +15 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-CPtKfR3g.js +161 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bt5BHnIn.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-CBJ9UCxK.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +121 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-By1hYgOi.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-DJxWHuwd.js +11 -0
- package/build/server/chunks/handler-CXUepvBU.js +1474 -0
- package/build/server/chunks/index.js-BsOCKSNc.js +4296 -0
- package/build/server/chunks/manifest.js-CSOlQwBQ.js +1050 -0
- package/build/server/chunks/nodes/0.js-BA8rdf7S.js +69 -0
- package/build/server/chunks/nodes/1.js-CGDtM8Ha.js +9 -0
- package/build/server/chunks/nodes/10.js-dkuZj5-W.js +67 -0
- package/build/server/chunks/nodes/11.js-DNaVEa3x.js +69 -0
- package/build/server/chunks/nodes/12.js-VJOzmisQ.js +68 -0
- package/build/server/chunks/nodes/13.js-B-UNeeYa.js +69 -0
- package/build/server/chunks/nodes/14.js-DuWS_Hw5.js +12 -0
- package/build/server/chunks/nodes/15.js-lq3f_J6-.js +9 -0
- package/build/server/chunks/nodes/16.js-Ch2TluQr.js +9 -0
- package/build/server/chunks/nodes/17.js-BcBFGx5D.js +67 -0
- package/build/server/chunks/nodes/18.js-Dx5djvj3.js +70 -0
- package/build/server/chunks/nodes/19.js-C-Dv2UZU.js +68 -0
- package/build/server/chunks/nodes/2.js-Dlx5yqWh.js +67 -0
- package/build/server/chunks/nodes/20.js-Crt3vcuB.js +69 -0
- package/build/server/chunks/nodes/21.js-DTRw0wlf.js +68 -0
- package/build/server/chunks/nodes/22.js-avqPhTYl.js +69 -0
- package/build/server/chunks/nodes/23.js-RRrhs54q.js +69 -0
- package/build/server/chunks/nodes/24.js-BFk3mjXx.js +25 -0
- package/build/server/chunks/nodes/25.js-B2Rb1Za9.js +25 -0
- package/build/server/chunks/nodes/26.js-BT9wbGJs.js +9 -0
- package/build/server/chunks/nodes/27.js-rQgQSbRQ.js +25 -0
- package/build/server/chunks/nodes/28.js-CjbQNy9F.js +67 -0
- package/build/server/chunks/nodes/29.js-Cycdssqz.js +18 -0
- package/build/server/chunks/nodes/3.js-u47cGgVr.js +9 -0
- package/build/server/chunks/nodes/30.js-DS5CGoON.js +68 -0
- package/build/server/chunks/nodes/31.js-DM2poShY.js +67 -0
- package/build/server/chunks/nodes/32.js-DFy_JaX0.js +25 -0
- package/build/server/chunks/nodes/33.js-DJeaepHV.js +67 -0
- package/build/server/chunks/nodes/34.js-BZwX56gy.js +25 -0
- package/build/server/chunks/nodes/35.js-DYTAoBE6.js +22 -0
- package/build/server/chunks/nodes/36.js-BY3unmMW.js +67 -0
- package/build/server/chunks/nodes/37.js-m6ZzMMTc.js +70 -0
- package/build/server/chunks/nodes/38.js-B3Kp1AAS.js +69 -0
- package/build/server/chunks/nodes/39.js-BvYxNpMG.js +26 -0
- package/build/server/chunks/nodes/4.js-BDLWobmB.js +68 -0
- package/build/server/chunks/nodes/40.js-Dw8-O1g2.js +69 -0
- package/build/server/chunks/nodes/41.js-D7Ne71uc.js +71 -0
- package/build/server/chunks/nodes/42.js-Bsljzkwn.js +68 -0
- package/build/server/chunks/nodes/43.js-CKN-FZAM.js +68 -0
- package/build/server/chunks/nodes/44.js-DWOVsqNq.js +67 -0
- package/build/server/chunks/nodes/5.js-NuGLVKKK.js +67 -0
- package/build/server/chunks/nodes/6.js-B5PJm0c8.js +67 -0
- package/build/server/chunks/nodes/8.js-B72TpXrD.js +67 -0
- package/build/server/chunks/nodes/9.js-D2iYl_QK.js +14 -0
- package/dist/cli.js +1 -1
- 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.Dy2mS3Kw.css +0 -1
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BV08B4f2.js +0 -2
- package/build/client/_app/immutable/chunks/BV08B4f2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BV08B4f2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiW3is2c.js +0 -3
- package/build/client/_app/immutable/chunks/BiW3is2c.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiW3is2c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkAmMVsw.js +0 -1
- package/build/client/_app/immutable/chunks/BkAmMVsw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkAmMVsw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BlR6_nYR.js +0 -1
- package/build/client/_app/immutable/chunks/BlR6_nYR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BlR6_nYR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqTq4oc1.js +0 -3
- package/build/client/_app/immutable/chunks/BqTq4oc1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqTq4oc1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsJW6yGO.js +0 -6
- package/build/client/_app/immutable/chunks/BsJW6yGO.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsJW6yGO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4f5KkA2.js +0 -3
- package/build/client/_app/immutable/chunks/C4f5KkA2.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4f5KkA2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAaBUUji.js +0 -7
- package/build/client/_app/immutable/chunks/CAaBUUji.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAaBUUji.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyKAWacA.js +0 -3
- package/build/client/_app/immutable/chunks/CyKAWacA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyKAWacA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-IXMU2L.js +0 -7
- package/build/client/_app/immutable/chunks/D-IXMU2L.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-IXMU2L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js +0 -5
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js +0 -4
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D64mTvaN.js +0 -1
- package/build/client/_app/immutable/chunks/D64mTvaN.js.br +0 -0
- package/build/client/_app/immutable/chunks/D64mTvaN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DK5gnzN6.js +0 -1
- package/build/client/_app/immutable/chunks/DK5gnzN6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DK5gnzN6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLdhxfs7.js +0 -1
- package/build/client/_app/immutable/chunks/DLdhxfs7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLdhxfs7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSoS8iw8.js +0 -1
- package/build/client/_app/immutable/chunks/DSoS8iw8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSoS8iw8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlAlt18J.js +0 -2
- package/build/client/_app/immutable/chunks/DlAlt18J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlAlt18J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrAaxSl_.js +0 -1
- package/build/client/_app/immutable/chunks/DrAaxSl_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrAaxSl_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QOxfJswt.js +0 -1
- package/build/client/_app/immutable/chunks/QOxfJswt.js.br +0 -0
- package/build/client/_app/immutable/chunks/QOxfJswt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kNXqkaLy.js +0 -1
- package/build/client/_app/immutable/chunks/kNXqkaLy.js.br +0 -0
- package/build/client/_app/immutable/chunks/kNXqkaLy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qL93yOki.js +0 -1
- package/build/client/_app/immutable/chunks/qL93yOki.js.br +0 -0
- package/build/client/_app/immutable/chunks/qL93yOki.js.gz +0 -0
- package/build/client/_app/immutable/chunks/skcbA-fa.js +0 -8
- package/build/client/_app/immutable/chunks/skcbA-fa.js.br +0 -0
- package/build/client/_app/immutable/chunks/skcbA-fa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vyMQ5db-.js +0 -1
- package/build/client/_app/immutable/chunks/vyMQ5db-.js.br +0 -0
- package/build/client/_app/immutable/chunks/vyMQ5db-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js +0 -2
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js.br +0 -0
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xTuQT2it.js +0 -1
- package/build/client/_app/immutable/chunks/xTuQT2it.js.br +0 -3
- package/build/client/_app/immutable/chunks/xTuQT2it.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.C_bqQknd.js +0 -2
- package/build/client/_app/immutable/entry/app.C_bqQknd.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C_bqQknd.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js +0 -1
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js.br +0 -0
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js +0 -9
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js +0 -1
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js +0 -10
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js +0 -9
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BcEihrai.js +0 -3
- package/build/client/_app/immutable/nodes/12.BcEihrai.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BcEihrai.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js +0 -2
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js +0 -6
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js +0 -1
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js +0 -10
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js +0 -1
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js +0 -3
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js +0 -1
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js +0 -28
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js +0 -14
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js +0 -150
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js +0 -3
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js +0 -2
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js +0 -25
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js +0 -5
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js +0 -18
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js +0 -4
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js +0 -2
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js +0 -6
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js +0 -8
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js +0 -2
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js +0 -5
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js +0 -4
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.fQqixPey.js +0 -3
- package/build/client/_app/immutable/nodes/35.fQqixPey.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.fQqixPey.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js +0 -7
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js +0 -2
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js +0 -4
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.B1817o0R.js +0 -7
- package/build/client/_app/immutable/nodes/39.B1817o0R.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.B1817o0R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js +0 -5
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js +0 -6
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js +0 -23
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js +0 -1
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js.br +0 -1
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js +0 -6
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js +0 -1
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js +0 -6
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js +0 -3
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.gz +0 -0
- package/build/server/chunks/chunks/ResizableRail.js-DWTZXucY.js +0 -708
- package/build/server/chunks/chunks/TaskView.js-Djh37gNV.js +0 -3029
- package/build/server/chunks/chunks/detail.js-DCkIB4wl.js +0 -149
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +0 -181
- package/build/server/chunks/chunks/feedback.js-BTR9xkHF.js +0 -67
- package/build/server/chunks/chunks/internal.js-Bg8MvH6G.js +0 -151
- package/build/server/chunks/chunks/livereview.js-BJxqrnBd.js +0 -261
- package/build/server/chunks/chunks/marketplace-service.js-CqwpcR5A.js +0 -557
- package/build/server/chunks/chunks/package.js-BOu7yHDP.js +0 -160
- package/build/server/chunks/chunks/page.js-DZmeg344.js +0 -13
- package/build/server/chunks/chunks/previewhelper.js-CUjqs8rl.js +0 -245
- package/build/server/chunks/chunks/previewhelper2.js-DhAL5_6K.js +0 -214
- package/build/server/chunks/chunks/remote.js-B8iHzqbR.js +0 -21
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +0 -33
- package/build/server/chunks/chunks/runtime.js-CCDb6NUe.js +0 -26510
- package/build/server/chunks/chunks/scribe.js-CPHlcPWd.js +0 -1376
- package/build/server/chunks/chunks/service.js-DSxBrc6d.js +0 -1339
- package/build/server/chunks/chunks/service2.js-CnOAObr8.js +0 -835
- package/build/server/chunks/chunks/service3.js-DpPYyCFX.js +0 -234
- package/build/server/chunks/chunks/sessions.js--Esog5VV.js +0 -534
- package/build/server/chunks/chunks/settings.js-FZbEnILS.js +0 -379
- package/build/server/chunks/chunks/starter.js-Z4qUYkMx.js +0 -400
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +0 -334
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +0 -504
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +0 -156
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +0 -107
- package/build/server/chunks/chunks/view.js-9667u7-H.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-D8BEzPks.js +0 -116
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DsvibwQo.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-D3QhZ5yy.js +0 -63
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BQmCAgYI.js +0 -79
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-D6vKOU4l.js +0 -83
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-DuflqKrA.js +0 -68
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-B9u0JtDZ.js +0 -73
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CXk1I-s5.js +0 -158
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-DRXyKXoh.js +0 -57
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CHm9En9u.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DZ10q4PZ.js +0 -111
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DWpSMN_e.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-r5EeGDB9.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-D8axU9Ds.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-DvRi4-bS.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-3D-zqPU7.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C05dgSJS.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DM6G3h5y.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-D45ENMJB.js +0 -119
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BITiA3fH.js +0 -80
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DaWZw8pD.js +0 -91
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CZzxvZ9J.js +0 -79
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CeXazf71.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DNakBJpI.js +0 -62
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-oSlVw3U-.js +0 -62
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKpKqARI.js +0 -89
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-Do8VP-YQ.js +0 -87
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ty868lLE.js +0 -80
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CQkwL0rD.js +0 -172
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BvzIuaym.js +0 -62
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-BCD8UCda.js +0 -71
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-DF5QaWdr.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DYKzL_m9.js +0 -91
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-D4LS14N_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-oJKS0Y1M.js +0 -27
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-CiJNPYNd.js +0 -30
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-0F2_nib_.js +0 -105
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +0 -74
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-VjhDF8Zu.js +0 -122
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-DvJSVSjw.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BMJ7HbQq.js +0 -97
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CO8Af6jn.js +0 -86
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-CR3QXthM.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DDjhPQRS.js +0 -78
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-WVmE9mVd.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cm-9zIoi.js +0 -85
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BFeAY67I.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CvAQo2kn.js +0 -62
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CHxwtQHh.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DSpQGp27.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-DMREi9Pr.js +0 -67
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BeWwqmLG.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-Dkzta0M_.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DwQYqOWh.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-C0Y--kKI.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-HcU7dUaN.js +0 -86
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dnq8SBmx.js +0 -67
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C1IxdPvG.js +0 -76
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BEkjU0sD.js +0 -88
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-FLttbhnI.js +0 -75
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Bha1xzEw.js +0 -98
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-NjHGpfdP.js +0 -81
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-CKjMYRPa.js +0 -476
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BOJAdcMO.js +0 -92
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BTCUhVLF.js +0 -71
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-Dt3D1vlP.js +0 -81
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Nuj2D0ou.js +0 -141
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CiEm0rNZ.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DCeLnaet.js +0 -84
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-X0QaDi3f.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-DeWAhlq5.js +0 -73
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-jpshAN_z.js +0 -67
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DdHtMz3U.js +0 -86
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-D25Xyng0.js +0 -113
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-PvhE-sWb.js +0 -79
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-JA56U2UK.js +0 -107
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D2IAZAi5.js +0 -127
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-ecGZ6usx.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DIL1cK_3.js +0 -84
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CgKjSAlD.js +0 -85
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BOQKIJxn.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CkK5Y82K.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-D-fE-ew4.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-CUasoo5r.js +0 -97
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-DmPgbeCW.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B94AT-sg.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DWi2b9Mx.js +0 -27
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-DBjo4_k6.js +0 -78
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-cggeZMBj.js +0 -68
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-D3Udbcv-.js +0 -75
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DgSMJqGU.js +0 -85
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B2VjvvAB.js +0 -66
- package/build/server/chunks/entries/hooks.server.js-CRDKWiCw.js +0 -107
- package/build/server/chunks/entries/pages/_layout.server.ts.js-AHV4omRN.js +0 -55
- package/build/server/chunks/entries/pages/_layout.svelte.js-DsvCGNUI.js +0 -6023
- package/build/server/chunks/entries/pages/_page.server.ts.js-Bl64XRGY.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-Er6DIvYo.js +0 -4886
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-YEOJyXaU.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Bn9pyphZ.js +0 -16
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-DoOEkND3.js +0 -15
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-q_a1EGjA.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CV4qoB47.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-CcJzZPK6.js +0 -16
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CZ4oON2g.js +0 -18
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BI5BADm7.js +0 -18
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CtC_6fS-.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTZY_1yT.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D-8dL2Mn.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BfBecR-G.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DCeq2QtX.js +0 -15
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-CiLbofM5.js +0 -25
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-BkPdJPqB.js +0 -37
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CbAvSKX9.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-D5jE8Jm_.js +0 -18
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-64DsxExR.js +0 -15
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-DUnCuBsq.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-D8ovHe5z.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CTuAgEM9.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-LRk_0zzT.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BJQ8PVz2.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BDbQXhzo.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CWGyxrN7.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-Dur6rEz-.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Uca0-iPP.js +0 -15
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-qEc5nPtP.js +0 -178
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CLGNe_lT.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BXY4jcfM.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BLYEV0pM.js +0 -121
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-C0y6HLFn.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-C3KCFmSW.js +0 -11
- package/build/server/chunks/handler-CmSkir2e.js +0 -1474
- package/build/server/chunks/index.js--qZj4Hlt.js +0 -4296
- package/build/server/chunks/manifest.js-DznXX5B1.js +0 -1050
- package/build/server/chunks/nodes/0.js-JGhf3lek.js +0 -69
- package/build/server/chunks/nodes/1.js-MDwGT23n.js +0 -9
- package/build/server/chunks/nodes/10.js-BC_tDsXY.js +0 -67
- package/build/server/chunks/nodes/11.js-BlbXx-Vo.js +0 -69
- package/build/server/chunks/nodes/12.js-DRtVTtQZ.js +0 -68
- package/build/server/chunks/nodes/13.js-C54S9wq2.js +0 -69
- package/build/server/chunks/nodes/14.js-pbTZptLH.js +0 -12
- package/build/server/chunks/nodes/15.js-DLYRC91n.js +0 -9
- package/build/server/chunks/nodes/16.js-D7wzRoAT.js +0 -9
- package/build/server/chunks/nodes/17.js-BSxNNEBP.js +0 -67
- package/build/server/chunks/nodes/18.js-Cw1aobbl.js +0 -70
- package/build/server/chunks/nodes/19.js-BZL7Y2jR.js +0 -68
- package/build/server/chunks/nodes/2.js-CEhzIBTF.js +0 -67
- package/build/server/chunks/nodes/20.js-LT-WErdh.js +0 -69
- package/build/server/chunks/nodes/21.js-Dhf1VdAQ.js +0 -68
- package/build/server/chunks/nodes/22.js-C4T-4uGi.js +0 -69
- package/build/server/chunks/nodes/23.js-DfmzwOvT.js +0 -69
- package/build/server/chunks/nodes/24.js-B8tDbRuD.js +0 -25
- package/build/server/chunks/nodes/25.js-CB_xn9jn.js +0 -25
- package/build/server/chunks/nodes/26.js-D475mFaM.js +0 -9
- package/build/server/chunks/nodes/27.js-CqinYfdy.js +0 -25
- package/build/server/chunks/nodes/28.js-gzzSRYcM.js +0 -67
- package/build/server/chunks/nodes/29.js-CTGodeoy.js +0 -18
- package/build/server/chunks/nodes/3.js-B398IAtw.js +0 -9
- package/build/server/chunks/nodes/30.js-6Lb--dFz.js +0 -68
- package/build/server/chunks/nodes/31.js-CSj1AD7Q.js +0 -67
- package/build/server/chunks/nodes/32.js-BbGpHC9C.js +0 -25
- package/build/server/chunks/nodes/33.js-ChlD3UrL.js +0 -67
- package/build/server/chunks/nodes/34.js-DEdPbVDI.js +0 -25
- package/build/server/chunks/nodes/35.js-CinHDp_f.js +0 -22
- package/build/server/chunks/nodes/36.js-09k2jafz.js +0 -67
- package/build/server/chunks/nodes/37.js-wi0tvsNN.js +0 -70
- package/build/server/chunks/nodes/38.js-CXsKjbLt.js +0 -69
- package/build/server/chunks/nodes/39.js-DUosso-F.js +0 -26
- package/build/server/chunks/nodes/4.js-8nztjXZE.js +0 -68
- package/build/server/chunks/nodes/40.js-Bbiq9IeZ.js +0 -69
- package/build/server/chunks/nodes/41.js-MEJZh_dk.js +0 -71
- package/build/server/chunks/nodes/42.js-BhCRRutm.js +0 -68
- package/build/server/chunks/nodes/43.js-OOLANNrx.js +0 -68
- package/build/server/chunks/nodes/44.js-DiraBnCg.js +0 -67
- package/build/server/chunks/nodes/5.js-DgynhGEO.js +0 -67
- package/build/server/chunks/nodes/6.js-a6nRdMeq.js +0 -67
- package/build/server/chunks/nodes/8.js-YdBDVkOY.js +0 -67
- package/build/server/chunks/nodes/9.js-CFYhuecx.js +0 -14
|
@@ -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-Dp0IVhO6.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-CCDb6NUe.js').then((n) => n.ax)).busyRuntime()
|
|
1334
|
-
});
|
|
1335
|
-
return g[KEY];
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
export { updateService as u };
|
|
1339
|
-
//# sourceMappingURL=service.js-DSxBrc6d.js.map
|