@chrisjowen/wheelhouse 0.22.9 → 0.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.CxgStULu.css +1 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxgStULu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js +1 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.br +0 -0
- package/build/client/_app/immutable/chunks/-yf6aA9S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js +1 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.br +0 -0
- package/build/client/_app/immutable/chunks/362kFTNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js +2 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.br +0 -0
- package/build/client/_app/immutable/chunks/4Fb0jmD0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js +1 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B6OgCkTR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js +1 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BONFwLSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js +1 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcjiGAgD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js +1 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjVIrDHV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js +7 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bue5RrUO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js +1 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLuz13qg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js +6 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSzwlAcc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js +1 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW42isxN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js +7 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWvJbYTn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js +1 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cq0j50qC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js +8 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cu2GhZPA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js +3 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC4avyk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js +1 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFoNnxZy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js +3 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLoaec-O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js +1 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMtBybVn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js +2 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.br +0 -0
- package/build/client/_app/immutable/chunks/DN7cEX4D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js +1 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRK8ZUj2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js +1 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTmJMwRe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js +1 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dg5Iatf7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js +4 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dtd2m7HF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js +1 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.br +0 -0
- package/build/client/_app/immutable/chunks/MoV8bfgL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js +3 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Rgu8m09_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js +5 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.br +0 -0
- package/build/client/_app/immutable/chunks/nqsqhzVw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js +1 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/pSy419OZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js +2 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.br +0 -0
- package/build/client/_app/immutable/chunks/tFbTlyod.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js +6 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.br +0 -0
- package/build/client/_app/immutable/chunks/vbU2m5ZC.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js +2 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DhcmqiiG.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js +1 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DO6oso7n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js +9 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js +1 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js +9 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js +3 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js +6 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js +1 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BKw66cnj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js +10 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js +1 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DSekLzW1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js +3 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js +1 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DXMknnxr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js +14 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js +150 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js +40 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BHumjjdi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js +25 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js +5 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js +18 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js +4 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js +6 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.BnZOICl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js +8 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js +2 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js +5 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js +2 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js +4 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js +3 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js +7 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.D8XciSJp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js +2 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DinukFZg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js +4 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js +7 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js +6 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.S0MUGkao.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js +23 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.br +1 -0
- package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js +5 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js +6 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.br +0 -0
- package/build/client/_app/immutable/nodes/40._GGycC-b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js +1 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js +3 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DydCsQuo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js +10 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CroJqbmx.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/DecisionForm.js-xvsHzFol.js +246 -0
- package/build/server/chunks/chunks/DecisionsBadge.js-Ba3uHWZs.js +79 -0
- package/build/server/chunks/chunks/Discussion.js-Bdc6mCza.js +582 -0
- package/build/server/chunks/chunks/ResizableRail.js-CaXYsa14.js +864 -0
- package/build/server/chunks/chunks/TaskView.js-Ceg1VgsE.js +3015 -0
- package/build/server/chunks/chunks/bell.js-bn_lKpLG.js +194 -0
- package/build/server/chunks/chunks/chat.svelte.js-sTASVMGv.js +417 -0
- package/build/server/chunks/chunks/decisionhome.js-GDNgBJjF.js +319 -0
- package/build/server/chunks/chunks/detail.js-BiXsOr5e.js +149 -0
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +181 -0
- package/build/server/chunks/chunks/feedback.js-DqPCMKCB.js +67 -0
- package/build/server/chunks/chunks/handled.js-CSOW-IZA.js +20 -0
- package/build/server/chunks/chunks/inbox.js-Ci-STS86.js +229 -0
- package/build/server/chunks/chunks/insights.svelte.js-Bkr5JwNs.js +567 -0
- package/build/server/chunks/chunks/internal.js-BFZQ29Rw.js +151 -0
- package/build/server/chunks/chunks/marketplace-service.js-Dux8KDZW.js +557 -0
- package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +121 -0
- package/build/server/chunks/chunks/package.js-BddORhTc.js +160 -0
- package/build/server/chunks/chunks/page.js-BBQIXL1m.js +13 -0
- package/build/server/chunks/chunks/previewhelper2.js-BkkOMPpE.js +210 -0
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +33 -0
- package/build/server/chunks/chunks/runtime.js-D5CM1xFr.js +25696 -0
- package/build/server/chunks/chunks/scribe.js-DPteFaiJ.js +1376 -0
- package/build/server/chunks/chunks/service.js-Jsxdma_u.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CNlAY9fC.js +835 -0
- package/build/server/chunks/chunks/service3.js-CJCzXm3j.js +234 -0
- package/build/server/chunks/chunks/sessions.js-DwnsAQAT.js +519 -0
- package/build/server/chunks/chunks/settings.js-B_K2GMso.js +379 -0
- package/build/server/chunks/chunks/starter.js-De6FnYRT.js +400 -0
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +334 -0
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +504 -0
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +156 -0
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +107 -0
- package/build/server/chunks/chunks/view.js-7t_fs4Ou.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Y1d6GsCd.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CH-h3Pl7.js +111 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CCMWIWlb.js +59 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DXIH_Tt_.js +75 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-nWjmGzXO.js +79 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-SoyoQEs8.js +154 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dd51OPkW.js +56 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BJxEyrRY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0lQ7d4ex.js +107 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DLr0x0ZE.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-bScpFWhy.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dl_lCGny.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CMV9SuiA.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-j9aWA7Ox.js +67 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-mtr8O6IP.js +73 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DSTGdSa-.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BAk_G9UZ.js +115 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C_AWiFk_.js +76 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DVlzrd15.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CfdiA9Rf.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dr9UEEmG.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BKVOwD6Q.js +58 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Bjr287a3.js +58 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-B_6DE6G6.js +85 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJzlOY_q.js +83 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CiAgA4MB.js +76 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPgUobdG.js +168 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BMMFlj3H.js +58 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-psBYT9Pj.js +87 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BkaMXW0d.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BFVleJ7Y.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-53atYpc4.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CT3ITClO.js +96 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C2tqGck8.js +118 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEzg-GdT.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BtHG_jAo.js +93 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CBMV7d_i.js +82 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DGiV-zDl.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BmsdvL4P.js +74 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CKWaWFzi.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-sXcrpQCn.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-05bkKDCo.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dv2TIj2l.js +58 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BkaZp7ms.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BlpQJKLF.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-B0D6HGVa.js +63 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-CoGEDP4T.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CeH1E1-1.js +69 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BJAM9u1Z.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B5919bIx.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-fOS_n0Oo.js +81 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dhy3UyX1.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5yLhUK-.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8vY4bNlN.js +84 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-xVKILY2S.js +71 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-FOib6B1u.js +94 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B7PoKpP_.js +77 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-DboClsC1.js +473 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-_t2JBTpH.js +88 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BQq9eUgO.js +67 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DV5Sv6hi.js +77 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BiBWqjSe.js +137 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DxiG_OGk.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BGYEc37e.js +80 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CTzyglnl.js +66 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-rZFEYwUA.js +69 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BbY3jmr8.js +63 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rYs21Hmk.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B_kTjBS5.js +109 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ZkKoICXw.js +75 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-BGq0j-tp.js +104 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-COtlUErI.js +123 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-iofjMHUL.js +77 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-lh5ob5IU.js +80 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DibEHnqf.js +81 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BdjAbGdT.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CgI_ZLEj.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BUDwJeuz.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DtbdX65q.js +93 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BhPvfhR9.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-ytsnK_ZP.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CBcVn1mu.js +27 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BEELTWRW.js +82 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Eao6pczH.js +62 -0
- package/build/server/chunks/entries/hooks.server.js-CF4JNzUJ.js +104 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-TepwAVSL.js +54 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CO0DVsYz.js +6028 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-Dhr60fyS.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-D35KG02R.js +5810 -0
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-B1SJ4JXR.js +115 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cuc-vbOM.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-6jCtHLOX.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-BFOofQDq.js +93 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-C0iJcT5-.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DLTE5C5n.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-BGngm7Na.js +16 -0
- package/build/server/chunks/entries/pages/health/_page.svelte.js-q1P9AuIv.js +517 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DX9hQHEu.js +18 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BOQ1XsWC.js +666 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBNfjd5P.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B7Dmf30h.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKEe2-Fq.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DQP_r_hz.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-B6DP_hXM.js +15 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-0ZU6L4gV.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B9y6kIJg.js +18 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-D1bVoyS8.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BlTW0hjJ.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-tetctN1t.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BSg0cHvQ.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DnuFc9-d.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DVFgUMvV.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-B0HUsANb.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CHMmRvZ3.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Bn6Ntdtb.js +15 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D2lE9oK6.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D_08lJPM.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-vFkcChIQ.js +112 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-rpxoOqIW.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Cu-V5UEB.js +11 -0
- package/build/server/chunks/handler-Dr03OdQ-.js +1474 -0
- package/build/server/chunks/index.js-BMxFQyjC.js +4296 -0
- package/build/server/chunks/manifest.js-C_Ui3kN5.js +969 -0
- package/build/server/chunks/nodes/0.js-BV8n1wnt.js +66 -0
- package/build/server/chunks/nodes/1.js-CYQdJgHA.js +9 -0
- package/build/server/chunks/nodes/10.js-BrDRWQQx.js +65 -0
- package/build/server/chunks/nodes/11.js-DdqofsD3.js +64 -0
- package/build/server/chunks/nodes/12.js-DLPGUsTC.js +12 -0
- package/build/server/chunks/nodes/13.js-BdokX4Tq.js +9 -0
- package/build/server/chunks/nodes/14.js-S81xczxH.js +9 -0
- package/build/server/chunks/nodes/15.js-DpvHCVGB.js +63 -0
- package/build/server/chunks/nodes/16.js-BWStEOBD.js +66 -0
- package/build/server/chunks/nodes/17.js-gvgV2hER.js +64 -0
- package/build/server/chunks/nodes/18.js-CT7k54Ej.js +65 -0
- package/build/server/chunks/nodes/19.js-B9UtpBBj.js +64 -0
- package/build/server/chunks/nodes/2.js-Dbm7TfZ5.js +63 -0
- package/build/server/chunks/nodes/20.js-vT3xrxjL.js +24 -0
- package/build/server/chunks/nodes/21.js-BbXio736.js +25 -0
- package/build/server/chunks/nodes/22.js-BMPIZV2w.js +9 -0
- package/build/server/chunks/nodes/23.js-DxLM-Z83.js +25 -0
- package/build/server/chunks/nodes/24.js-CHEjlfCe.js +63 -0
- package/build/server/chunks/nodes/26.js-D4F01T28.js +64 -0
- package/build/server/chunks/nodes/27.js-SDmmboPo.js +63 -0
- package/build/server/chunks/nodes/28.js-BfB0OsO7.js +25 -0
- package/build/server/chunks/nodes/29.js-DmoRXmbF.js +63 -0
- package/build/server/chunks/nodes/3.js-CILuDxnn.js +9 -0
- package/build/server/chunks/nodes/30.js-qL8fMPlb.js +24 -0
- package/build/server/chunks/nodes/31.js-D8hKIBnL.js +22 -0
- package/build/server/chunks/nodes/32.js-opcnFZYn.js +63 -0
- package/build/server/chunks/nodes/33.js-DTBnnQEr.js +66 -0
- package/build/server/chunks/nodes/34.js-CN-lXIx7.js +65 -0
- package/build/server/chunks/nodes/35.js-leP1Nmab.js +26 -0
- package/build/server/chunks/nodes/36.js-BXVNTEuJ.js +65 -0
- package/build/server/chunks/nodes/37.js-BL1cJNDE.js +67 -0
- package/build/server/chunks/nodes/38.js-Ds4te6eT.js +64 -0
- package/build/server/chunks/nodes/39.js-fqFUZvsO.js +64 -0
- package/build/server/chunks/nodes/4.js-BeT-z_5E.js +64 -0
- package/build/server/chunks/nodes/40.js-WIor0bYG.js +63 -0
- package/build/server/chunks/nodes/5.js-Ns9cI3B2.js +63 -0
- package/build/server/chunks/nodes/7.js-BU21SoSq.js +63 -0
- package/build/server/chunks/nodes/8.js-XnRzynxm.js +14 -0
- package/build/server/chunks/nodes/9.js-Dw79X6qg.js +63 -0
- package/dist/cli.js +82 -81
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +0 -1
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
- package/build/client/_app/immutable/chunks/0emaOfOx.js +0 -7
- package/build/client/_app/immutable/chunks/0emaOfOx.js.br +0 -0
- package/build/client/_app/immutable/chunks/0emaOfOx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AATz5Vtc.js +0 -7
- package/build/client/_app/immutable/chunks/AATz5Vtc.js.br +0 -0
- package/build/client/_app/immutable/chunks/AATz5Vtc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B0ZphyID.js +0 -3
- package/build/client/_app/immutable/chunks/B0ZphyID.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0ZphyID.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BC_XNeHe.js +0 -1
- package/build/client/_app/immutable/chunks/BC_XNeHe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BC_XNeHe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPz1qeSs.js +0 -1
- package/build/client/_app/immutable/chunks/BPz1qeSs.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPz1qeSs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js +0 -1
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUI64CqJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYQm-VHb.js +0 -6
- package/build/client/_app/immutable/chunks/BYQm-VHb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYQm-VHb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_GB-3Er.js +0 -1
- package/build/client/_app/immutable/chunks/B_GB-3Er.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_GB-3Er.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js +0 -1
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bb5KMHGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgPPmbbW.js +0 -1
- package/build/client/_app/immutable/chunks/BgPPmbbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgPPmbbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnWhj1AH.js +0 -2
- package/build/client/_app/immutable/chunks/BnWhj1AH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnWhj1AH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrB0U8Br.js +0 -1
- package/build/client/_app/immutable/chunks/BrB0U8Br.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrB0U8Br.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJfafoqX.js +0 -1
- package/build/client/_app/immutable/chunks/CJfafoqX.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJfafoqX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js +0 -1
- package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRG7D48i.js +0 -2
- package/build/client/_app/immutable/chunks/CRG7D48i.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRG7D48i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js +0 -2
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUWvH_Vt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjDEH2t9.js +0 -1
- package/build/client/_app/immutable/chunks/CjDEH2t9.js.br +0 -2
- package/build/client/_app/immutable/chunks/CjDEH2t9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjSftIOB.js +0 -6
- package/build/client/_app/immutable/chunks/CjSftIOB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjSftIOB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpMvc8EL.js +0 -3
- package/build/client/_app/immutable/chunks/CpMvc8EL.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpMvc8EL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2pY9EPU.js +0 -1
- package/build/client/_app/immutable/chunks/D2pY9EPU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2pY9EPU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js +0 -1
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DI6U75Wo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js +0 -1
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNA9TJ3s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js +0 -5
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTpgmq3M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Do9MI93T.js +0 -8
- package/build/client/_app/immutable/chunks/Do9MI93T.js.br +0 -0
- package/build/client/_app/immutable/chunks/Do9MI93T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Fr_QipqL.js +0 -3
- package/build/client/_app/immutable/chunks/Fr_QipqL.js.br +0 -0
- package/build/client/_app/immutable/chunks/Fr_QipqL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js +0 -4
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/K8k-G-JQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js +0 -1
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jQN7UPrf.js +0 -1
- package/build/client/_app/immutable/chunks/jQN7UPrf.js.br +0 -0
- package/build/client/_app/immutable/chunks/jQN7UPrf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m9V6PYwh.js +0 -1
- package/build/client/_app/immutable/chunks/m9V6PYwh.js.br +0 -0
- package/build/client/_app/immutable/chunks/m9V6PYwh.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B9en0bhu.js +0 -2
- package/build/client/_app/immutable/entry/app.B9en0bhu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B9en0bhu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js +0 -1
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C2j_2z1u.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js +0 -9
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js +0 -1
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js +0 -9
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.o5Se6edN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js +0 -2
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js +0 -6
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BChGCUWY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js +0 -1
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.B-f98he1.js +0 -10
- package/build/client/_app/immutable/nodes/14.B-f98he1.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.B-f98he1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js +0 -1
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js +0 -3
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js +0 -1
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js +0 -14
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js +0 -150
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js +0 -40
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js +0 -25
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js +0 -5
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js +0 -18
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.B1LeXopM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js +0 -4
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js +0 -6
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CugI13rk.js +0 -8
- package/build/client/_app/immutable/nodes/27.CugI13rk.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CugI13rk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js +0 -2
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BAkIuprz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js +0 -5
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js +0 -2
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js +0 -4
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js +0 -3
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js +0 -7
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js +0 -2
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js +0 -4
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.YeJA6wco.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js +0 -7
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js +0 -6
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.gdjsdStK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js +0 -23
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js +0 -1
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js.br +0 -1
- package/build/client/_app/immutable/nodes/38.DkRJewhg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js +0 -5
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js +0 -6
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js +0 -1
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BT_2Zols.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js +0 -3
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js +0 -10
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.gz +0 -0
- package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +0 -246
- package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +0 -78
- package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +0 -581
- package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +0 -864
- package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +0 -3015
- package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +0 -194
- package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +0 -417
- package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +0 -311
- package/build/server/chunks/chunks/detail.js-DzX_zEkI.js +0 -149
- package/build/server/chunks/chunks/features.js-B2GRQeLG.js +0 -181
- package/build/server/chunks/chunks/feedback.js-BmnlQB1X.js +0 -67
- package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +0 -20
- package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +0 -222
- package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +0 -567
- package/build/server/chunks/chunks/internal.js-Bwnrl13Q.js +0 -151
- package/build/server/chunks/chunks/marketplace-service.js-BwjByFH7.js +0 -557
- package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +0 -119
- package/build/server/chunks/chunks/package.js-BWopDYsw.js +0 -160
- package/build/server/chunks/chunks/page.js-C9qsE1U6.js +0 -13
- package/build/server/chunks/chunks/previewhelper2.js-Bro5Kyoe.js +0 -210
- package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +0 -33
- package/build/server/chunks/chunks/runtime.js-B79JnWK2.js +0 -25642
- package/build/server/chunks/chunks/scribe.js-Dwxy2NkA.js +0 -1376
- package/build/server/chunks/chunks/service.js-rmCdUjBa.js +0 -1339
- package/build/server/chunks/chunks/service2.js-CuVjzjMp.js +0 -835
- package/build/server/chunks/chunks/service3.js-B_AwjFXe.js +0 -234
- package/build/server/chunks/chunks/sessions.js-DGHSwMvs.js +0 -519
- package/build/server/chunks/chunks/settings.js-84gUkx7e.js +0 -379
- package/build/server/chunks/chunks/starter.js-Bk0e4tp1.js +0 -400
- package/build/server/chunks/chunks/store.js-m6116Gee.js +0 -332
- package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +0 -450
- package/build/server/chunks/chunks/tools.js-B9Uzu0OB.js +0 -156
- package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +0 -107
- package/build/server/chunks/chunks/view.js-CdbC9u-X.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSbkbcih.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Cuh4l5cX.js +0 -111
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CxqjNz9K.js +0 -59
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BOkqzAso.js +0 -75
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-DqWeZDnx.js +0 -79
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Dp6d92o1.js +0 -154
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +0 -56
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-sHIaJYuD.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DVLiAZXm.js +0 -107
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-bcOD-UAG.js +0 -83
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-XIdGfksa.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dvo2WaVg.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BFzvnUDG.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CZFPUyv7.js +0 -67
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-xwvYiN0P.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-R8e7z94R.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BgE6HXps.js +0 -115
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CXfwTb-v.js +0 -76
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DqS1e_EW.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-jf8PJ-20.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Cm3ek5GT.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dxmd5sWA.js +0 -58
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DdE-9v71.js +0 -58
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-uZjy2F7t.js +0 -85
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DY1h0w69.js +0 -83
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C2OsWqIH.js +0 -76
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-8DtekGgO.js +0 -168
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Ba_gA_kn.js +0 -58
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-knOqja0e.js +0 -87
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Dk_70OY8.js +0 -68
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CMCc7usd.js +0 -23
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-BnIiNLLM.js +0 -26
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-58SJEI-H.js +0 -96
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +0 -69
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-DpVQ0-gU.js +0 -118
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CDCEHZ2F.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-bXndbXtD.js +0 -93
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-GqjxRGNr.js +0 -82
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BIcthzJl.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CDsa251C.js +0 -74
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BXha7rBL.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-CglpfA_i.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DY6GpUvU.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CezMnMxX.js +0 -58
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-n8aIgwiW.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Brc3Rir_.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-D_PpU_IB.js +0 -63
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-wdUFeQpc.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CUvFLTtL.js +0 -69
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-Di-7UkP0.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-GNyM42L2.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-RsBtJkWF.js +0 -81
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-TUH5OYFz.js +0 -63
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Bl5DdXd_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8gJ1LMd2.js +0 -84
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-lfPXl0y_.js +0 -71
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-wnnWrfJX.js +0 -94
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B2MBCiL5.js +0 -77
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-C55ehr6a.js +0 -473
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BH29IQL1.js +0 -88
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D-isqamt.js +0 -67
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CQIibVRV.js +0 -77
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Cw9ILP_Q.js +0 -137
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BWgNfggv.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DsKFgPLd.js +0 -80
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CAU01lOe.js +0 -66
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BtLUIQuT.js +0 -69
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTQDnPYZ.js +0 -63
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-KEGfpYIz.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-COkOxJYB.js +0 -109
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DVL8enNe.js +0 -75
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B31-eql9.js +0 -104
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DlNfcbxs.js +0 -123
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-xItkzpp3.js +0 -77
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-V8xFvJTX.js +0 -80
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DDRIjDs2.js +0 -81
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-CPKTJr6D.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BtxwuwK2.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-Bl6WY6lX.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-BvEexih3.js +0 -93
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-Cpw5TIJt.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BtiKFkKo.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-Bd8mHvHa.js +0 -27
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DceVA1-i.js +0 -82
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DlIQzyEF.js +0 -62
- package/build/server/chunks/entries/hooks.server.js-DrCOEIuz.js +0 -104
- package/build/server/chunks/entries/pages/_layout.server.ts.js-RXTNXalN.js +0 -54
- package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +0 -6028
- package/build/server/chunks/entries/pages/_page.server.ts.js-CNkzwH65.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +0 -5810
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +0 -115
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-C0FE960w.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-zZ9qO_dt.js +0 -16
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +0 -93
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-DKnSppph.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Git6SUxW.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-CF0wP4Jt.js +0 -16
- package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +0 -517
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DMrngf0O.js +0 -18
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +0 -653
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-B4GqGgPh.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-DIXpFWB4.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CErk9FDM.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-b1Pl3BCW.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BWXtnM6f.js +0 -15
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-COOUFJWd.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-BF6kG2B5.js +0 -18
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-B6uTAGl9.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-STPv_aQR.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BQJtnh5-.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-V4uJeIzJ.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DlHvnbaR.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DD6EulII.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BdlfVJUR.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-D024t04u.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-CqU-yzLn.js +0 -15
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bl3_Glym.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D1YzGPKz.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +0 -112
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BXQ0X1ko.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-CzXN68NU.js +0 -11
- package/build/server/chunks/handler-Bn1fUv6B.js +0 -1474
- package/build/server/chunks/index.js-Mx2dDARn.js +0 -4296
- package/build/server/chunks/manifest.js-B-YEp54X.js +0 -969
- package/build/server/chunks/nodes/0.js-BUBiSzRS.js +0 -66
- package/build/server/chunks/nodes/1.js-BLJ7Klm0.js +0 -9
- package/build/server/chunks/nodes/10.js-CtrWc2wn.js +0 -65
- package/build/server/chunks/nodes/11.js-DJ3Gaern.js +0 -64
- package/build/server/chunks/nodes/12.js-pLEUUewd.js +0 -12
- package/build/server/chunks/nodes/13.js-hX0iR3ZH.js +0 -9
- package/build/server/chunks/nodes/14.js-CGtz8B7y.js +0 -9
- package/build/server/chunks/nodes/15.js-8RVQO15R.js +0 -63
- package/build/server/chunks/nodes/16.js-D7bYd07V.js +0 -66
- package/build/server/chunks/nodes/17.js-DhdPdpU0.js +0 -64
- package/build/server/chunks/nodes/18.js-B0V_uhB9.js +0 -65
- package/build/server/chunks/nodes/19.js-CmWOSZcm.js +0 -64
- package/build/server/chunks/nodes/2.js-CLB-XV4H.js +0 -63
- package/build/server/chunks/nodes/20.js-Bv8mf2k9.js +0 -24
- package/build/server/chunks/nodes/21.js-Cj-sht45.js +0 -25
- package/build/server/chunks/nodes/22.js-BMWD13bW.js +0 -9
- package/build/server/chunks/nodes/23.js-BFPu5J7m.js +0 -25
- package/build/server/chunks/nodes/24.js-DmRx7lma.js +0 -63
- package/build/server/chunks/nodes/26.js-BzmxsP0K.js +0 -64
- package/build/server/chunks/nodes/27.js-BOBLm3Xv.js +0 -63
- package/build/server/chunks/nodes/28.js--5lcdSOl.js +0 -25
- package/build/server/chunks/nodes/29.js-BpFLyOWJ.js +0 -63
- package/build/server/chunks/nodes/3.js-B93UtyJs.js +0 -9
- package/build/server/chunks/nodes/30.js-B4DJpQXi.js +0 -24
- package/build/server/chunks/nodes/31.js-DOOOaYTt.js +0 -22
- package/build/server/chunks/nodes/32.js-BY7fFTcK.js +0 -63
- package/build/server/chunks/nodes/33.js-3D_1qIJ2.js +0 -66
- package/build/server/chunks/nodes/34.js-BYRFhIDN.js +0 -65
- package/build/server/chunks/nodes/35.js-CfsTfMZd.js +0 -26
- package/build/server/chunks/nodes/36.js-BLSBbLWX.js +0 -65
- package/build/server/chunks/nodes/37.js-D97cum02.js +0 -67
- package/build/server/chunks/nodes/38.js-DmCNtoo5.js +0 -64
- package/build/server/chunks/nodes/39.js-zevF1xrn.js +0 -64
- package/build/server/chunks/nodes/4.js-DkEAmKO9.js +0 -64
- package/build/server/chunks/nodes/40.js-9ki1tEOB.js +0 -63
- package/build/server/chunks/nodes/5.js-0Xrkj28g.js +0 -63
- package/build/server/chunks/nodes/7.js-BwbHOQcn.js +0 -63
- package/build/server/chunks/nodes/8.js-3pWfDfVU.js +0 -14
- package/build/server/chunks/nodes/9.js-BgyqCMp-.js +0 -63
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as vt,y as ze,f as T,g as e,a as n,b as mt,h as R,e as f,r as d,n as $,c,i as q,m as k,u as Ke,P as Xe,o as w,s as o,t as D,A as Fe,aA as Wt}from"./CEfkcOME.js";import{d as $t,s as h,e as Qe,a as Oe}from"./CPPNfCxh.js";import{i as A}from"./D4ikcNuh.js";import{e as Ve,s as N,d as Ht}from"./BMjXQSgN.js";import{h as Yt,m as Ut}from"./CJsvF1Ay.js";import{c as ue}from"./CGbw525c.js";import{b as Jt}from"./B6yYMcjx.js";import{b as jt}from"./DKCbih8n.js";import{s as Ae,r as Ne}from"./D42BPZCD.js";import{k as Bt}from"./nqsqhzVw.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./DMtBybVn.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./D4Okmn3b.js";import{D as Vt}from"./Sv3hh1sg.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./BxKmcvUJ.js";import{A as is}from"./pSy419OZ.js";import{C as ns}from"./N3-89cl-.js";import{p as os}from"./MoV8bfgL.js";import{i as tt}from"./CLuz13qg.js";import{l as ls}from"./DFoNnxZy.js";import{C as ds}from"./BftdAJED.js";import{L as Me}from"./BMEfZRmb.js";import{X as cs}from"./C6E-ekUK.js";import{C as us}from"./uFR0qOc6.js";import{I as Te}from"./DBuj1e9B.js";import{C as vs}from"./D6J6SKJa.js";import{R as ms}from"./RKJLUbAQ.js";import{S as st}from"./61tb7Ymv.js";import{A as fs}from"./BicHgQHF.js";import{P as at}from"./B0CcXh2k.js";import{P as rt}from"./C0oq3sur.js";var ps=new Set(["$$slots","$$events","$$legacy"]);function it(C,s){let i=Ne(s,ps);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};Te(C,Ae(()=>i,{get icon(){return v}}))}var hs=new Set(["$$slots","$$events","$$legacy"]);function _s(C,s){let i=Ne(s,hs);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};Te(C,Ae(()=>i,{get icon(){return v}}))}var gs=new Set(["$$slots","$$events","$$legacy"]);function xs(C,s){let i=Ne(s,gs);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};Te(C,Ae(()=>i,{get icon(){return v}}))}var ks=c('<div class="mt-5" data-task-decisions=""><!></div>'),ys=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
|
|
2
|
+
which passes it on to the crew.</p>`);function ws(C,s){vt(s,!0);const i=R(()=>os.data.inbox),v=R(()=>tt.forTask(s.task.id,e(i),ls.now).length>0),b=R(()=>!e(v)&&s.task.attention?.kind==="decision"&&tt.hasDecision(s.task.id,e(i)));var Q=ze(),le=T(Q);{var Z=y=>{var F=ks(),V=f(F);{let G=R(()=>({taskId:s.task.id}));Xt(V,{get filter(){return e(G)}})}d(F),n(y,F)},we=y=>{var F=ys(),V=f(F);ds(V,{class:"size-4 shrink-0 text-success","aria-hidden":"true"}),$(),d(F),n(y,F)};A(le,y=>{e(v)?y(Z):e(b)&&y(we,1)})}n(C,Q),mt()}function bs(C){return!C.id.includes("@")&&!C.secondMate&&!["queued","done","landed","closed"].includes(C.status)}const Ss=/(?:instruction|operational input) waiting\b/i;function nt(C,s,i,v=!1){const b=[];for(const y of C)y.kind==="user"?Ss.test(y.text)||b.push({kind:"firstmate",at:y.at,item:y}):b.push({kind:"worker",at:y.at,item:y});let Q=0;if(!v){const y=b.findIndex(G=>G.at>=i),F=y<0?b.length:y,V=b.findLastIndex((G,H)=>H<F&&G.kind==="worker");Q=V>=0?V:F}const le=b.slice(Q),Z=s.map(y=>({kind:"captain",at:y.at,message:y}));return{entries:[...le,...Z].sort((y,F)=>y.at<F.at?-1:y.at>F.at?1:0),earlier:Q}}const Pe=6e3;async function ft(C,s,i,v={}){try{const b=await fetch(C,{method:"POST",headers:{"content-type":"application/json",[Gt]:s,...v},body:JSON.stringify(i)});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>null))?.message??`Wheelhouse answered ${b.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const ot=(C,s,i)=>ft("/api/crew",i,{taskId:C,action:s}),Ds=(C,s,i,v,b=crypto.randomUUID())=>ft("/api/crew/messages",v,{taskId:C,kind:s,text:i},{"idempotency-key":b});class Ps{constructor(s){this.taskId=s}taskId;#e=q(null);get session(){return e(this.#e)}set session(s){k(this.#e,s,!0)}#t=q(null);get source(){return e(this.#t)}set source(s){k(this.#t,s,!0)}#s=q([]);get records(){return e(this.#s)}set records(s){k(this.#s,s)}#a=q("connecting");get connection(){return e(this.#a)}set connection(s){k(this.#a,s,!0)}#r=q(!1);get synced(){return e(this.#r)}set synced(s){k(this.#r,s,!0)}#i=R(()=>Bt(this.records));get chat(){return e(this.#i)}set chat(s){k(this.#i,s)}#n=R(()=>{const s=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||s?.kind==="turn"&&!s.done});get working(){return e(this.#n)}set working(s){k(this.#n,s)}connect(){this.synced=!1;const s=i=>{i.addEventListener("session",v=>{this.session=JSON.parse(v.data)}),i.addEventListener("reset",v=>{this.source=JSON.parse(v.data),this.records=[]}),i.addEventListener("records",v=>{const b=[...this.records,...JSON.parse(v.data)];this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("replace",v=>{const b=JSON.parse(v.data);this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("synced",()=>this.synced=!0)};return Kt(`/api/tasks/${encodeURIComponent(this.taskId)}/chat`,s,i=>this.connection=i)}}var zs=c("<!>End discussion",1),As=c('<span class="text-xs text-muted-foreground">Read-only</span>'),Cs=c(`<p class="crew-banner svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Sidebar</span> <span>You’re talking to <b> </b> directly. It can answer you here, and Firstmate gets a note of
|
|
3
|
+
each message.</span></p>`),Es=c('<p class="crew-banner crew-banner-read svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Read-only</span> <span> </span></p>'),Is=c('<p class="crew-banner crew-banner-paused svelte-1f8gn6y" role="status"><span class="crew-tag svelte-1f8gn6y">Paused</span><span> </span></p>'),Ls=c('<div class="-mt-5"><!></div>'),lt=c('<p class="mt-4 rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground" role="status"> </p>'),Rs=c('<button class="mx-auto mt-4 block cursor-pointer text-sm text-sea hover:underline" data-show-earlier=""> </button>'),Fs=c('<div class="bubble-row"><div class="bubble bubble-captain"> </div></div>'),Os=c('<p class="flex items-center gap-1.5 text-sm text-muted-foreground"><!> </p>'),Ms=c('<button class="inline-flex cursor-pointer items-center gap-1 font-sans font-medium hover:underline"><!>Send again</button>'),dt=c("<span> </span>"),Ns=c('<article class="msg msg-captain"><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="crew-tag svelte-1f8gn6y">Sidebar</span><time> </time></header> <!> <p><!> <span> </span> <!></p></div></article>'),Ts=c('<details class="crew-note svelte-1f8gn6y"><summary class="svelte-1f8gn6y">Typed into its session · <time> </time></summary> <p class="mt-2 whitespace-pre-wrap"> </p></details>'),qs=c('<div class="bubble-row"><div class="chat-md bubble bubble-firstmate"></div></div>'),Ws=c('<p class="rounded-lg border px-4 py-3 text-sm"> <span class="text-muted-foreground">Answer in its terminal, or tell it here.</span></p>'),$s=c('<article class="msg msg-firstmate"><span class="mate-avatar msg-avatar svelte-1f8gn6y" aria-hidden="true"> </span> <div class="flex min-w-0 flex-1 flex-col gap-2"><header class="msg-head"><span class="msg-name font-mono"> </span><!><time> </time></header> <!></div></article>'),Hs=c('<pre class="no-scrollbar max-h-60 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground"> </pre>'),Ys=c('<p class="text-xs text-muted-foreground"> </p>'),Us=c(`<div class="border-t px-4 py-3 sm:px-5" data-discussion-terminal=""><p class="mb-2 flex items-center gap-2 text-xs text-muted-foreground"><!>Its terminal, read-only. Type to it
|
|
4
|
+
here, not there: what you send goes through its inbox.</p> <!></div>`),Js=c("<!>Chat with crew",1),ct=c('<p class="mt-1 text-sm text-danger" role="alert"> </p>'),ut=c("<!> <!>",1),js=c('<p class="text-sm text-danger" role="alert"> </p>'),Bs=c("<!>Start the discussion",1),Gs=c("<!> <!> <!>",1),Ks=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="flex items-center gap-3 rounded-xl border border-dashed bg-muted/40 py-2 pr-2 pl-4" data-chat-locked=""><span class="flex-1 text-muted-foreground/80">Read-only · talk to Firstmate about this task, or</span> <!></div> <p class="mt-1.5 text-xs text-muted-foreground"> </p> <!></div> <!>',1),Xs=c("<!>Ask for status",1),Qs=c("<!>Resume",1),Vs=c("<!>Pause after this step",1),Zs=c("<!> ",1),ea=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="mb-2 flex flex-wrap gap-2"><!> <!> <!></div> <form class="flex items-end gap-2 rounded-xl border bg-card px-3 py-2 focus-within:ring-3 focus-within:ring-ring/50"><textarea class="field-sizing-content max-h-48 min-h-10 flex-1 resize-none bg-transparent py-1.5 outline-none placeholder:text-muted-foreground" data-discussion-input=""></textarea> <!></form> <p class="mt-1.5 text-xs text-muted-foreground">Goes to its inbox as yours; Firstmate gets a note.</p> <!></div>'),ta=c('<section class="flex h-full min-h-0 flex-col"><header class="flex flex-wrap items-center gap-x-3 gap-y-2 border-b px-4 py-3 sm:px-5"><span class="mate-avatar" aria-hidden="true"> </span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2"><a class="font-mono text-sm font-semibold hover:underline"> </a> <span class="truncate text-sm text-muted-foreground"> </span></p> <p class="text-xs text-muted-foreground"> </p></div> <!></header> <!> <!> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-5" aria-live="polite" data-discussion-feed=""><!> <!> <!> <div class="mt-5 flex flex-col gap-6"></div></div> <!> <!></section>');function Na(C,s){vt(s,!0);const i=R(()=>s.taskId);let v=q(null);Ke(()=>{const t=new Ps(e(i));k(v,t,!0);const a=t.connect();return()=>{a(),k(v,null)}});let b=q(!1);const Q=60;let le=q(Q);const Z=R(()=>{if(s.discussion)return nt(e(v)?.chat.items??[],s.discussion.messages,s.discussion.openedAt,e(b));const{entries:t}=nt(e(v)?.chat.items??[],[],"",!0),a=Math.max(0,t.length-e(le));return{entries:t.slice(a),earlier:a}}),we=()=>s.discussion?k(b,!0):k(le,e(le)+Q),y=R(()=>s.task?s.task.secondMate||s.task.id.includes("@")?"Chatting with a second mate’s worker comes later.":bs(s.task)?null:"Its worker is not at work.":"Its task has left the fleet."),F=R(()=>e(v)?.session?.harness??s.task?.worker?.harness??null),V=R(()=>e(F)?Qt[e(F)]??e(F):null);let G=q(""),H=q(null),be=q(!1),he=q(!1),Se=q(!1),De=q(!1);async function pt(){k(De,!0),k(H,null);const t=await ot(e(i),"open",s.token);k(De,!1),t.ok?k(Se,!1):k(H,t.error,!0)}async function _e(t,a="",m){k(H,null);const P=await Ds(e(i),t,a,s.token,m);P.ok||k(H,P.error,!0)}function qe(){const t=e(G).trim();t&&(k(G,""),_e("say",t),Xe().then(()=>$e(!0)))}function ht(t){t.key==="Enter"&&!t.shiftKey&&!t.isComposing&&(t.preventDefault(),qe())}async function _t(){k(be,!0);const t=await ot(e(i),"close",s.token);k(be,!1),t.ok?s.onended?.():k(H,t.error,!0)}let ee=q(null),We=!0;function $e(t=!1){e(ee)&&(t||We)&&(e(ee).scrollTop=e(ee).scrollHeight)}Ke(()=>{e(Z).entries.length,e(v)?.records.length,Xe().then(()=>$e())});const gt=t=>t.delivery==="sending"?"Sending":t.delivery==="failed"?t.error??"Not delivered":t.seen?`Seen by ${e(i)}`:"In its inbox",xt={status:"Asked for status",pause:"Asked to pause",resume:"Asked to resume"};var ve=ta(),Ce=f(ve),Ee=f(Ce),kt=w(Ee,!0),Ie=o(Ee,2),Le=f(Ie),Re=f(Le),yt=w(Re,!0),wt=o(Re,2),bt=w(wt,!0);d(Le);var St=o(Le,2),Dt=w(St);d(Ie);var Pt=o(Ie,2);{var zt=t=>{re(t,{variant:"outline",size:"sm",onclick:_t,get disabled(){return e(be)},"data-end-discussion":!0,children:(a,m)=>{var P=zs(),U=T(P);{var ie=J=>{Me(J,{class:"animate-spin"})},de=J=>{cs(J,{})};A(U,J=>{e(be)?J(ie):J(de,-1)})}$(),n(a,P)},$$slots:{default:!0}})},At=t=>{var a=As();n(t,a)};A(Pt,t=>{s.discussion?t(zt):t(At,-1)})}d(Ce);var He=o(Ce,2);{var Ct=t=>{var a=Cs(),m=o(f(a),2),P=o(f(m)),U=w(P,!0);$(),d(m),d(a),D(()=>h(U,e(i))),n(t,a)},Et=t=>{var a=Es(),m=o(f(a),2),P=w(m);d(a),D(()=>h(P,`${e(i)??""}’s own conversation. You’re watching; Firstmate steers it.`)),n(t,a)};A(He,t=>{s.discussion?t(Ct):t(Et,-1)})}var Ye=o(He,2);{var It=t=>{var a=Is(),m=o(f(a)),P=w(m);d(a),D(()=>h(P,`You asked ${e(i)??""} to stop after its current step. It waits until you resume it.`)),n(t,a)};A(Ye,t=>{s.discussion?.paused&&t(It)})}var ge=o(Ye,2),Ue=f(ge);{var Lt=t=>{var a=Ls(),m=f(a);ws(m,{get task(){return s.task}}),d(a),n(t,a)};A(Ue,t=>{s.task&&s.discussion&&t(Lt)})}var Je=o(Ue,2);{var Rt=t=>{var a=lt(),m=w(a,!0);D(()=>h(m,e(v).session.reason)),n(t,a)},Ft=t=>{var a=lt(),m=w(a);D(()=>h(m,`Wheelhouse has not found ${e(i)??""}’s conversation yet.${s.discussion?" What you send still reaches it.":""}`)),n(t,a)};A(Je,t=>{e(v)?.session?.reason?t(Rt):e(v)?.synced&&!e(v).source&&t(Ft,1)})}var je=o(Je,2);{var Ot=t=>{var a=Rs(),m=w(a);D(()=>h(m,`Show its earlier work (${e(Z).earlier??""})`)),Oe("click",a,we),n(t,a)};A(je,t=>{e(Z).earlier&&t(Ot)})}var Be=o(je,2);Ve(Be,23,()=>e(Z).entries,(t,a)=>t.kind==="captain"?`c-${t.message.id}`:`${t.kind}-${t.item.id}-${a}`,(t,a,m)=>{var P=ze(),U=T(P);{var ie=p=>{const r=R(()=>e(a).message);var g=Ns(),O=o(f(g),2),l=f(O),z=o(f(l)),L=w(z,!0);d(l);var I=o(l,2);{var j=u=>{var x=Fs(),_=f(x),S=w(_,!0);d(x),D(()=>h(S,e(r).text)),n(u,x)},ce=u=>{var x=Os(),_=f(x);{var S=X=>{at(X,{class:"size-3.5","aria-hidden":"true"})},K=X=>{rt(X,{class:"size-3.5","aria-hidden":"true"})},W=X=>{it(X,{class:"size-3.5","aria-hidden":"true"})};A(_,X=>{e(r).kind==="pause"?X(S):e(r).kind==="resume"?X(K,1):X(W,-1)})}var fe=o(_,1,!0);d(x),D(()=>h(fe,xt[e(r).kind])),n(u,x)};A(I,u=>{e(r).kind==="say"?u(j):u(ce,-1)})}var te=o(I,2),oe=f(te);{var me=u=>{Me(u,{class:"size-3 animate-spin","aria-hidden":"true"})},ke=u=>{us(u,{class:"size-3","aria-hidden":"true"})},Y=u=>{_s(u,{class:"size-3 text-success","aria-hidden":"true"})},E=u=>{vs(u,{class:"size-3","aria-hidden":"true"})};A(oe,u=>{e(r).delivery==="sending"?u(me):e(r).delivery==="failed"?u(ke,1):e(r).seen?u(Y,2):u(E,-1)})}var M=o(oe,2),B=w(M,!0),ye=o(M,2);{var se=u=>{var x=Ms(),_=f(x);ms(_,{class:"size-3","aria-hidden":"true"}),$(),d(x),Oe("click",x,()=>_e(e(r).kind,e(r).text,e(r).id)),n(u,x)},ae=u=>{var x=dt(),_=w(x);D(()=>h(_,`· ${e(r).told==="sent"?"Firstmate told":e(r).told==="sending"?"telling Firstmate":e(r).told==="off"?"Firstmate not told (messaging is off)":"Firstmate could not be told"}`)),n(u,x)};A(ye,u=>{e(r).delivery==="failed"?u(se):e(r).delivery==="sent"&&u(ae,1)})}d(te),d(O),d(g),D((u,x,_)=>{N(g,"aria-label",`You, ${u??""}`),N(g,"data-crew-message",e(r).id),N(z,"datetime",e(r).at),h(L,x),Ht(te,1,`mt-1 flex flex-wrap items-center justify-end gap-x-2 font-mono text-[0.72rem] ${e(r).delivery==="failed"?"text-danger":"text-muted-foreground"}`),N(te,"data-receipt",e(r).delivery==="sent"?e(r).seen?"seen":"sent":e(r).delivery),h(B,_)},[()=>pe(e(r).at),()=>pe(e(r).at),()=>gt(e(r))]),n(p,g)},de=p=>{var r=Ts(),g=f(r),O=o(f(g)),l=w(O,!0);d(g);var z=o(g,2),L=w(z,!0);d(r),D(I=>{N(O,"datetime",e(a).at),h(l,I),h(L,e(a).item.text)},[()=>pe(e(a).at)]),n(p,r)},J=p=>{const r=R(()=>e(a).item);var g=$s(),O=f(g),l=w(O,!0),z=o(O,2),L=f(z),I=f(L),j=w(I,!0),ce=o(I);{var te=Y=>{var E=dt(),M=w(E,!0);D(()=>h(M,e(V))),n(Y,E)};A(ce,Y=>{e(V)&&Y(te)})}var oe=o(ce),me=w(oe,!0);d(L);var ke=o(L,2);Ve(ke,19,()=>e(r).parts,Y=>Y.id,(Y,E,M)=>{var B=ze(),ye=T(B);{var se=_=>{var S=qs(),K=f(S);Yt(K,()=>Ut(e(E).text),!0),d(K),d(S),n(_,S)},ae=R(()=>e(E).kind==="text"&&e(E).text.trim()),u=_=>{{let S=R(()=>!e(r).done&&e(M)===e(r).parts.length-1&&e(m)===e(Z).entries.length-1);is(_,{get steps(){return e(E).steps},get live(){return e(S)}})}},x=_=>{var S=Ws(),K=f(S);$(),d(S),D(W=>h(K,`It asked in its session: ${W??""} `),[()=>e(E).questions.map(W=>W.question).join(" ")]),n(_,S)};A(ye,_=>{e(ae)?_(se):e(E).kind==="activity"?_(u,1):e(E).kind==="question"&&_(x,2)})}n(Y,B)}),d(z),d(g),D((Y,E,M,B)=>{N(g,"aria-label",`${e(i)??""}, ${Y??""}`),N(O,"data-hue",E),h(l,M),h(j,e(i)),N(oe,"datetime",e(r).at),h(me,B)},[()=>pe(e(r).at),()=>Ze(e(i)),()=>et(e(i)),()=>pe(e(r).at)]),n(p,g)},xe=p=>{var r=Hs(),g=w(r,!0);D(()=>h(g,e(a).item.text)),n(p,r)},ne=p=>{var r=Ys(),g=w(r);D(O=>h(g,`${e(a).item.title??""} · ${O??""}`),[()=>pe(e(a).item.at)]),n(p,r)};A(U,p=>{e(a).kind==="captain"?p(ie):e(a).kind==="firstmate"?p(de,1):e(a).item.kind==="turn"?p(J,2):e(a).item.kind==="output"?p(xe,3):e(a).item.kind==="notice"&&p(ne,4)})}n(t,P)}),d(Be),d(ge),jt(ge,t=>k(ee,t),()=>e(ee));var Ge=o(ge,2);{var Mt=t=>{var a=Us(),m=f(a),P=f(m);st(P,{class:"size-3.5","aria-hidden":"true"}),$(),d(m);var U=o(m,2);ns(U,{get task(){return s.task},lines:16}),d(a),n(t,a)};A(Ge,t=>{e(he)&&s.task&&t(Mt)})}var Nt=o(Ge,2);{var Tt=t=>{var a=Ks(),m=T(a),P=f(m),U=o(f(P),2);{let p=R(()=>!!e(y)),r=R(()=>e(y)??void 0);re(U,{variant:"outline",size:"sm",get disabled(){return e(p)},get title(){return e(r)},onclick:()=>k(Se,!0),"data-chat-with-crew":!0,children:(g,O)=>{var l=Js(),z=T(l);xs(z,{}),$(),n(g,l)},$$slots:{default:!0}})}d(P);var ie=o(P,2),de=w(ie,!0),J=o(ie,2);{var xe=p=>{var r=ct(),g=w(r,!0);D(()=>h(g,e(H))),n(p,r)};A(J,p=>{e(H)&&p(xe)})}d(m);var ne=o(m,2);ue(ne,()=>rs,(p,r)=>{r(p,{get open(){return e(Se)},set open(g){k(Se,g,!0)},children:(g,O)=>{var l=ze(),z=T(l);ue(z,()=>Zt,(L,I)=>{I(L,{class:"sm:max-w-md",children:(j,ce)=>{var te=Gs(),oe=T(te);ue(oe,()=>es,(E,M)=>{M(E,{children:(B,ye)=>{var se=ut(),ae=T(se);ue(ae,()=>ts,(x,_)=>{_(x,{class:"font-display text-lg",children:(S,K)=>{$();var W=Fe();D(()=>h(W,`Talk to ${e(i)??""} directly?`)),n(S,W)},$$slots:{default:!0}})});var u=o(ae,2);ue(u,()=>ss,(x,_)=>{_(x,{children:(S,K)=>{$();var W=Fe(`You’ll message this task’s worker yourself, outside Firstmate’s usual relay. What you
|
|
5
|
+
say goes to its inbox as yours, it can answer you here, and Firstmate gets a note of
|
|
6
|
+
each message so it stays in step. End the discussion when you’re done; most of the time,
|
|
7
|
+
talk to Firstmate.`);n(S,W)},$$slots:{default:!0}})}),n(B,se)},$$slots:{default:!0}})});var me=o(oe,2);{var ke=E=>{var M=js(),B=w(M,!0);D(()=>h(B,e(H))),n(E,M)};A(me,E=>{e(H)&&E(ke)})}var Y=o(me,2);ue(Y,()=>as,(E,M)=>{M(E,{children:(B,ye)=>{var se=ut(),ae=T(se);{const x=(_,S)=>{re(_,Ae(()=>(S?.()).props,{variant:"ghost",children:(W,fe)=>{$();var X=Fe("Cancel");n(W,X)},$$slots:{default:!0}}))};ue(ae,()=>Vt,(_,S)=>{S(_,{child:x,$$slots:{child:!0}})})}var u=o(ae,2);re(u,{onclick:pt,get disabled(){return e(De)},"data-crew-confirm":!0,children:(x,_)=>{var S=Bs(),K=T(S);{var W=fe=>{Me(fe,{class:"animate-spin"})};A(K,fe=>{e(De)&&fe(W)})}$(),n(x,S)},$$slots:{default:!0}}),n(B,se)},$$slots:{default:!0}})}),n(j,te)},$$slots:{default:!0}})}),n(g,l)},$$slots:{default:!0}})}),D(()=>h(de,e(y)??"You’ll be asked to confirm first: you talk to the worker directly.")),n(t,a)},qt=t=>{var a=ea(),m=f(a),P=f(m);re(P,{variant:"outline",size:"sm",onclick:()=>_e("status"),"data-quick":"status",children:(l,z)=>{var L=Xs(),I=T(L);it(I,{}),$(),n(l,L)},$$slots:{default:!0}});var U=o(P,2);{var ie=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("resume"),"data-quick":"resume",children:(z,L)=>{var I=Qs(),j=T(I);rt(j,{}),$(),n(z,I)},$$slots:{default:!0}})},de=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("pause"),"data-quick":"pause",children:(z,L)=>{var I=Vs(),j=T(I);at(j,{}),$(),n(z,I)},$$slots:{default:!0}})};A(U,l=>{s.discussion.paused?l(ie):l(de,-1)})}var J=o(U,2);{var xe=l=>{re(l,{variant:"outline",size:"sm",get"aria-pressed"(){return e(he)},onclick:()=>k(he,!e(he)),"data-quick":"terminal",children:(z,L)=>{var I=Zs(),j=T(I);st(j,{});var ce=o(j);D(()=>h(ce,`${e(he)?"Hide":"Show"} its terminal`)),n(z,I)},$$slots:{default:!0}})};A(J,l=>{s.task&&l(xe)})}d(m);var ne=o(m,2),p=f(ne);Wt(p);var r=o(p,2);{let l=R(()=>!e(G).trim());re(r,{type:"submit",size:"icon",class:"rounded-full",get disabled(){return e(l)},"aria-label":"Send",children:(z,L)=>{fs(z,{})},$$slots:{default:!0}})}d(ne);var g=o(ne,4);{var O=l=>{var z=ct(),L=w(z,!0);D(()=>h(L,e(H))),n(l,z)};A(g,l=>{e(H)&&l(O)})}d(a),D(()=>{N(p,"placeholder",`Message ${e(i)??""} directly`),N(p,"aria-label",`Message ${e(i)??""} directly`)}),Qe("submit",ne,l=>{l.preventDefault(),qe()}),Oe("keydown",p,ht),Jt(p,()=>e(G),l=>k(G,l)),n(t,a)};A(Nt,t=>{s.discussion?t(qt,-1):t(Tt)})}d(ve),D((t,a,m)=>{N(ve,"aria-label",s.discussion?`Crew discussion with ${e(i)}`:`${e(i)}’s conversation`),N(ve,"data-discussion",s.discussion?e(i):void 0),N(ve,"data-task-chat",e(i)),N(Ee,"data-hue",t),h(kt,a),N(Re,"href",`/tasks/${m??""}`),h(yt,e(i)),h(bt,s.task?.title??s.discussion?.title??""),h(Dt,`${e(V)??"Worker"??""}${s.task?` · ${s.task.statusLabel}`:" · no longer in the fleet"}`)},[()=>Ze(e(i)),()=>et(e(i)),()=>encodeURIComponent(e(i))]),Qe("scroll",ge,()=>{e(ee)&&(We=e(ee).scrollTop+e(ee).clientHeight>=e(ee).scrollHeight-40)}),n(C,ve),mt()}$t(["click","keydown"]);export{Na as D,ws as T,xs as U};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as d,g as h,m as u,j as c}from"./CEfkcOME.js";import{p as z,S as k,f,c as E,v as x,o as A,b as I,d as R,l as T,g as _,a as q,e as L}from"./nqsqhzVw.js";import{S as y}from"./BXN538J3.js";class F{#e=d(null);get value(){return h(this.#e)}set value(e){u(this.#e,e,!0)}#t=d(c({}));get snoozed(){return h(this.#t)}set snoozed(e){u(this.#t,e,!0)}#s=d(c({}));get pending(){return h(this.#s)}set pending(e){u(this.#s,e,!0)}#i=d(c({}));get errors(){return h(this.#i)}set errors(e){u(this.#i,e,!0)}#n=d(c({}));get followed(){return h(this.#n)}set followed(e){u(this.#n,e,!0)}timer=null;loaded=!1;missed=!1;seed(e){e&&!this.value&&(this.value=e)}load(){if(!this.loaded){this.loaded=!0;try{this.snoozed=z(localStorage.getItem(k),Date.now())}catch{this.snoozed={}}}}changed(){if(typeof document<"u"&&document.hidden){this.missed=!0;return}this.refresh()}visible(){this.missed&&(this.missed=!1,this.refresh())}refresh(e=400){this.timer||(this.timer=setTimeout(async()=>{this.timer=null,await this.read()},e))}async read(){try{const e=await fetch("/api/inbox");if(!e.ok)return;const t=await e.json();this.value=t,this.followed=Object.fromEntries(Object.entries(this.followed).filter(([i,a])=>{const o=t.cards.filter(r=>f(r)===i);return o.length>0&&!o.some(r=>(r.following??null)===a)}));const n=(i,a)=>t.cards.some(o=>o.id===i&&o.question===a&&!o.sent);this.pending=Object.fromEntries(Object.entries(this.pending).filter(([i,a])=>!a.posted||n(i,a.question)))}catch{}}view(e){return this.value??e??null}cards(e){return(this.view(e)?.cards??[]).filter(t=>this.pending[t.id]?.question!==t.question).map(t=>{const n=f(t);return n in this.followed?{...t,following:E(this.followed[n],t.askedAt)}:t})}shown(e,t){return x(this.cards(t),this.snoozed,e)}open(e){return A(this.cards(),this.snoozed,e)}forTask(e,t,n=Date.now()){return this.cards(t).filter(i=>i.taskId===e&&i.kind!=="merge"&&I(i,n))}hasDecision(e,t){const n=this.view(t);return!!n?.available&&n.cards.some(i=>i.taskId===e&&i.kind!=="merge")}stampFor(e){const t=this.pending[e];return t?t.choice==="close"?"Dismissed":"Answered":(this.snoozed[e]??0)>Date.now()?"Later":null}later(e){this.snoozed={...T(this.snoozed,Date.now()),[e]:Date.now()+R},this.save()}wake(e){e&&!this.snoozed[e]||(this.snoozed=e?Object.fromEntries(Object.entries(this.snoozed).filter(([t])=>t!==e)):{},this.save())}save(){try{localStorage.setItem(k,JSON.stringify(this.snoozed))}catch{}}async follow(e,t,n){const i=f(e),a=i in this.followed?this.followed[i]:void 0;this.followed={...this.followed,[i]:t?new Date().toISOString():null};try{const o=await fetch("/api/inbox/following",{method:"POST",headers:{"content-type":"application/json",[y]:n},body:JSON.stringify({taskId:i,following:t})});if(!o.ok)throw new Error;const r=await o.json().catch(()=>null);return this.followed={...this.followed,[i]:r?.following??null},this.refresh(0),!0}catch{const{[i]:o,...r}=this.followed;return this.followed=a===void 0?r:{...r,[i]:a},!1}}complain(e,t){this.errors={...this.errors,[e]:t}}async answer(e,t,n,i,a=null,o=null){const r=t==="approve"&&e.choices&&!o?_(e.choices,a??{}):null;if(r&&!r.ok)return this.complain(e.id,r.error),!1;const{[e.id]:C,...D}=this.errors;this.errors=D;const O=o??(r?.ok?r.line:null);this.pending={...this.pending,[e.id]:{choice:t,picks:O,note:n,question:e.question,posted:!1}};const j=`inbox-${crypto.randomUUID()}`;try{const l=await fetch("/api/inbox",{method:"POST",headers:{"content-type":"application/json","idempotency-key":j,[y]:i},body:JSON.stringify({cardId:e.id,choice:t,note:n,...r?{picks:a??{}}:{},...o?{decided:o}:{}})});if(!l.ok){const N=await l.json().catch(()=>null);return this.fail(e.id,N?.message??`Wheelhouse could not send it (${l.status}).`),l.status===404&&this.refresh(0),!1}const g=await l.json().catch(()=>null);if(g?.message?.delivery==="failed")return this.fail(e.id,g.message.deliveryDetail??"Firstmate did not take the answer. Try again."),!1;const p=this.pending[e.id];p&&(this.pending={...this.pending,[e.id]:{...p,posted:!0}});const m=f(e);return(e.following||this.followed[m])&&(this.followed={...this.followed,[m]:null}),this.refresh(0),!0}catch{return this.fail(e.id,"Wheelhouse could not be reached. Try again."),!1}}fail(e,t){const{[e]:n,...i}=this.pending;this.pending=i,this.errors={...this.errors,[e]:t}}}const G=new F,H={hold:"Your call",merge:"Merge call",preview:"Preview sign-off",decision:"Decision",blocked:"Stuck",review:"Review question"},M=["hold","merge","preview","decision","blocked","review"],Y=[{id:"needs",label:"Needs you first"},{id:"oldest",label:"Waiting longest"},{id:"newest",label:"Newest"}];function b(s){return q(s)?"answered":L(s)?s.following?"following":"waiting":"firstmate"}const Z={waiting:"Waiting on you",following:"Following up in the chat",answered:"Waiting on Firstmate",firstmate:"Firstmate is handling it"},K=["waiting","following","answered","firstmate"],v=Object.fromEntries(K.map((s,e)=>[s,e])),S=s=>{const e=s.askedAt?Date.parse(s.askedAt):NaN;return Number.isNaN(e)?null:e};function w(s,e){const t=S(s),n=S(e);return t===null||n===null?t===n?0:t===null?1:-1:t-n}function P(s,e="needs"){const t=[...s];return e==="oldest"?t.sort(w):e==="newest"?t.sort((n,i)=>w(i,n)):t.sort((n,i)=>v[b(n)]-v[b(i)]||w(n,i))}const $=s=>f(s);function W(s,e){return e?!(e.taskId&&s.taskId!==e.taskId&&$(s)!==e.taskId||e.projectId&&s.projectId!==e.projectId||e.kind&&s.kind!==e.kind):!0}function Q(s,e,t=null,n="needs"){return P(s.filter(i=>I(i,e)&&W(i,t)),n)}const V=s=>`${s} ${s===1?"decision":"decisions"}`;function X(s){const e=/^\/tasks\/([^/]+)\/?$/.exec(s.pathname);if(!e)return null;let t;try{t=decodeURIComponent(e[1])}catch{return null}return t?{id:t,tab:s.searchParams.get("tab")}:null}function ee(s={},e=null){const t=new URLSearchParams;s.taskId&&t.set("task",s.taskId),s.projectId&&t.set("project",s.projectId),s.kind&&t.set("type",s.kind),e&&t.set("d",e);const n=t.toString();return n?`/inbox?${n}`:"/inbox"}export{H as K,Y as S,ee as a,P as b,W as c,V as d,M as e,Z as f,K as g,G as i,Q as o,b as s,X as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{p as nn}from"./WRwU91GU.js";import"./DsnmJJEf.js";import{a as rn,o as zt}from"./B42VotjV.js";import{i as M,j as lt,g as n,m as w,p as Ne,u as Re,e as c,s as f,r as l,t as D,a as p,b as Oe,h as _,aB as an,o as G,y as Be,f as Se,c as b,n as ve,aA as jt,z as sn,P as St,aD as on}from"./CEfkcOME.js";import{i as z}from"./D4ikcNuh.js";import{s as Ue,r as He,p as q}from"./D42BPZCD.js";import{a as ln,M as dn,C as vt,b as cn,c as un,l as fn,d as hn}from"./DLoaec-O.js";import{p as dt}from"./MoV8bfgL.js";import{d as ut,s as W,a as N,e as qt}from"./CPPNfCxh.js";import{I as Je,t as vn}from"./DBuj1e9B.js";import{d as Ee,s as R,k as pn,h as pt,j as mn,e as it,f as gn,r as bn,c as xn}from"./BMjXQSgN.js";import{b as Xe}from"./DKCbih8n.js";import{z as wn}from"./Z0GxSwEl.js";import{a as Ft,f as _n}from"./D8swcNrI.js";import{c as kn}from"./DFoNnxZy.js";import{p as ot}from"./BLcrDXJf.js";import{k as yn}from"./D5xbT1cY.js";import{b as Tt,M as Et}from"./B_GuTGoj.js";import{R as Wt}from"./RKJLUbAQ.js";import{E as Bt}from"./BexGUSY7.js";import{h as zn,m as Cn}from"./CJsvF1Ay.js";import{b as Ut}from"./B6yYMcjx.js";import{s as Sn}from"./B6OgCkTR.js";import{S as Tn}from"./BXN538J3.js";import{c as Kt}from"./CrOCeWF7.js";import{X as Ye}from"./C6E-ekUK.js";import{M as bt}from"./DgIRKToT.js";import{A as En}from"./BicHgQHF.js";import{C as An}from"./CuD4TGYr.js";import{C as Mn}from"./BftdAJED.js";import{P as At}from"./B0iegdDx.js";import{s as Ln,a as Mt}from"./BNnzQGRQ.js";import{P as Pn}from"./362kFTNq.js";var Dn=new Set(["$$slots","$$events","$$legacy"]);function Lt(t,e){let r=He(e,Dn);const a={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var In=new Set(["$$slots","$$events","$$legacy"]);function Pt(t,e){let r=He(e,In);const a={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var $n=new Set(["$$slots","$$events","$$legacy"]);function Rn(t,e){let r=He(e,$n);const a={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var Nn=new Set(["$$slots","$$events","$$legacy"]);function On(t,e){let r=He(e,Nn);const a={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var Hn=new Set(["$$slots","$$events","$$legacy"]);function jn(t,e){let r=He(e,Hn);const a={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var qn=new Set(["$$slots","$$events","$$legacy"]);function Fn(t,e){let r=He(e,qn);const a={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}const Wn={intent:"Reading the brief",rebase:"Catching up with the main branch",review:"Reviewing the change",test:"Running the tests",document:"Checking the docs",lint:"Checking code style",push:"Pushing the branch",pr:"Opening the pull request",ci:"Waiting for CI"},Bn={rebase:"resolving conflicts with the main branch",review:"fixing review findings",test:"fixing test failures",document:"fixing the docs",lint:"fixing code style",ci:"fixing CI failures"},mt={intent:"Brief read",rebase:"Up to date with the main branch",review:"No issues found",test:"Tests passed",document:"Docs up to date",lint:"Code style clean",push:"Branch pushed",pr:"Pull request opened",ci:"CI passed"},Un={rebase:"Could not catch up with the main branch",test:"Tests failed",push:"Could not push the branch",pr:"Could not open the pull request",ci:"CI failed"},xt=t=>t&&t[0].toUpperCase()+t.slice(1),Ce=(t,e,r)=>`${t} ${t===1?e:r}`,wt=t=>Wn[t.key]??`Running ${t.label.toLowerCase()}`,Gt=t=>Bn[t]??"applying fixes",_t=t=>Un[t.key]??`${t.label} failed`;function Dt(t){const e=Math.max(0,Math.round(t/1e3));if(e<60)return`${e}s`;const r=Math.floor(e/60);if(r<60)return e%60?`${r}m ${e%60}s`:`${r}m`;const a=Math.floor(r/60);return r%60?`${a}h ${r%60}m`:`${a}h`}function st(t,e,r){if(r===null)return null;const a=e?Date.parse(e):NaN;return Number.isNaN(a)?t?.durationMs!=null?Dt(t.durationMs):null:Dt(r-a)}const Ge=(...t)=>t.filter(Boolean).join(" · ");function Yt(t,e){const r=t.gate?.questions??0;if(r>0)return Ce(r,"question","questions")+" for Firstmate";const a=t.gate?.findings||e.findings;return a>0?`${Ce(a,"finding","findings")} waiting on Firstmate`:"waiting on Firstmate"}function Xt(t,e){return`${Gt(e.key)}${t.round?`, round ${t.round}`:""}`}const Kn=t=>t.steps.find(e=>e.key===t.step)??null;function ds(t,e){const r=t.ci==="green";if(t.outcome==="passed")return r?"All checks passed · CI green":"All checks passed";if(t.outcome==="cancelled")return"Checks stopped before finishing";const a=Kn(t);if(t.outcome==="failed")return a?.state==="failed"?_t(a):"Checks failed";if(!a)return`${t.label} step`;switch(a.state){case"waiting":return Ge(wt(a),st(a,null,e),Yt(t,a));case"fixing":return xt(Ge(t.answered&&"Answer received",Xt(t,a),st(a,t.roundStartedAt??t.startedAt,e)));case"failed":return _t(a);case"running":if(a.key==="ci"){if(r)return"All checks passed · CI green";if(t.ci==="red")return Ge("CI found problems",st(a,t.startedAt,e))}return Ge(wt(a),st(a,t.startedAt,e));case"upcoming":return"Waiting for the checks to start";default:return r?"All checks passed · CI green":"Checks finished"}}function Gn(t,e){const r=t.findings,a=t.fixes??0;switch(t.state){case"upcoming":return"";case"skipped":return"Skipped";case"waiting":return xt(Yt(e,t));case"fixing":return xt(Ge(r>0&&`Found ${Ce(r,"issue","issues")}`,t.key===e.step?Xt(e,t):Gt(t.key)));case"failed":return Ge(_t(t),r>0&&Ce(r,"finding","findings"));case"running":return t.key==="ci"?e.ci==="green"?"CI passed; watching until it merges":e.ci==="red"?"CI found problems":"Waiting for CI checks":`${wt(t)}…`;default:return t.key==="ci"&&e.ci==="red"?"CI found problems":t.fixes===null&&t.key==="review"?r>0?`Found ${Ce(r,"issue","issues")}`:"No issues left":r>0&&a>0?`Found ${Ce(r,"issue","issues")} · fixed in ${Ce(a,"round","rounds")}`:r>0?t.key==="review"?`Found ${Ce(r,"issue","issues")}; no changes needed`:`${mt[t.key]??"Done"} · ${Ce(r,"note","notes")}`:a>0?`${t.key==="review"?"No issues left":mt[t.key]??"Done"} after ${Ce(a,"round of fixes","rounds of fixes")}`:mt[t.key]??"Done"}}function cs(t){if(!t.length)return null;const e=t.length,r=i=>t.filter(d=>d.state===i).length,a=r("fail"),s=r("running")+r("pending");if(a)return`${a} of ${e} ${e===1?"check":"checks"} failed`;if(s)return`${s} of ${e} ${e===1?"check":"checks"} still running`;const o=r("pass");return o?`${o} of ${e} ${e===1?"check":"checks"} passed`:`${e} ${e===1?"check":"checks"} reported`}const us=t=>!!t.pipeline?.steps.length&&t.status!=="landed";function Yn(t,e){if(t.key==="ci"&&t.state!=="upcoming"&&t.state!=="skipped"){if(e.ci==="green")return"done";if(e.ci==="red"&&t.state!=="fixing")return"failed"}switch(t.state){case"done":return"done";case"running":return"active";case"waiting":return"waiting";case"fixing":return"fixing";case"failed":return"failed";case"skipped":return"skipped";default:return"todo"}}const Xn={done:"done",running:"active",waiting:"waiting",fixing:"fixing",failed:"failed",skipped:"skipped",upcoming:"todo"};function fs(t,e){const r=new Map((e?.steps??[]).map(a=>[a.key,a]));return t?.steps.length?t.steps.map(a=>({key:a.key,label:a.label,tone:Yn(a,t),summary:Gn(a,t),durationMs:a.durationMs,current:a.key===t.step&&t.outcome==="running",report:r.get(a.key)??null})):(e?.steps??[]).map(a=>({key:a.key,label:a.label,tone:Xn[a.state],summary:a.summary,durationMs:a.durationMs,current:!1,report:a}))}function hs(t){switch(t.outcome){case"passed":return"All checks passed";case"failed":return"Checks failed";case"cancelled":return"Checks stopped before finishing";case"running":return"Checks under way";default:return"Checks"}}const Jn=15e3,Jt=t=>`url:${t}`,Vn=t=>t.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(t.slice(4))}`:`/api/tasks/${encodeURIComponent(t)}/preview`,Qn=5e3;class Zn{#e=M(lt({}));get checks(){return n(this.#e)}set checks(e){w(this.#e,e,!0)}#n=M(lt({}));get failed(){return n(this.#n)}set failed(e){w(this.#n,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const r=this.watching.get(e);r?r.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let a=!1;return()=>{if(a)return;a=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const r=this.running.get(e);if(r)return r;const a=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,a),a}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const r=await fetch(Vn(e));if(!r.ok)throw new Error(String(r.status));this.checks[e]=await r.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const r=this.watching.get(e);if(!r)return;r.timer&&clearTimeout(r.timer);const a=this.checks[e]?.state==="live"?Jn:Qn;r.timer=setTimeout(()=>{r.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},a)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const r of this.watching.keys())this.refresh(r)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const et=new Zn;class er{#e=M(0);get open(){return n(this.#e)}set open(e){w(this.#e,e,!0)}}const kt=new er,Vt="data-fullscreen-layer";function It(t){Qt(t.target)&&t.stopPropagation()}function tr(t){return t.setAttribute(Vt,""),t.style.pointerEvents="auto",document.body.appendChild(t),kt.open++===0&&window.addEventListener("focusin",It,!0),{destroy(){--kt.open===0&&window.removeEventListener("focusin",It,!0),t.remove()}}}function Qt(t){return t instanceof Element&&!!t.closest(`[${Vt}]`)}function vs(t){(kt.open>0||Qt(t.target))&&t.preventDefault()}const ps={review:"GitHub review",thread:"GitHub review comment",comment:"GitHub comment",preview:"Preview feedback",plugin:"Plugin feedback","pr-review":"Wheelhouse PR review",decision:"Decisions inbox"},ms={open:"To do",resolved:"Resolved on GitHub",addressed:"Worker reported it ready since"},gs=t=>t.where?`${t.where.path}${t.where.line!=null?`, line ${t.where.line}`:""}`:null;function nr(t){return{open:t.filter(e=>e.state==="open"),done:t.filter(e=>e.state!=="open")}}function bs(t){if(!t?.length)return null;const{open:e,done:r}=nr(t);return[e.length?`${e.length} ${nn(e.length,"change","changes")} to make`:null,r.length?`${r.length} done`:null].filter(Boolean).join(" · ")}const xs=t=>t.runs&&t.runs.current>1?t.runs.runs.at(-1)??null:null;function ws(t){if(!t.runs||t.runs.current<2)return null;const e=t.passage.steps[t.passage.current];return e?`Run ${t.runs.current} · ${e.label}`:`Run ${t.runs.current}`}const $t=500,tt=t=>t.replace(/\s+/g," ").trim(),rr=(t,e)=>t.length>e?t.slice(0,e-1).trimEnd()+"…":t;function gt(t){const e=t.y<.3333333333333333?"top":t.y<.6666666666666666?"middle":"bottom",r=t.x<1/3?"left":t.x<2/3?"":"right";return e==="middle"&&!r?"the middle":`the ${e}${r?` ${r}`:""}`}const ar={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function sr(t,e,r){const a=t?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??t;if(a&&a.tagName!=="HTML"&&a.tagName!=="BODY"){const s=a.tagName.toLowerCase(),o=a.getAttribute("role")==="button"?"button":ar[s]??"part of the page",i=rr(tt(a.value||a.getAttribute("aria-label")||a.getAttribute("alt")||a.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${o}`:`a ${o} near ${gt(e)}`,detail:`<${s}>${i?` “${i}”`:""}, near ${gt(e)} of the page`}}return{kind:"spot",label:`a spot near ${gt(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${r.w}×${r.h})`}}const ir=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,or=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,lr="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",dr=t=>t.flatMap((e,r)=>[`${r+1}. ${tt(e.text)}`,...e.points&&tt(e.points)?[` Points at: ${tt(e.points)}`]:[]]);function cr(t,e,r){return[`Preview feedback for ${t.id} (${tt(t.title)}), sent together from the Preview tab (${e}):`,...dr(r.map(a=>({text:a.text,points:a.points?.label??null}))),"",lr].join(`
|
|
2
|
+
`)}function _s(t){const e=t.replace(/\r\n?/g,`
|
|
3
|
+
`).split(`
|
|
4
|
+
`),r=ir.exec(e[0]??""),a=r?null:or.exec(e[0]??""),s=r??a;if(!s)return null;const o=[];for(const i of e.slice(1)){const d=/^\d+\. (.+)$/.exec(i);if(d){o.push({text:d[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(i);u&&o.length&&(o[o.length-1].points=u[1])}return o.length?{taskId:s[1],title:s[2],url:r?r[3]:null,plugin:a?{id:a[4],name:a[3],subject:a[5]??null}:null,items:o}:null}var ur=b('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),fr=b('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),hr=b('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),vr=b('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),pr=b('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),mr=b('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),gr=b("<!> <!>",1),br=b('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),xr=b('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),wr=b('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),_r=b('<span class="block text-xs"> </span>'),kr=b('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),yr=b('<p class="text-sm"> </p>'),zr=b('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),Cr=b('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),Sr=b("<div><!> <div><!></div></div>");function Tr(t,e){Ne(e,!0);let r=q(e,"taskId",3,null),a=q(e,"url",3,null),s=q(e,"compact",3,!1),o=q(e,"fill",3,!1),i=q(e,"desktop",3,!1),d=q(e,"toolbar",3,!0),u=q(e,"pointing",3,!1),g=q(e,"pin",3,null),S=M(null);function Y(E){const v=E.currentTarget.getBoundingClientRect(),y=E.clientX-v.left,$=E.clientY-v.top;let H=null;const X=n(xe)?n(oe):1;try{H=n(S)?.contentDocument?.elementFromPoint(y/X,$/X)??null}catch{H=null}const j={x:v.width?y/v.width:0,y:v.height?$/v.height:0};e.onpoint?.(sr(H,j,{w:Math.round(v.width),h:Math.round(v.height)}),j)}const ne={w:1280,h:800};let pe=M(0),ee=M(0),O=M(0);const se=_(()=>r()??Jt(a()??""));Re(()=>et.watch(n(se)));const I=_(()=>et.checks[n(se)]??null),be=_(()=>!!et.failed[n(se)]),B=_(()=>n(I)?.state==="live"),ie=_(()=>n(I)?.url??null),re=_(()=>n(ie)&&n(I)?Ft.view(n(ie)):null),Ae=_(()=>n(re)?_n(n(re),location.origin):""),oe=_(()=>n(ee)?n(ee)/ne.w:0),xe=_(()=>o()&&i()&&n(oe)>0&&n(oe)<1);function Me(){an(pe),et.refresh(n(se))}var te={reload:Me},we=Sr(),me=c(we);{var Le=E=>{var v=vr(),y=c(v),$=G(y,!0),H=f(y,2);{var X=T=>{var P=ur(),V=c(P);Wt(V,{class:"size-3.5"}),l(P),D(()=>{R(P,"aria-label",n(B)?"Reload the preview":"Check the preview again"),R(P,"title",n(B)?"Reload":"Check again")}),N("click",P,Me),p(T,P)};z(H,T=>{(n(B)||n(I)?.state==="blocked"||n(I)?.state==="down")&&T(X)})}var j=f(H,2);{var fe=T=>{var P=fr(),V=f(c(P));Bt(V,{class:"size-3.5","aria-hidden":"true"}),l(P),D(()=>R(P,"href",n(re))),p(T,P)};z(j,T=>{(n(B)||n(I)?.state==="blocked")&&T(fe)})}var U=f(j,2);{var J=T=>{var P=hr(),V=c(P);Et(V,{class:"size-3.5","aria-hidden":"true"}),ve(),l(P),N("click",P,function(...Q){e.onfullscreen?.apply(this,Q)}),p(T,P)};z(U,T=>{e.onfullscreen&&n(B)&&T(J)})}l(v),D(()=>{R(y,"title",n(ie)??void 0),W($,n(ie)??"Live preview")}),p(E,v)};z(me,E=>{d()&&E(Le)})}var de=f(me,2),ke=c(de);{var Pe=E=>{var v=Be(),y=Se(v);yn(y,()=>`${n(re)} ${n(pe)}`,$=>{var H=Be(),X=Se(H);{var j=U=>{var J=gr(),T=Se(J);{var P=A=>{var C=pr();D(()=>{R(C,"src",n(re)),R(C,"title",`Live preview of ${n(ie)??""}`),R(C,"sandbox",n(Ae)),C.inert=!!e.onopen,Ee(C,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),pt(C,`width:${ne.w}px;height:${ne.h}px;transform:scale(${n(oe)??""})`)}),p(A,C)};z(T,A=>{n(oe)&&A(P)})}var V=f(T,2);{var Q=A=>{var C=mr(),ae=c(C),Z=c(ae);Et(Z,{class:"size-3.5","aria-hidden":"true"}),ve(),l(ae),l(C),N("click",C,function(...x){e.onopen?.apply(this,x)}),p(A,C)};z(V,A=>{e.onopen&&A(Q)})}p(U,J)},fe=U=>{var J=wr(),T=Se(J);Xe(T,A=>w(S,A),()=>n(S));var P=f(T,2);{var V=A=>{var C=br(),ae=c(C),Z=c(ae);ln(Z,{class:"size-4","aria-hidden":"true"}),ve(),l(ae),l(C),N("click",C,Y),p(A,C)},Q=A=>{var C=xr();D(()=>pt(C,`left:${g().x*100}%;top:${g().y*100}%`)),p(A,C)};z(P,A=>{u()?A(V):g()&&A(Q,1)})}D(()=>{R(T,"src",n(re)),R(T,"title",`Live preview of ${n(ie)??""}`),R(T,"sandbox",n(Ae)),Ee(T,1,pn(n(xe)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),pt(T,n(xe)?`width:${ne.w}px;height:${n(O)/n(oe)}px;transform:scale(${n(oe)})`:void 0)}),p(U,J)};z(X,U=>{s()?U(j):U(fe,-1)})}p($,H)}),p(E,v)},ye=E=>{const v=_(()=>!n(I)&&!n(be)),y=_(()=>n(v)?"Checking the preview…":n(be)?"Could not check the preview":n(I)?.state==="down"?"Preview stopped":n(I)?.state==="blocked"?"Preview cannot be embedded":n(I)?.state==="refused"?"Preview not shown here":"No live preview reported"),$=_(()=>n(v)?"":n(be)?"Wheelhouse did not answer; it will try again.":n(I)?.state==="blocked"?`${n(I).reason} Open it in a new tab instead.`:n(I)?.reason??"");var H=Be(),X=Se(H);{var j=U=>{var J=kr(),T=c(J);{var P=Z=>{Lt(Z,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};z(T,Z=>{n(v)||Z(P)})}var V=f(T,2),Q=c(V),A=G(Q,!0),C=f(Q,2);{var ae=Z=>{var x=_r(),k=G(x,!0);D(()=>W(k,n($))),p(Z,x)};z(C,Z=>{n($)&&Z(ae)})}l(V),l(J),D(()=>{Ee(Q,1,`font-medium ${n(v)?"":"text-foreground"}`),W(A,n(y))}),p(U,J)},fe=U=>{var J=Cr(),T=c(J),P=c(T);{var V=A=>{var C=yr(),ae=G(C,!0);D(()=>W(ae,n(y))),p(A,C)},Q=A=>{var C=zr(),ae=Se(C);Lt(ae,{class:"mx-auto size-6","aria-hidden":"true"});var Z=f(ae,2),x=G(Z,!0),k=f(Z,2),ce=G(k,!0);D(()=>{W(x,n(y)),W(ce,n($))}),p(A,C)};z(P,A=>{n(v)?A(V):A(Q,-1)})}l(T),l(J),p(U,J)};z(X,U=>{s()?U(j):U(fe,-1)})}p(E,H)};z(ke,E=>{n(B)&&n(re)?E(Pe):E(ye,-1)})}return l(de),l(we),D(()=>{Ee(we,1,`min-w-0 ${o()?"flex h-full flex-col":""}`),R(we,"data-live-preview",n(I)?.state??"checking"),Ee(de,1,`group relative w-full overflow-hidden bg-muted/40 ${d()?"mt-1.5 rounded-lg border":""} ${s()?n(B)?"aspect-[16/10]":"":o()?"min-h-0 flex-1":n(B)?"h-[70vh] min-h-80":"h-40"}`)}),Tt(de,"clientWidth",E=>w(ee,E)),Tt(de,"clientHeight",E=>w(O,E)),p(t,we),Oe(te)}ut(["click"]);const Ct=()=>dt.data.reviewSurface??null,Rt="wheelhouse-preview-helper",Zt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),Er=Object.freeze(Zt()),Ze=()=>crypto.randomUUID();class Ar{#e=M(lt({}));get byTask(){return n(this.#e)}set byTask(e){w(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(Rt)??"{}");if(e&&typeof e=="object"){for(const r of Object.values(e))r.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(Rt,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??Er}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Zt()),this.byTask[e]}async ask(e,r,a,s){const o=this.of(e),i=r.trim();if(!i&&!a||o.asking)return;o.said.push({id:Ze(),who:"captain",text:i||"What about this?",points:a}),o.asking=!0,o.error=null,this.save();const d=o.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[Tn]:s},body:JSON.stringify({turns:d,list:o.list.map(S=>S.text)})}),g=await u.json().catch(()=>null);!u.ok||!g?.reply?o.error=g?.message??`The helper could not answer (${u.status}).`:o.said.push({id:Ze(),who:"helper",text:g.reply,suggest:g.suggest.map(S=>({text:S,added:!1}))})}catch{o.error="Wheelhouse could not be reached. Try again."}finally{o.asking=!1,this.save()}}accept(e,r,a){const s=this.of(e),o=s.said.findIndex(u=>u.id===r),i=s.said[o]?.suggest?.[a];if(!i||i.added)return;i.added=!0;const d=s.said.slice(0,o).reverse().find(u=>u.who==="captain");s.list.push({id:Ze(),text:i.text,points:d?.points??null}),s.sent=null,this.save()}addOwn(e,r,a=null){const s=r.trim().slice(0,$t);if(!s)return;const o=this.of(e);o.list.push({id:Ze(),text:s,points:a}),o.sent=null,this.save()}edit(e,r,a){const s=this.of(e).list.find(o=>o.id===r);s&&(s.text=a.slice(0,$t),this.save())}remove(e,r){const a=this.of(e),s=a.list.find(o=>o.id===r);a.list=a.list.filter(o=>o.id!==r);for(const o of a.said)for(const i of o.suggest??[])s&&i.text===s.text&&(i.added=!1);this.save()}async send(e,r,a){const s=this.of(e.id),o=s.list.filter(g=>g.text.trim());if(!o.length)return!1;s.error=null;const i=await Sn(cr(e,r,o),a,e.id);if(!i.ok)return s.error=i.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:o.length};const d=e.id.lastIndexOf("@"),u=d>0?`second mate ${e.id.slice(d+1)}`:"Firstmate";return s.list=[],s.said.push({id:Ze(),who:"helper",notice:!0,text:`Sent to ${u}: ${o.length} ${o.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const r=this.of(e);r.said=[],r.error=null,this.save()}}const $e=new Ar;var Mr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Lr=b("<textarea></textarea>");function Pr(t,e){Ne(e,!0);let r=q(e,"ref",15,null),a=q(e,"value",15),s=q(e,"data-slot",3,"textarea"),o=He(e,Mr);var i=Lr();jt(i),mn(i,d=>({"data-slot":s(),class:d,...o}),[()=>Kt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Xe(i,d=>r(d),()=>r()),Ut(i,a),p(t,i),Oe()}const Dr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function Nt(){if(typeof window>"u")return null;const t=window;return t.SpeechRecognition??t.webkitSpeechRecognition??null}const Ir={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ct=t=>t.trim().split(/\s+/).filter(Boolean),$r=(t,e)=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),en=(t,e)=>e.length<=t.length&&e.every((r,a)=>$r(r,t[a]));function Ot(t,e){const r=ct(t);return!r.length||en(ct(e),r)?e:/\s$/.test(t)||/^\s/.test(e)?t+e:`${t} ${e}`}function Rr(t,e){const r=ct(t),a=ct(e);return!r.length||!en(a,r)?e:a.slice(r.length).join(" ")}const Nr={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>Nt()!==null,start(t,e){const r=Nt();if(!r)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const a=new r;a.lang=t,a.continuous=!0,a.interimResults=!0,a.onresult=s=>{let o="",i="";for(let d=0;d<s.results.length;d++){const u=s.results[d];u.isFinal?o=Ot(o,u[0].transcript):i=Ot(i,u[0].transcript)}e.text(o,Rr(o,i))},a.onerror=s=>{s.error!=="aborted"&&e.problem(Ir[s.error]??"failed")},a.onend=()=>e.end();try{a.start()}catch{e.problem("failed"),e.end()}return{stop:()=>a.stop(),abort:()=>a.abort()}}};let Or=Nr;const yt=()=>Or,Hr=2e3;class jr{#e=M(null);get owner(){return n(this.#e)}set owner(e){w(this.#e,e)}#n=M("idle");get phase(){return n(this.#n)}set phase(e){w(this.#n,e,!0)}#i=M(0);get startedAt(){return n(this.#i)}set startedAt(e){w(this.#i,e,!0)}#o=M(null);get problem(){return n(this.#o)}set problem(e){w(this.#o,e,!0)}#r=null;#t=null;#a=null;#l=[];active(e){return this.owner===e&&this.phase!=="idle"}start(e,r,a=qr()){this.phase!=="idle"&&this.commit();const s=yt();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#t=r,r.begin(),this.phase="listening",this.startedAt=Date.now();let o=null;const i=()=>o===null||this.#r===o;o=s.start(a,{text:(d,u)=>{i()&&this.#t===r&&r.show(...Fr(d,u))},problem:d=>{i()&&(this.problem=d)},end:()=>{i()&&this.#t===r&&this.#s("finish")}}),this.#t===r&&(this.#r=o)}stop(){if(this.phase==="idle")return Promise.resolve();const e=new Promise(r=>this.#l.push(r));return this.phase==="listening"&&(this.phase="stopping",this.#r?.stop(),this.#a=setTimeout(()=>this.#s("finish"),Hr)),e}commit(){this.phase!=="idle"&&this.#s("finish")}cancel(){this.phase!=="idle"&&this.#s("revert")}dismiss(){this.problem=null}#s(e){const r=this.#r,a=this.#t;this.#r=null,this.#t=null,this.#a&&clearTimeout(this.#a),this.#a=null,this.phase="idle",r?.abort(),a?.[e]();for(const s of this.#l.splice(0))s()}}const K=new jr;function qr(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function Fr(t,e){const r=t.replace(/\s+/g," ").trim(),a=e.replace(/\s+/g," ").trim();return[r,r&&a?` ${a}`:a]}const tn=t=>t&&!/\s$/.test(t)?" ":"",Wr=t=>/^[\p{L}\p{N}]/u.test(t)?" ":"";function Br(t){let e="",r="",a="",s=!1;const o=(i,d)=>{t.value=i;try{t.setSelectionRange(d,d)}catch{}t.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=t.value;const i=t.selectionStart??e.length,d=t.selectionEnd??i;r=e.slice(0,i),a=e.slice(d),s=!1},show(i,d){const u=i+d;if(!u)return;const g=r+tn(r)+u;o(g+Wr(a)+a,g.length),s=!0},finish(){},revert(){s&&o(e,r.length),s=!1}}}function ks(t,e){let r=null,a=null,s="";const o=i=>{const d=document.createRange();d.setStartAfter(i),d.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(d)};return{begin(){const i=window.getSelection();let d;i?.rangeCount&&t.contains(i.getRangeAt(0).startContainer)?(d=i.getRangeAt(0),a=d.extractContents()):(d=document.createRange(),d.selectNodeContents(t),d.collapse(!1),a=null);const u=document.createRange();u.setStart(t,0),u.setEnd(d.startContainer,d.startOffset),s=tn(u.toString().replace(/\u00a0/g," ")),r=document.createElement("span"),r.dataset.dictation="",d.insertNode(r)},show(i,d){if(!r)return;const u=document.createTextNode(i||d?s+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=d,r.replaceChildren(u,...d?[g]:[]),e()},finish(){if(!r)return;const i=r.textContent??"";if(i){const d=document.createTextNode(i);r.replaceWith(d),(t.contains(document.activeElement)||document.activeElement===t)&&o(d)}else r.replaceWith(a??"");r=null,a=null,e()},revert(){r?.replaceWith(a??""),r=null,a=null,e()}}}const Ur=t=>t.code==="Space"&&t.shiftKey&&(t.metaKey||t.ctrlKey)&&!t.altKey,Kr=450;function Gr(t,e,r){let a=0;const s=i=>{if(Ur(i)){if(i.preventDefault(),i.repeat)return;K.active(e)?(a=0,K.stop()):(a=Date.now(),r());return}K.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),a=0,K.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(a=0,K.commit()))},o=i=>{if(!a||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const d=Date.now()-a;a=0,d>=Kr&&K.active(e)&&K.stop()};return t.addEventListener("keydown",s),t.addEventListener("keyup",o),()=>{t.removeEventListener("keydown",s),t.removeEventListener("keyup",o)}}var Yr=b('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Xr=b('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Jr=b('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Vr=b('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Qr(t,e){Ne(e,!0);let r=q(e,"label",3,"Dictate"),a=q(e,"size",3,"md"),s=q(e,"disabled",3,!1),o=q(e,"listening",15,!1);const i={};sn(()=>{o(K.active(i))});const d=_(()=>o()&&K.phase==="stopping"),u=_(()=>K.owner===i?K.problem:null);let g=M(!1),S=M(lt(Date.now())),Y=M("Ctrl+Shift+Space");const ne="wheelhouse.voice.noted";let pe=!1;function ee(){if(pe)return!0;try{return localStorage.getItem(ne)==="1"}catch{return!1}}function O(){if(s())return;const v=yt();if(v.supported()&&v.privacyNote&&!ee()){w(g,!0);return}K.start(i,e.target()),e.field?.focus()}function se(){pe=!0;try{localStorage.setItem(ne,"1")}catch{}w(g,!1),O()}let I=M(!1);function be(){O(),w(I,K.active(i),!0)}async function B(){return w(I,!1),K.active(i)?(await K.stop(),!0):!1}Re(()=>{o()||w(I,!1)});function ie(){o()?K.stop():n(g)?w(g,!1):O()}const re=_(()=>{const v=Math.max(0,Math.floor((n(S)-K.startedAt)/1e3));return`${Math.floor(v/60)}:${String(v%60).padStart(2,"0")}`});Re(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&w(Y,"⌘⇧Space")}),Re(()=>{if(!o())return;w(S,Date.now(),!0);const v=setInterval(()=>w(S,Date.now(),!0),250);return()=>clearInterval(v)}),Re(()=>{if(e.field)return Gr(e.field,i,O)}),Re(()=>{if(!o()&&!n(g))return;const v=y=>{y.key!=="Escape"||y.defaultPrevented||(y.preventDefault(),o()&&K.cancel(),w(g,!1))};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)}),rn(()=>{K.active(i)&&K.commit()});var Ae={hold:be,release:B},oe=Vr(),xe=c(oe);{var Me=v=>{var y=Yr(),$=G(y,!0);D(()=>W($,n(d)?"Finishing…":n(I)?`${n(re)} · let go of Space to send`:n(re))),p(v,y)};z(xe,v=>{o()&&v(Me)})}var te=f(xe,2),we=c(te);{var me=v=>{{let y=_(()=>a()==="md"?"size-3.5 fill-current":"size-3 fill-current");Fn(v,{get class(){return n(y)}})}},Le=v=>{{let y=_(()=>a()==="md"?"size-4.5":"size-4");dn(v,{get class(){return n(y)}})}};z(we,v=>{o()?v(me):v(Le,-1)})}l(te);var de=f(te,2),ke=G(de,!0),Pe=f(de,2);{var ye=v=>{var y=Xr(),$=c(y),H=G($,!0),X=f($,4),j=c(X),fe=f(j,2);l(X),l(y),D(U=>W(H,U),[()=>yt().privacyNote]),N("click",j,()=>w(g,!1)),N("click",fe,se),p(v,y)},E=v=>{var y=Jr(),$=c(y),H=G($,!0),X=f($,2),j=c(X);Ye(j,{class:"size-3.5"}),l(X),l(y),D(()=>W(H,Dr[n(u)])),N("click",X,()=>K.dismiss()),p(v,y)};z(Pe,v=>{n(g)?v(ye):n(u)&&v(E,1)})}return l(oe),D(()=>{R(te,"aria-label",o()?"Stop dictating":r()),R(te,"aria-pressed",o()),R(te,"title",o()?"Stop dictating · Esc cancels":`${r()} (${n(Y)}; hold for push-to-talk)`),te.disabled=s(),R(te,"data-dictating",o()?"":void 0),Ee(te,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${a()==="md"?"size-9 max-md:size-11":`size-7 ${ot.current?"touch-target":""}`} ${o()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),W(ke,o()?"Listening":"")}),N("mousedown",te,v=>v.preventDefault()),N("click",te,ie),p(t,oe),Oe(Ae)}ut(["mousedown","click"]);var Zr=new Set(["$$slots","$$events","$$legacy","value","class"]),ea=b('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function ta(t,e){Ne(e,!0);let r=q(e,"value",15),a=He(e,Zr),s=M(null),o=M(!1);var i=ea(),d=c(i);{let S=_(()=>Kt(e.class,n(o)?"pr-24":"pr-10"));Pr(d,Ue({get class(){return n(S)}},()=>a,{get ref(){return n(s)},set ref(Y){w(s,Y,!0)},get value(){return r()},set value(Y){r(Y)}}))}var u=f(d,2),g=c(u);{let S=_(()=>!!e.disabled);Qr(g,{get field(){return n(s)},target:()=>Br(n(s)),size:"sm",get disabled(){return n(S)},get listening(){return n(o)},set listening(Y){w(o,Y,!0)}})}l(u),l(i),p(t,i),Oe()}var na=b('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),ra=b('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),aa=b('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),sa=b('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),ia=b('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),oa=b('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),la=b('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),da=b('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),ca=b('<li class="text-sm text-danger" role="alert"> </li>'),ua=b('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),fa=b('<span class="text-xs text-muted-foreground">· not sent yet</span>'),ha=b('<p class="text-xs text-muted-foreground"> </p>'),va=b('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),pa=b('<ol class="flex flex-col gap-1.5"></ol>'),ma=b('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),ga=b('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),ba=b(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
|
|
5
|
+
done so far. Point at anything, or just say what you think; I will turn it into a list for
|
|
6
|
+
the worker. <strong>Nothing goes to Firstmate until you send it.</strong></p></li> <!> <!> <!></ol></div> <div class="px-3 pb-3"><div class="rounded-lg border border-input bg-card shadow-sm focus-within:ring-2 focus-within:ring-ring/30"><!> <!> <div class="flex items-center gap-1 px-1.5 pb-1.5"><button title="Click a part of the page to say which part you mean" data-point=""><!> </button> <button aria-label="Say it" class="ml-auto flex size-8 cursor-pointer items-center justify-center rounded-full bg-foreground text-background disabled:cursor-not-allowed disabled:opacity-30 max-md:size-11"><!></button></div></div></div> <section class="border-t bg-card/60" aria-label="Your feedback" data-feedback-list=""><button class="flex w-full cursor-pointer items-center gap-2 px-4 py-2.5 text-left max-md:min-h-11"><h3 class="font-sans text-sm font-medium">Your feedback</h3> <span class="rounded-full bg-muted px-1.5 text-xs text-muted-foreground tabular-nums"> </span> <!> <!></button> <!> <div class="flex items-center gap-3 px-4 pt-2 pb-3"><button class="inline-flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-md bg-sea px-3.5 text-sm font-medium whitespace-nowrap text-on-accent hover:bg-sea/90 disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11" data-send-batch=""><!> </button> <span class="text-xs leading-snug text-muted-foreground">One message, for this same task</span></div></section></section>`);function xa(t,e){Ne(e,!0);let r=q(e,"pointing",15,!1),a=q(e,"attached",15,null);const s=_(()=>$e.view(e.task.id)),o=_(()=>dt.data.sessionToken??"");let i=M(""),d=M(""),u=M(!0),g=M(!1),S=M(null),Y=M(null);zt(()=>$e.load()),Re(()=>{n(s).said.length,n(s).asking,St().then(()=>n(S)?.scrollTo({top:n(S).scrollHeight,behavior:"smooth"}))}),Re(()=>{a()&&St().then(()=>n(Y)?.querySelector("textarea")?.focus())});function ne(){const x=n(i).trim();if(!x&&!a()||n(s).asking)return;const k=a()?.pointer??null;w(i,""),a(null),$e.ask(e.task.id,x,k,n(o))}async function pe(){!n(s).list.length||n(g)||(w(g,!0),await $e.send({id:e.task.id,title:e.task.shortTitle},e.url,n(o)),w(g,!1))}var ee=ba(),O=c(ee),se=c(O),I=c(se);bt(I,{class:"size-4 text-muted-foreground","aria-hidden":"true"}),ve(),l(se),ve(2),l(O);var be=f(O,2),B=c(be),ie=c(B),re=c(ie),Ae=c(re);Pt(Ae,{class:"size-3.5"}),l(re),ve(2),l(ie);var oe=f(ie,2);it(oe,17,()=>n(s).said,x=>x.id,(x,k)=>{var ce=Be(),De=Se(ce);{var je=m=>{var L=ra(),F=c(L);{var ue=_e=>{var ge=na(),qe=c(ge);vt(qe,{class:"size-3 shrink-0","aria-hidden":"true"});var Te=f(qe),ze=G(Te,!0);l(ge),D(()=>W(ze,n(k).points.label)),p(_e,ge)};z(F,_e=>{n(k).points&&_e(ue)})}var he=f(F,2),le=G(he,!0);l(L),D(()=>W(le,n(k).text)),p(m,L)},h=m=>{var L=la(),F=c(L),ue=c(F);Pt(ue,{class:"size-3.5"}),l(F);var he=f(F,2),le=c(he);zn(le,()=>Cn(n(k).text),!0),l(le);var _e=f(le,2);{var ge=Te=>{var ze=aa();p(Te,ze)};z(_e,Te=>{n(k).notice&&n(s).sent&&Te(ge)})}var qe=f(_e,2);it(qe,17,()=>n(k).suggest??[],gn,(Te,ze,Fe)=>{var Ve=oa(),nt=c(Ve),Qe=G(nt,!0),rt=f(nt,2),We=c(rt);{var at=Ke=>{var Ie=sa(),ht=c(Ie);Mn(ht,{class:"size-3.5","aria-hidden":"true"}),ve(),l(Ie),p(Ke,Ie)},ft=Ke=>{var Ie=ia(),ht=c(Ie);At(ht,{class:"size-3.5","aria-hidden":"true"}),ve(),l(Ie),N("click",Ie,()=>$e.accept(e.task.id,n(k).id,Fe)),p(Ke,Ie)};z(We,Ke=>{n(ze).added?Ke(at):Ke(ft,-1)})}l(rt),l(Ve),D(()=>W(Qe,n(ze).text)),p(Te,Ve)}),l(he),l(L),D(()=>Ee(le,1,`chat-md text-sm ${n(k).notice?"text-muted-foreground":""}`)),p(m,L)};z(De,m=>{n(k).who==="captain"?m(je):m(h,-1)})}p(x,ce)});var xe=f(oe,2);{var Me=x=>{var k=da();p(x,k)};z(xe,x=>{n(s).asking&&x(Me)})}var te=f(xe,2);{var we=x=>{var k=ca(),ce=G(k,!0);D(()=>W(ce,n(s).error)),p(x,k)};z(te,x=>{n(s).error&&x(we)})}l(B),l(be),Xe(be,x=>w(S,x),()=>n(S));var me=f(be,2),Le=c(me),de=c(Le);{var ke=x=>{var k=ua(),ce=c(k),De=c(ce);vt(De,{class:"size-3 shrink-0","aria-hidden":"true"});var je=f(De),h=G(je,!0);l(ce);var m=f(ce,2),L=c(m);Ye(L,{class:"size-3"}),l(m),l(k),D(()=>W(h,a().pointer.label)),N("click",m,()=>a(null)),p(x,k)};z(de,x=>{a()&&x(ke)})}var Pe=f(de,2);{let x=_(()=>a()?"What about it?":"What do you think? Ask anything about it");ta(Pe,{rows:2,maxlength:4e3,get placeholder(){return n(x)},"aria-label":"Talk about this preview",class:"no-scrollbar min-h-12 border-0 bg-transparent text-sm shadow-none focus-visible:ring-0 max-md:text-base",onkeydown:k=>{k.key==="Enter"&&!k.shiftKey&&!k.isComposing&&(k.preventDefault(),ne())},get value(){return n(i)},set value(k){w(i,k,!0)}})}var ye=f(Pe,2),E=c(ye),v=c(E);vt(v,{class:"size-3.5","aria-hidden":"true"});var y=f(v,1,!0);l(E);var $=f(E,2),H=c($);En(H,{class:"size-4"}),l($),l(ye),l(Le),l(me),Xe(me,x=>w(Y,x),()=>n(Y));var X=f(me,2),j=c(X),fe=f(c(j),2),U=G(fe,!0),J=f(fe,2);{var T=x=>{var k=fa();p(x,k)};z(J,x=>{n(s).list.length&&x(T)})}var P=f(J,2);{let x=_(()=>n(u)?"rotate-180":"");An(P,{get class(){return`ml-auto size-4 text-muted-foreground transition-transform ${n(x)??""}`},"aria-hidden":"true"})}l(j);var V=f(j,2);{var Q=x=>{var k=ga(),ce=c(k);{var De=F=>{var ue=pa();it(ue,23,()=>n(s).list,he=>he.id,(he,le,_e)=>{var ge=va(),qe=c(ge),Te=G(qe),ze=f(qe,2),Fe=c(ze);jt(Fe);var Ve=f(Fe,2);{var nt=We=>{var at=ha(),ft=G(at);D(()=>W(ft,`Points at ${n(le).points.label??""}`)),p(We,at)};z(Ve,We=>{n(le).points&&We(nt)})}l(ze);var Qe=f(ze,2),rt=c(Qe);Ye(rt,{class:"size-3.5"}),l(Qe),l(ge),D(()=>{W(Te,`${n(_e)+1}.`),xn(Fe,n(le).text),R(Fe,"aria-label",`Feedback ${n(_e)+1}`)}),N("input",Fe,We=>$e.edit(e.task.id,n(le).id,We.currentTarget.value)),N("click",Qe,()=>$e.remove(e.task.id,n(le).id)),p(he,ge)}),l(ue),p(F,ue)},je=F=>{var ue=ma();p(F,ue)};z(ce,F=>{n(s).list.length?F(De):F(je,-1)})}var h=f(ce,2),m=c(h);At(m,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var L=f(m,2);bn(L),l(h),l(k),qt("submit",h,F=>{F.preventDefault(),$e.addOwn(e.task.id,n(d)),w(d,"")}),Ut(L,()=>n(d),F=>w(d,F)),p(x,k)};z(V,x=>{n(u)&&x(Q)})}var A=f(V,2),C=c(A),ae=c(C);cn(ae,{class:"size-3.5","aria-hidden":"true"});var Z=f(ae,1,!0);l(C),ve(2),l(A),l(X),l(ee),D(x=>{Ee(E,1,`inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-md px-2 text-xs font-medium transition-colors max-md:h-11 max-md:px-3 max-md:text-sm ${r()?"bg-sea text-on-accent":"text-muted-foreground hover:bg-muted hover:text-foreground"}`),R(E,"aria-pressed",r()),W(y,r()?"Pointing…":"Point"),$.disabled=x,R(j,"aria-expanded",n(u)),W(U,n(s).list.length),C.disabled=!n(s).list.length||n(g),W(Z,n(g)?"Sending…":`Send to Firstmate${n(s).list.length?` (${n(s).list.length})`:""}`)},[()=>!n(i).trim()&&!a()||n(s).asking]),N("click",E,()=>r(!r())),N("click",$,ne),N("click",j,()=>w(u,!n(u))),N("click",C,pe),p(t,ee),Oe()}ut(["click","input"]);var wa=b('<span class="contents" data-slot="preview.action"><!></span>');function Ht(t,e){Ne(e,!0);const r=_(()=>dt.data.slots),a=_(()=>n(r)?.[Mt.fleet]?dt.data.slotsAt??0:0),s=_(()=>Ct()?.id??null),o=_(()=>Ln.entries(Mt.fleet,n(r),n(a)).filter(u=>u.slot==="preview.action"&&u.content.available).sort((u,g)=>+(g.pluginId===n(s))-+(u.pluginId===n(s))));var i=Be(),d=Se(i);it(d,17,()=>n(o),u=>u.key,(u,g)=>{var S=Be(),Y=Se(S);{var ne=pe=>{const ee=_(()=>n(g).pluginId===n(s));var O=wa(),se=c(O);{let I=_(()=>n(ee)?{...e.preview,primary:n(ee)}:e.preview);Pn(se,{get entry(){return n(g)},get data(){return n(g).content.value},get preview(){return n(I)},quiet:!0})}l(O),D(()=>R(O,"data-primary",n(ee)?"":void 0)),p(pe,O)};z(Y,pe=>{n(g).content.available&&pe(ne)})}p(u,S)}),p(t,i),Oe()}var _a=b('<button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"><!>Hide the helper</button>'),ka=b('<span class="flex flex-wrap items-center gap-1 text-xs" data-preview-surface=""><!></span>'),ya=b('<aside data-preview-helper-panel=""><div class="flex min-h-0 w-full flex-col"><div class="flex shrink-0 items-center justify-end md:hidden"><span class="absolute top-2 left-1/2 h-1 w-10 -translate-x-1/2 rounded-full bg-muted-foreground/40" aria-hidden="true"></span> <button type="button" class="grid size-11 place-items-center rounded-full text-muted-foreground hover:bg-accent hover:text-foreground" aria-label="Hide the helper"><!></button></div> <!></div></aside>'),za=b('<button type="button" class="absolute right-5 bottom-5 inline-flex items-center gap-2 rounded-full border bg-background px-4 py-2 text-sm font-medium shadow-lg hover:bg-accent max-md:hidden"><!>Talk it through</button>'),Ca=b('<a target="_blank" rel="noreferrer" class="grid size-11 shrink-0 place-items-center rounded-xl border hover:bg-accent" aria-label="Open in a new tab"><!></a>'),Sa=b('<button type="button" class="inline-flex h-11 shrink-0 items-center gap-2 rounded-xl border px-3 text-sm font-medium hover:bg-accent" aria-label="Talk it through"><!>Talk</button>'),Ta=b('<span class="flex min-w-0 flex-1 flex-wrap items-center justify-end gap-1"><!></span>'),Ea=b('<div class="fixed inset-0 z-50 flex flex-col bg-background outline-none" role="dialog" aria-modal="true" tabindex="-1" data-preview-studio=""><div class="flex h-12 shrink-0 items-center gap-3 border-b px-3 max-md:hidden sm:px-4"><p class="min-w-0 flex-1 truncate text-sm"><span class="font-medium"> </span> <span class="text-muted-foreground">· Live preview</span></p> <!> <!> <button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs hover:bg-accent" aria-label="Close full screen (Esc)" title="Close (Esc)"><!>Close</button></div> <div class="flex shrink-0 items-center gap-1 border-b px-1 pt-[env(safe-area-inset-top,0px)] md:hidden" data-preview-phone-bar=""><button type="button" class="grid size-11 shrink-0 place-items-center rounded-full hover:bg-accent" aria-label="Close full screen"><!></button> <div class="min-w-0 flex-1 py-1 text-center"><p class="truncate text-sm font-medium"> </p> <p class="truncate font-mono text-xs text-muted-foreground"> </p></div> <button type="button" class="grid size-11 shrink-0 place-items-center rounded-full hover:bg-accent disabled:opacity-40"><!></button></div> <div class="relative flex min-h-0 flex-1"><div class="min-w-0 flex-1 p-3 max-md:p-0"><!></div> <!></div> <div class="flex shrink-0 items-center gap-2 border-t bg-background px-3 pt-2 pb-[max(0.5rem,env(safe-area-inset-bottom,0px))] md:hidden" data-preview-dock=""><button type="button" class="grid size-11 shrink-0 place-items-center rounded-xl border hover:bg-accent"><!></button> <!> <!> <!></div></div>');function Aa(t,e){Ne(e,!0);let r=q(e,"talk",3,!0),a=q(e,"board",3,!1),s=q(e,"from",3,null);const o=_(Ct),i=_(()=>r()&&!!e.taskId&&!n(o));let d=M(!ot.current),u=M(!1),g=M(null);const S=_(()=>et.checks[e.taskId??Jt(e.url)]??null),Y=_(()=>n(S)?.state==="live"),ne=_(()=>Ft.view(n(S)?.url??e.url)),pe=_(()=>URL.parse(n(ne))?.host??n(ne)),ee=_(()=>n(Y)&&n(S)?.url?{url:n(S).url,taskId:e.taskId,title:e.title,projectId:e.taskId?kn()?.tasks.find(h=>h.id===e.taskId)?.projectId??null:null,board:a()}:null);let O=M(!1),se=M(null),I=M(null);zt(()=>{const h=document.activeElement,m=document.body.style.overflow;return document.body.style.overflow="hidden",n(I)?.focus(),()=>{document.body.style.overflow=m,h?.focus?.()}});function be(h){if(h.key!=="Escape")return;if(n(O)){h.preventDefault(),w(O,!1);return}const m=h.target;if(m instanceof HTMLTextAreaElement&&m.value.trim()){m.blur();return}h.preventDefault(),e.onclose()}var B=Ea();qt("keydown",on,be);var ie=c(B),re=c(ie),Ae=c(re),oe=G(Ae,!0);ve(2),l(re);var xe=f(re,2);{var Me=h=>{var m=_a(),L=c(m);On(L,{class:"size-4","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!1)),p(h,m)};z(xe,h=>{n(i)&&n(d)&&h(Me)})}var te=f(xe,2);{var we=h=>{var m=ka(),L=c(m);Ht(L,{get preview(){return n(ee)}}),l(m),p(h,m)};z(te,h=>{n(o)&&n(ee)&&h(we)})}var me=f(te,2),Le=c(me);Ye(Le,{class:"size-4","aria-hidden":"true"}),ve(),l(me),l(ie);var de=f(ie,2),ke=c(de),Pe=c(ke);Ye(Pe,{class:"size-5","aria-hidden":"true"}),l(ke);var ye=f(ke,2),E=c(ye),v=G(E,!0),y=f(E,2),$=G(y,!0);l(ye);var H=f(ye,2),X=c(H);Wt(X,{class:"size-5","aria-hidden":"true"}),l(H),l(de);var j=f(de,2),fe=c(j),U=c(fe);{let h=_(()=>e.taskId?null:e.url),m=_(()=>!ot.current),L=_(()=>ot.current&&n(u)),F=_(()=>n(i)&&n(d)&&n(O)),ue=_(()=>n(i)&&n(d)?n(se)?.at??null:null);Xe(Tr(U,{get taskId(){return e.taskId},get url(){return n(h)},fill:!0,get toolbar(){return n(m)},get desktop(){return n(L)},get pointing(){return n(F)},get pin(){return n(ue)},onpoint:(he,le)=>{w(se,{pointer:he,at:le},!0),w(O,!1)}}),he=>w(g,he,!0),()=>n(g))}l(fe);var J=f(fe,2);{var T=h=>{var m=ya(),L=c(m),F=c(L),ue=f(c(F),2),he=c(ue);Ye(he,{class:"size-5","aria-hidden":"true"}),l(ue),l(F);var le=f(F,2);{let _e=_(()=>({id:e.taskId,shortTitle:e.title}));xa(le,{get task(){return n(_e)},get url(){return e.url},get pointing(){return n(O)},set pointing(ge){w(O,ge,!0)},get attached(){return n(se)},set attached(ge){w(se,ge,!0)}})}l(L),l(m),D(()=>Ee(m,1,`flex min-h-0 w-[24rem] shrink-0 border-l bg-panel p-3 max-md:absolute max-md:inset-x-0 max-md:bottom-0 max-md:z-10 max-md:h-[88%] max-md:w-auto max-md:overflow-y-auto max-md:overscroll-contain max-md:rounded-t-2xl max-md:border-t max-md:border-l-0 max-md:px-2 max-md:pt-0 max-md:pb-2 max-md:shadow-2xl xl:w-[26rem] ${n(O)?"max-md:hidden":""}`)),N("click",ue,()=>w(d,!1)),p(h,m)},P=h=>{var m=za(),L=c(m);bt(L,{class:"size-4","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!0)),p(h,m)};z(J,h=>{n(i)&&n(d)&&e.taskId?h(T):n(i)&&h(P,1)})}l(j);var V=f(j,2),Q=c(V),A=c(Q);{var C=h=>{jn(h,{class:"size-5","aria-hidden":"true"})},ae=h=>{Rn(h,{class:"size-5","aria-hidden":"true"})};z(A,h=>{n(u)?h(C):h(ae,-1)})}l(Q);var Z=f(Q,2);{var x=h=>{var m=Ca(),L=c(m);Bt(L,{class:"size-5","aria-hidden":"true"}),l(m),D(()=>R(m,"href",n(ne))),p(h,m)};z(Z,h=>{(n(Y)||n(S)?.state==="blocked")&&h(x)})}var k=f(Z,2);{var ce=h=>{var m=Sa(),L=c(m);bt(L,{class:"size-4 shrink-0","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!0)),p(h,m)};z(k,h=>{n(i)&&!n(d)&&h(ce)})}var De=f(k,2);{var je=h=>{var m=Ta(),L=c(m);Ht(L,{get preview(){return n(ee)}}),l(m),p(h,m)};z(De,h=>{n(ee)&&h(je)})}l(V),l(B),Xe(B,h=>w(I,h),()=>n(I)),un(B,h=>tr?.(h)),D(()=>{R(B,"aria-label",`Live preview of ${e.title??""}, full screen`),W(oe,e.title),W(v,e.title),R(y,"title",n(ne)),W($,n(pe)),H.disabled=!n(S),R(H,"aria-label",n(Y)?"Reload the preview":"Check the preview again"),R(Q,"aria-pressed",n(u)),R(Q,"aria-label",n(u)?"Show at the phone’s width":"Show at a desktop’s width")}),N("click",me,function(...h){e.onclose?.apply(this,h)}),N("click",ke,function(...h){e.onclose?.apply(this,h)}),N("click",H,()=>n(g)?.reload()),N("click",Q,()=>w(u,!n(u))),vn(3,B,()=>wn,()=>({from:s()})),p(t,B),Oe()}ut(["click"]);function ys(t,e){Ne(e,!0);let r=q(e,"talk",3,!0),a=q(e,"board",3,!1),s=q(e,"from",3,null);const o=fn()&&!!e.taskId&&r()&&!a()&&!Ct();zt(()=>{if(!o||!e.taskId)return;const g=hn(e.taskId),S=window.open(g,"_blank");S?S.opener=null:location.assign(g),e.onclose()});var i=Be(),d=Se(i);{var u=g=>{Aa(g,{get taskId(){return e.taskId},get title(){return e.title},get url(){return e.url},get talk(){return r()},get board(){return a()},get from(){return s()},get onclose(){return e.onclose}})};z(d,g=>{o||g(u)})}p(t,i),Oe()}export{vs as A,Tr as L,Pt as M,ys as P,ms as S,Yn as a,Qr as b,ds as c,Ct as d,Lt as e,Br as f,bs as g,fs as h,hs as i,Dt as j,cs as k,xs as l,nr as m,ps as n,gs as o,et as p,xa as q,ws as r,us as s,Ht as t,Jt as u,yt as v,_s as w,K as x,ks as y,Fn as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{s as n,r as a}from"./D42BPZCD.js";import{I as o}from"./DBuj1e9B.js";import{p as l}from"./MoV8bfgL.js";var p=new Set(["$$slots","$$events","$$legacy"]);function $(s,e){let t=a(e,p);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};o(s,n(()=>t,{get icon(){return r}}))}const c="{url}";function u(s,e,t){const r=e&&Object.hasOwn(s,e)?s[e]:null;return typeof r!="string"?{href:t.url,external:!0}:{href:r.replace(c,encodeURIComponent(t.url)),external:!1}}const x={review(s,e){const t=l.data?.pullRequestTabs??{};return u(t,s,e)}};export{$ as C,x as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{o as zt}from"./B42VotjV.js";import{p as ut,i as V,j as Dt,u as wt,f as ae,e as y,o as E,s as o,g as e,r as u,t as w,a as r,b as vt,h as re,m as s,n as Se,A as be,c as i,q as He,y as We,k as Lt,v as Ot,w as It}from"./CEfkcOME.js";import{d as Wt,s as h,e as kt,a as rt,l as Ft}from"./CPPNfCxh.js";import{i as $}from"./D4ikcNuh.js";import{k as Ut}from"./D5xbT1cY.js";import{c as Ht}from"./CGbw525c.js";import{r as xt,s as ie,e as $e,f as Ke,c as Vt,a as qt,d as De,k as Kt,h as Bt}from"./BMjXQSgN.js";import{s as Pt,r as At,p as at}from"./D42BPZCD.js";import{a as Jt}from"./WRwU91GU.js";import{b as Zt}from"./B6yYMcjx.js";import{p as ct}from"./MoV8bfgL.js";import{S as jt}from"./BXN538J3.js";import{s as _t,a as Gt,S as Yt}from"./C14pDzYB.js";import{B as Me}from"./D4Okmn3b.js";import{L as Xt}from"./Cb5RrIpk.js";import{K as St}from"./56FYNR0s.js";import{C as Qt}from"./iInrZOCY.js";import{I as Nt}from"./DBuj1e9B.js";import{E as er}from"./CUX8nq8d.js";import{b as yt}from"./DKCbih8n.js";import{a as bt}from"./D8swcNrI.js";import{s as tr}from"./B6OgCkTR.js";import{l as Mt,e as rr}from"./C9b5_KhQ.js";import{L as Rt}from"./BMEfZRmb.js";import{P as ar}from"./C0oq3sur.js";import{C as nr}from"./DjjMMxuF.js";import{C as or}from"./BftdAJED.js";import{X as sr}from"./C6E-ekUK.js";import{C as ir}from"./BkDaGfWb.js";import{C as lr}from"./L6sq18qu.js";import{E as dr}from"./BexGUSY7.js";import{P as cr}from"./362kFTNq.js";const ur=/https?:\/\/[^\s<>"'`]+/g,vr=/[.,;:!?)\]}'"*]+$/;function fr(a){return[...a.matchAll(ur)].map(t=>t[0].replace(vr,""))}var mr=new Set(["$$slots","$$events","$$legacy"]);function pr(a,t){let m=At(t,mr);const g={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};Nt(a,Pt(()=>m,{get icon(){return g}}))}var hr=new Set(["$$slots","$$events","$$legacy"]);function gr(a,t){let m=At(t,hr);const g={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Nt(a,Pt(()=>m,{get icon(){return g}}))}var xr=i('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),_r=i('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),yr=i('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),br=i('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),wr=i('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),kr=i('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),jr=i('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Sr=i('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Mr=i('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Er=i('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Tr=i('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),zr=i('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Pr=i('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Ar=i('<span class="text-xs text-muted-foreground">No project yet</span>'),Nr=i('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Rr=i('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),Cr=i('<div class="flex flex-wrap gap-2"><!> <!></div>'),$r=i('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Dr=i('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),Lr=i('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),Or=i('<a class="text-sea hover:underline"> </a>'),Ir=i('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),Wr=i('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),Fr=i('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function Ur(a,t){ut(t,!0);const m=(n,c=He,f=He,b=He)=>{var J=xr(),d=y(J);xt(d);var k=o(d,2),q=y(k);{var se=ee=>{pr(ee,{class:"size-4"})},me=ee=>{er(ee,{class:"size-4"})};$(q,ee=>{e(S)?ee(se):ee(me,-1)})}u(k),u(J),w(ee=>{ie(d,"id",c()),ie(d,"type",e(S)?"text":"password"),Vt(d,ee),d.disabled=e(Z),ie(k,"aria-label",e(S)?"Hide what you typed":"Show what you typed"),ie(k,"aria-pressed",e(S))},[()=>f()()]),rt("input",d,ee=>b()(ee.currentTarget.value)),rt("click",k,()=>s(S,!e(S))),r(n,J)},g=(n,c=He,f=He,b=He)=>{var J=We(),d=ae(J);{var k=se=>{var me=yr();$e(me,20,()=>e(l),ee=>ee,(ee,Le)=>{var Ue=_r(),te=y(Ue);xt(te);var _e=o(te,2),ze=E(_e,!0);u(Ue),w(ke=>{qt(te,ke),te.disabled=e(Z),h(ze,Le)},[()=>f().includes(Le)]),rt("change",te,ke=>{const Ve=ke.currentTarget;b()(Le,Ve.checked,Ve)}),r(ee,Ue)}),u(me),w(()=>ie(me,"aria-label",c())),r(se,me)},q=se=>{var me=br();r(se,me)};$(d,se=>{e(l).length?se(k):se(q,-1)})}r(n,J)},T=re(()=>t.data);let x=V(null);const P=re(()=>{const n=t.entry.content.available?Date.parse(t.entry.content.observedAt??""):NaN;return e(x)&&!(n>e(x).at)?e(x).secrets:e(T).secrets}),l=re(()=>{const n=(ct.data.fleet?.projects??[]).map(f=>f.id),c=e(P).flatMap(f=>f.projects).filter(f=>!n.includes(f));return[...n,...[...new Set(c)].sort()]});let C=V(null),K=V(!1),ue=V(null),ne=V(null),Z=V(!1),ve=V(null),xe=V(null),D=V(""),A=V(""),W=V(Dt([])),S=V(!1),v=V(""),j=V(""),N=V(null);const R=re(()=>e(N)?.canStore===!1);function z(){fetch("/api/vault").then(n=>n.ok?n.json():null).then(n=>{n&&s(N,n,!0)}).catch(()=>{})}wt(z);function L(n){if(!n)return"Never";const c=new Date(n);if(Number.isNaN(c.getTime()))return n;const f=b=>String(b).padStart(2,"0");return`${c.getFullYear()}-${f(c.getMonth()+1)}-${f(c.getDate())} ${f(c.getHours())}:${f(c.getMinutes())}`}function p(){s(A,""),s(j,""),s(S,!1)}function M(){s(D,""),s(W,[],!0),s(v,""),s(ve,null),s(xe,null),p(),s(K,!0)}function H(){s(K,!1),p()}async function O(n){s(Z,!0),s(xe,null),s(ve,null);try{const c=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[jt]:ct.data.sessionToken},body:JSON.stringify(n)}),f=await c.json().catch(()=>null);return c.ok?(f?.secrets&&s(x,{secrets:f.secrets,at:Date.parse(f.observedAt??"")||Date.now()},!0),s(ve,f?.message??"Done.",!0),!0):(s(xe,f?.message??`Wheelhouse could not do that (${c.status}).`,!0),c.status===503&&z(),!1)}catch{return s(xe,"Wheelhouse could not be reached. Try again."),!1}finally{s(Z,!1)}}async function F(n){if(n.preventDefault(),!Yt.test(e(D))){s(v,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(A))return;const c={action:"set",name:e(D),value:e(A),projects:e(W)};s(A,""),s(S,!1),await O(c)&&(s(K,!1),s(C,e(D),!0))}async function B(n,c){if(n.preventDefault(),!e(j))return;const f={action:"set",name:c.name,value:e(j),projects:[]};s(j,""),s(S,!1),await O(f)&&s(ue,null)}async function le(n,c,f,b){await O({action:f?"grant":"revoke",name:n.name,projects:[c]})||(b.checked=!f)}async function I(n){await O({action:"remove",name:n.name})&&(s(ne,null),s(C,null))}function de(n){s(C,e(C)===n?null:n,!0),s(ne,null),s(ue,null),p()}var Fe=Fr(),tt=ae(Fe),ot=y(tt),ft=E(ot),Ye=o(ot,2);{var mt=n=>{{let c=re(()=>e(Z)||e(R));Me(n,{onclick:M,get disabled(){return e(c)},children:(f,b)=>{Se();var J=be("Add a secret");r(f,J)},$$slots:{default:!0}})}};$(Ye,n=>{e(P).length&&!e(K)&&n(mt)})}u(tt);var st=o(tt,2);{var _=n=>{var c=wr(),f=E(c,!0);w(()=>h(f,e(N)?.reason??"The vault cannot store a secret on this computer.")),r(n,c)};$(st,n=>{e(R)&&n(_)})}var U=o(st,2);{var oe=n=>{var c=kr(),f=E(c,!0);w(()=>h(f,e(ve))),r(n,c)};$(U,n=>{e(ve)&&n(oe)})}var pe=o(U,2);{var Re=n=>{var c=jr(),f=E(c,!0);w(()=>h(f,e(xe))),r(n,c)};$(pe,n=>{e(xe)&&n(Re)})}var fe=o(pe,2);{var Ee=n=>{var c=Sr(),f=E(c,!0);w(()=>h(f,e(T).problem)),r(n,c)};$(fe,n=>{e(T).problem&&n(Ee)})}var he=o(fe,2);{var X=n=>{var c=Tr(),f=o(y(c),4),b=y(f),J=o(y(b),2);xt(J);var d=o(J,2);{var k=Y=>{var je=Mr(),Ce=E(je,!0);w(()=>h(Ce,e(v))),r(Y,je)},q=Y=>{var je=Er();r(Y,je)};$(d,Y=>{e(v)?Y(k):Y(q,-1)})}u(b);var se=o(b,2),me=o(y(se),2);m(me,()=>"vault-value",()=>()=>e(A),()=>Y=>s(A,Y,!0));var ee=o(me,2),Le=y(ee);Xt(Le,{class:"mt-px size-3.5 shrink-0"});var Ue=o(Le);u(ee),u(se);var te=o(se,2),_e=o(y(te),4);g(_e,()=>"Projects that may use it",()=>e(W),()=>(Y,je)=>{s(W,je?[...e(W),Y]:e(W).filter(Ce=>Ce!==Y),!0)}),u(te);var ze=o(te,2),ke=y(ze);{let Y=re(()=>e(Z)||!e(D)||!e(A)||e(R));Me(ke,{type:"submit",get disabled(){return e(Y)},children:(je,Ce)=>{Se();var Xe=be("Store secret");r(je,Xe)},$$slots:{default:!0}})}var Ve=o(ke,2);Me(Ve,{type:"button",variant:"outline",get disabled(){return e(Z)},onclick:H,children:(Y,je)=>{Se();var Ce=be("Cancel");r(Y,Ce)},$$slots:{default:!0}}),u(ze),u(f),u(c),w(Y=>{J.disabled=e(Z),ie(J,"aria-invalid",e(v)?"true":void 0),h(Ue,` Goes straight into ${Y??""}. Wheelhouse cannot show it again.`)},[()=>_t(e(N))]),kt("submit",f,F),rt("input",J,()=>s(v,"")),Zt(J,()=>e(D),Y=>s(D,Y)),r(n,c)};$(he,n=>{e(K)&&n(X)})}var G=o(he,2);{var Q=n=>{var c=zr(),f=y(c);St(f,{class:"size-6 text-brass","aria-hidden":"true"});var b=o(f,6);{let J=re(()=>e(Z)||e(R));Me(b,{class:"mt-5",onclick:M,get disabled(){return e(J)},children:(d,k)=>{Se();var q=be("Add a secret");r(d,q)},$$slots:{default:!0}})}u(c),r(n,c)},ce=n=>{var c=Lr();$e(c,21,()=>e(P),f=>f.name,(f,b)=>{var J=Dr(),d=y(J),k=y(d);St(k,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var q=o(k,2),se=E(q,!0),me=o(q,2);$e(me,20,()=>e(b).projects,te=>te,(te,_e)=>{var ze=Pr(),ke=E(ze,!0);w(()=>h(ke,_e)),r(te,ze)},te=>{var _e=Ar();r(te,_e)}),u(me);var ee=o(me,2);{let te=re(()=>e(C)===e(b).name?"rotate-90":"");Qt(ee,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(te)??""}`},"aria-hidden":"true"})}u(d);var Le=o(d,2);{var Ue=te=>{var _e=$r(),ze=y(_e),ke=o(y(ze),2);g(ke,()=>`Projects that may use ${e(b).name}`,()=>e(b).projects,()=>(Pe,ye,Ae)=>le(e(b),Pe,ye,Ae));var Ve=o(ke,2),Y=E(Ve,!0);u(ze);var je=o(ze,2),Ce=y(je),Xe=y(Ce),Oe=o(Xe,2);u(Ce);var Ie=o(Ce,2);{var pt=Pe=>{var ye=Nr(),Ae=o(y(ye),2);m(Ae,()=>"vault-replace",()=>()=>e(j),()=>Ne=>s(j,Ne,!0));var Be=o(Ae,2),qe=y(Be);{let Ne=re(()=>e(Z)||!e(j));Me(qe,{type:"submit",size:"sm",get disabled(){return e(Ne)},children:(Je,it)=>{Se();var Ze=be("Replace");r(Je,Ze)},$$slots:{default:!0}})}var Qe=o(qe,2);Me(Qe,{type:"button",size:"sm",variant:"outline",get disabled(){return e(Z)},onclick:()=>{s(ue,null),p()},children:(Ne,Je)=>{Se();var it=be("Cancel");r(Ne,it)},$$slots:{default:!0}}),u(Be),u(ye),kt("submit",ye,Ne=>B(Ne,e(b))),r(Pe,ye)},ht=Pe=>{var ye=Rr(),Ae=ae(ye),Be=o(y(Ae)),qe=E(Be,!0),Qe=o(Be);u(Ae);var Ne=o(Ae,2),Je=y(Ne);Me(Je,{size:"sm",variant:"destructive",get disabled(){return e(Z)},onclick:()=>I(e(b)),children:(Ze,$t)=>{Se();var gt=be("Remove");r(Ze,gt)},$$slots:{default:!0}});var it=o(Je,2);Me(it,{size:"sm",variant:"outline",get disabled(){return e(Z)},onclick:()=>s(ne,null),children:(Ze,$t)=>{Se();var gt=be("Keep it");r(Ze,gt)},$$slots:{default:!0}}),u(Ne),w(Ze=>{h(qe,e(b).name),h(Qe,`? Its value is deleted from ${Ze??""} and every project loses it. This cannot be undone.`)},[()=>_t(e(N))]),r(Pe,ye)},Ct=Pe=>{var ye=Cr(),Ae=y(ye);{let qe=re(()=>e(Z)||e(R));Me(Ae,{size:"sm",variant:"outline",get disabled(){return e(qe)},onclick:()=>{s(ue,e(b).name,!0),s(ve,null)},children:(Qe,Ne)=>{Se();var Je=be("Replace value");r(Qe,Je)},$$slots:{default:!0}})}var Be=o(Ae,2);Me(Be,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e(Z)},onclick:()=>s(ne,e(b).name,!0),children:(qe,Qe)=>{Se();var Ne=be("Remove…");r(qe,Ne)},$$slots:{default:!0}}),u(ye),r(Pe,ye)};$(Ie,Pe=>{e(ue)===e(b).name?Pe(pt):e(ne)===e(b).name?Pe(ht,1):Pe(Ct,-1)})}u(je),u(_e),w((Pe,ye,Ae)=>{ie(_e,"id",`vault-${e(b).name??""}`),h(Y,Pe),h(Xe,`Value set ${ye??""}`),h(Oe,`Last used ${Ae??""}`)},[()=>e(b).projects.length?`A command ${Gt(e(b).projects)} ${e(b).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>L(e(b).updatedAt),()=>L(e(b).lastUsedAt)]),r(te,_e)};$(Le,te=>{e(C)===e(b).name&&te(Ue)})}u(J),w(()=>{ie(d,"aria-expanded",e(C)===e(b).name),ie(d,"aria-controls",`vault-${e(b).name??""}`),h(se,e(b).name)}),rt("click",d,()=>de(e(b).name)),r(f,J)}),u(c),r(n,c)};$(G,n=>{!e(P).length&&!e(K)?n(Q):e(P).length&&n(ce,1)})}var we=o(G,2);{var Te=n=>{var c=Wr(),f=o(ae(c),2),b=y(f),J=o(y(b));$e(J,21,()=>e(T).used,Ke,(d,k)=>{var q=Ir(),se=y(q),me=E(se,!0),ee=o(se),Le=y(ee);{var Ue=Oe=>{var Ie=Or(),pt=E(Ie,!0);w(ht=>{ie(Ie,"href",`/tasks/${ht??""}`),h(pt,e(k).task)},[()=>encodeURIComponent(e(k).task)]),r(Oe,Ie)},te=Oe=>{var Ie=be();w(()=>h(Ie,e(k).task??"—")),r(Oe,Ie)};$(Le,Oe=>{e(k).task&&e(k).taskKnown?Oe(Ue):Oe(te,-1)})}u(ee);var _e=o(ee),ze=E(_e,!0),ke=o(_e),Ve=E(ke,!0),Y=o(ke),je=E(Y,!0),Ce=o(Y),Xe=E(Ce,!0);u(q),w((Oe,Ie)=>{h(me,Oe),h(ze,e(k).project??"—"),h(Ve,Ie),h(je,e(k).program??"—"),h(Xe,e(k).result)},[()=>L(e(k).at),()=>e(k).names.join(", ")||"—"]),r(d,q)}),u(J),u(b),u(f),r(n,c)};$(we,n=>{e(T).used.length&&n(Te)})}w(n=>h(ft,`Secrets your projects can use by name. Values stay in ${n??""}; Wheelhouse never
|
|
2
|
+
shows one.`),[()=>_t(e(N))]),r(a,Fe),vt()}Wt(["input","click","change"]);const Hr={"vault/overview":Ur},Vr="2026-01-26";class ge extends Error{constructor(t,m){super(m),this.code=t}code}const qr=-32601,et=-32602,Ge=-32e3,Kr=a=>typeof a=="string"&&a.length<=128||typeof a=="number"&&Number.isFinite(a);function Br(a){if(typeof a!="object"||a===null||Array.isArray(a))return null;const t=a;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!Kr(t.id)||t.method===void 0&&t.id===void 0?null:t}class Jr{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const m=Br(t);if(m){if(m.method!==void 0&&m.id!==void 0)this.answer(m.id,m.method,m.params);else if(m.method!==void 0)try{this.o.onNotification(m.method,m.params)}catch{}else if(m.id!==void 0){const g=this.pending.get(m.id);if(!g)return;this.pending.delete(m.id),clearTimeout(g.timer),m.error?g.reject(new ge(m.error.code,String(m.error.message))):g.resolve(m.result)}}}async answer(t,m,g){let T;try{const x=await this.o.onRequest(m,g);T={jsonrpc:"2.0",id:t,result:x??{}}}catch(x){const P=x instanceof ge?x:new ge(Ge,x instanceof Error?x.message:String(x));T={jsonrpc:"2.0",id:t,error:{code:P.code,message:P.message}}}this.closed||this.o.send(T)}request(t,m,g=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const T=this.next++;return new Promise((x,P)=>{const l=setTimeout(()=>{this.pending.delete(T),P(new Error(`The app did not answer ${t}.`))},g);this.pending.set(T,{resolve:x,reject:P,timer:l}),this.o.send({jsonrpc:"2.0",id:T,method:t,params:m})})}notify(t,m){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:m})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const dt=a=>typeof a=="object"&&a!==null&&!Array.isArray(a)?a:{},Zr=16*1024;function Gr(a,t,m){return async(g,T)=>{const x=dt(T);switch(g){case"ui/initialize":return{protocolVersion:Vr,hostInfo:t,hostCapabilities:m,hostContext:a.context()};case"ping":return{};case"tools/call":{if(typeof x.name!="string"||!x.name)throw new ge(et,"Name the tool to call.");return a.callTool(x.name,dt(x.arguments))}case"resources/read":{if(typeof x.uri!="string"||!x.uri)throw new ge(et,"Name the resource to read.");return a.readResource(x.uri)}case"ui/open-link":{let P;try{P=new URL(String(x.url))}catch{throw new ge(et,"Invalid URL")}if(P.protocol!=="http:"&&P.protocol!=="https:")throw new ge(Ge,"Policy violation: only http(s) links open.");return a.openLink(P.href),{}}case"ui/message":{const l=(Array.isArray(x.content)?x.content:[x.content]).map(C=>dt(C)).filter(C=>C.type==="text"&&typeof C.text=="string").map(C=>C.text).join(`
|
|
3
|
+
|
|
4
|
+
`).trim();if(!l)throw new ge(et,"Invalid message format: no text.");if(l.length>Zr)throw new ge(et,"The message is too long.");if(!await a.sendMessage(l))throw new ge(Ge,"Message sending denied");return{}}case"ui/request-display-mode":{const P=x.mode;if(P!=="inline"&&P!=="fullscreen"&&P!=="pip")throw new ge(et,"Unknown display mode.");return{mode:await a.displayMode(P)}}default:throw new ge(qr,`Wheelhouse does not offer ${g}.`)}}}function Yr(a){return(t,m)=>{const g=dt(m),T=x=>typeof x=="number"&&Number.isFinite(x)&&x>=0?Math.min(x,1e5):void 0;t==="ui/notifications/initialized"?a.initialized():t==="ui/notifications/size-changed"?a.resize({width:T(g.width),height:T(g.height)}):t==="notifications/message"&&a.log(typeof g.level=="string"?g.level:"info",g.data)}}const Xr={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function Qr(a){const t={};for(const[m,g]of Object.entries(Xr)){const T=a(g).trim();T&&(t[m]=T)}return t}function ea(a,t,m){const g=Math.round(a.width);return t?{width:g,height:Math.round(a.height)}:{width:g,maxHeight:m}}function ta(a){return{toolInfo:{tool:a.tool},theme:a.theme,styles:{variables:a.styles},displayMode:a.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:a.dimensions,...a.locale?{locale:a.locale}:{},...a.timeZone?{timeZone:a.timeZone}:{},userAgent:`wheelhouse/${a.version}`,platform:"web",deviceCapabilities:{hover:a.hover??!0,touch:a.touch??!1}}}function ra(a){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:a}}}const aa=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function na(a){return[...new Set(aa.flatMap(t=>a[t]??[]))]}async function nt(a,t,m){let g;try{g=await fetch(`/api/apps/${a}`,{method:"POST",headers:{"content-type":"application/json",[jt]:m},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const T=await g.json().catch(()=>null);if(T&&(g.ok||"ok"in T||"state"in T))return T;throw new Error(T?.message??`Wheelhouse answered ${g.status}.`)}const oa=(a,t)=>nt("open",a,t),sa=(a,t)=>nt("run",a,t),Et=(a,t,m)=>nt("call",{...a,...t},m),ia=(a,t,m)=>nt("read",{...a,uri:t},m),Cn=(a,t)=>nt("chat",{calls:a},t);async function la(a,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[jt]:t},body:JSON.stringify(a)})).json().catch(()=>null)}catch{return null}}var da=i('<p aria-busy="true">Opening the app…</p>'),ca=i("<!>Starting…",1),ua=i("<!> ",1),va=i('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),fa=i('<div data-app-service=""><p> </p> <!></div>'),ma=i("<p> </p>"),pa=i("<!>Exit full screen",1),ha=i('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),ga=i('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),xa=i('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),_a=i('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ya=i('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),ba=i('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function wa(a,t){ut(t,!0);const m=720;let g=at(t,"fill",3,!1),T=at(t,"maxHeight",3,m);const x=()=>ct.data.sessionToken??"",P=()=>ct.data.health?.version??"0.0.0";let l=V("opening"),C=V(null),K=V(null),ue=V(""),ne=V(null),Z=V(null),ve=V(!1),xe=V(160),D=V("inline"),A=V(null),W=V(null),S=V(()=>{}),v=V(null),j=V(null),N=Promise.resolve();function R(_){const U=N.then(()=>new Promise(oe=>{s(v,{..._,answer:pe=>{s(v,null),oe(pe)}},!0)}));return N=U.catch(()=>{}),U}wt(()=>{e(j)&&(e(v)&&!e(j).open?e(j).showModal():!e(v)&&e(j).open&&e(j).close())});async function z(){s(l,"opening"),s(ne,null);try{const _=await oa(t.ref,x());_.state==="ready"?(s(C,_),s(ue,_.server.title,!0),s(l,"ready")):_.state==="service"?(s(K,_.service),s(ue,_.server.title,!0),s(l,"service")):(s(ne,_.reason,!0),s(l,"failed"))}catch(_){s(ne,_.message,!0),s(l,"failed")}}async function L(){if(!e(K))return;s(ve,!0);const _=await la({plugin:e(K).plugin,service:e(K).service,project:e(K).project},x());s(ve,!1),_?.state==="running"?await z():s(K,_??e(K))}zt(()=>{z()});const p=re(()=>{if(!e(C))return null;const _=new URL(bt.sandbox(e(C).sandbox));return _.searchParams.set("host",location.origin),_.href}),M=re(()=>e(C)?na(e(C).csp):[]),H=()=>document.documentElement.classList.contains("dark")?"dark":"light",O=()=>{const _=getComputedStyle(document.documentElement);return Qr(U=>_.getPropertyValue(U))},F=()=>{const _=e(A)?.getBoundingClientRect()??{width:0,height:0};return e(D)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:ea(_,g(),T())};wt(()=>{if(!e(C)||!e(W))return;const _=e(C),U=e(W);return Lt(()=>B(_,U))});function B(_,U){const oe=new URL(bt.sandbox(_.sandbox)).origin,pe=t.ref;let Re=!1,fe=null,Ee="";const he=sa(pe,x()).catch(d=>({ok:!1,reason:d.message})),X=d=>U.contentWindow?.postMessage(d,oe),G={context:()=>ta({tool:_.tool,theme:H(),styles:O(),displayMode:e(D),dimensions:F(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:P()}),async callTool(d,k){let q=await Et(pe,{name:d,arguments:k,confirmed:!1},x());if(!q.ok&&q.confirm){if(!await R({kind:"tool",title:q.confirm.title,description:q.confirm.description,args:JSON.stringify(k,null,2)}))throw new ge(Ge,"The captain declined the call.");q=await Et(pe,{name:d,arguments:k,confirmed:!0},x())}if(!q.ok)throw new ge(Ge,q.reason);return q.result},async readResource(d){const k=await ia(pe,d,x());if(!k.ok)throw new ge(Ge,k.reason);return k.result},async sendMessage(d){if(!await R({kind:"message",text:d}))return!1;const k=await tr(`From the “${t.title}” app (${t.plugin} plugin):
|
|
5
|
+
|
|
6
|
+
${d}`,x());if(!k.ok)throw new ge(Ge,k.error);return!0},openLink(d){window.open(bt.view(d),"_blank","noopener,noreferrer")},async displayMode(d){return!(d==="inline"||d==="fullscreen")||fe&&!fe.includes(d)?e(D):(d!==e(D)&&await we(d),e(D))},resize({height:d}){d!==void 0&&!g()&&e(D)==="inline"&&s(xe,Math.max(40,Math.min(d,T())),!0)},log(d,k){console.info(`[${t.plugin} app] ${d}:`,k)},initialized(){Re||(Re=!0,Ee=JSON.stringify(F()),ce.notify("ui/notifications/tool-input",{arguments:_.input}),he.then(d=>{d.ok?ce.notify("ui/notifications/tool-result",d.result):(s(Z,`The app’s tool did not run: ${d.reason}`),ce.notify("ui/notifications/tool-cancelled",{reason:d.reason}))}))}},Q=Gr(G,{name:"wheelhouse",version:P()},ra({..._.csp})),ce=new Jr({send:X,onRequest:(d,k)=>{if(d==="ui/initialize"){const q=k?.appCapabilities;Array.isArray(q?.availableDisplayModes)&&(fe=q.availableDisplayModes)}return Q(d,k)},onNotification:Yr(G)});async function we(d){s(D,d,!0),d==="fullscreen"&&e(A)?await rr(e(A)):Mt(e(A)),Te({displayMode:e(D)})}s(S,()=>{we("inline")});function Te(d={}){if(!Re)return;const k=F(),q=JSON.stringify(k),se={...d,...q!==Ee?{containerDimensions:k}:{}};Ee=q,Object.keys(se).length&&ce.notify("ui/notifications/host-context-changed",se)}let n=!1;const c=d=>{if(d.source!==U.contentWindow||d.origin!==oe)return;const k=d.data;if(k&&k.method==="ui/notifications/sandbox-proxy-ready"){if(n)return;n=!0,X({jsonrpc:"2.0",method:"ui/notifications/sandbox-resource-ready",params:{html:_.html,csp:_.csp}});return}ce.receive(d.data)};window.addEventListener("message",c);const f=new MutationObserver(()=>Te({theme:H(),styles:{variables:O()}}));f.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});const b=new ResizeObserver(()=>Te());e(A)&&b.observe(e(A));const J=()=>{!document.fullscreenElement&&e(D)==="fullscreen"&&we("inline")};return document.addEventListener("fullscreenchange",J),()=>{Re&&ce.request("ui/resource-teardown",{},1e3).catch(()=>{}),ce.close(),window.removeEventListener("message",c),f.disconnect(),b.disconnect(),document.removeEventListener("fullscreenchange",J),Mt(e(A)),s(S,()=>{})}}const le=re(()=>e(C)?.prefersBorder!==!1);var I=ba(),de=ae(I);{var Fe=_=>{var U=da();w(()=>De(U,1,`text-sm text-muted-foreground ${g()?"px-4 py-10 sm:px-6":""}`)),r(_,U)},tt=_=>{var U=fa(),oe=y(U),pe=E(oe),Re=o(oe,2);{var fe=he=>{Me(he,{class:"mt-3",size:"sm",get disabled(){return e(ve)},onclick:L,children:(X,G)=>{var Q=We(),ce=ae(Q);{var we=n=>{var c=ca(),f=ae(c);Rt(f,{class:"size-4 animate-spin","aria-hidden":"true"}),Se(),r(n,c)},Te=n=>{var c=ua(),f=ae(c);ar(f,{class:"size-4","aria-hidden":"true"});var b=o(f);w(()=>h(b,`Start ${e(K).title??""}`)),r(n,c)};$(ce,n=>{e(ve)?n(we):n(Te,-1)})}r(X,Q)},$$slots:{default:!0}})},Ee=he=>{var X=va(),G=o(y(X)),Q=E(G,!0);u(X),w(()=>h(Q,e(K).hint)),r(he,X)};$(Re,he=>{e(K).launchable?he(fe):e(K).hint&&he(Ee,1)})}u(U),w(()=>{De(U,1,`text-sm ${g()?"px-4 py-10 sm:px-6":""}`),h(pe,`The app runs on ${e(K).title??""}, which is not running.${e(K).reason?` ${e(K).reason}`:""}`)}),r(_,U)},ot=_=>{var U=ma(),oe=E(U);w(()=>{De(U,1,`text-sm text-muted-foreground ${g()?"px-4 py-10 sm:px-6":""}`),h(oe,`Not available. ${e(ne)??""}`)}),r(_,U)},ft=_=>{var U=ga(),oe=ae(U),pe=y(oe);{var Re=G=>{var Q=ha(),ce=y(Q),we=E(ce,!0),Te=o(ce,2);Me(Te,{variant:"outline",size:"sm",onclick:()=>e(S)(),children:(n,c)=>{var f=pa(),b=ae(f);gr(b,{class:"size-4","aria-hidden":"true"}),Se(),r(n,f)},$$slots:{default:!0}}),u(Q),w(()=>h(we,t.title)),r(G,Q)};$(pe,G=>{e(D)==="fullscreen"&&G(Re)})}var fe=o(pe,2);let Ee;yt(fe,G=>s(W,G),()=>e(W)),u(oe),yt(oe,G=>s(A,G),()=>e(A));var he=o(oe,2),X=E(he);w(G=>{De(oe,1,Kt(e(D)==="fullscreen"?"fixed inset-0 z-50 flex flex-col bg-background":g()?"flex min-h-0 flex-1 flex-col":"")),ie(oe,"data-app","chat"in t.ref?`chat/${t.ref.chat}`:`${t.ref.plugin}/${t.ref.contribution}`),ie(fe,"src",e(p)),ie(fe,"title",`${t.title}: an app from ${e(C).server.title}`),De(fe,1,`block w-full ${e(D)==="fullscreen"||g()?"min-h-0 flex-1":""} ${e(le)&&e(D)==="inline"?"rounded-md border bg-card":""}`),Ee=Bt(fe,"",Ee,{height:e(D)==="inline"&&!g()?`${e(xe)}px`:null}),De(he,1,`text-xs text-muted-foreground ${g()?"px-4 pt-1.5 sm:px-6":"mt-1.5"}`),h(X,`An MCP app from ${e(C).server.title??""}, in a sandbox${G??""}.${e(Z)?` ${e(Z)}`:""}`)},[()=>e(M).length?`; it may reach ${e(M).join(", ")}`:", with no network access"]),r(_,U)};$(de,_=>{e(l)==="opening"?_(Fe):e(l)==="service"&&e(K)?_(tt,1):e(l)==="failed"?_(ot,2):e(C)&&e(p)&&_(ft,3)})}var Ye=o(de,2),mt=y(Ye);{var st=_=>{var U=ya(),oe=y(U);{var pe=X=>{var G=xa(),Q=ae(G),ce=E(Q),we=o(Q,2),Te=E(we),n=o(we,2),c=E(n,!0);w(()=>{h(ce,`Let the app run “${e(v).title??""}”?`),h(Te,`The ${t.title??""} app asks ${e(ue)??""} to run a tool that does not say it only reads, so it may
|
|
7
|
+
change something.${e(v).description?` ${e(v).description}`:""}`),h(c,e(v).args)}),r(X,G)},Re=X=>{var G=_a(),Q=o(ae(G),2),ce=E(Q),we=o(Q,2),Te=E(we,!0);w(()=>{h(ce,`The ${t.title??""} app wrote it. It goes as a message from you, marked as from the app.`),h(Te,e(v).text)}),r(X,G)};$(oe,X=>{e(v).kind==="tool"?X(pe):X(Re,-1)})}var fe=o(oe,2),Ee=y(fe);Me(Ee,{variant:"outline",onclick:()=>e(v)?.answer(!1),children:(X,G)=>{Se();var Q=be("No");r(X,Q)},$$slots:{default:!0}});var he=o(Ee,2);Me(he,{onclick:()=>e(v)?.answer(!0),children:(X,G)=>{Se();var Q=be();w(()=>h(Q,e(v).kind==="tool"?"Run it once":"Send it")),r(X,Q)},$$slots:{default:!0}}),u(fe),u(U),r(_,U)};$(mt,_=>{e(v)&&_(st)})}u(Ye),yt(Ye,_=>s(j,_),()=>e(j)),kt("close",Ye,()=>{e(j)?.open||e(v)?.answer(!1)}),r(a,I),vt()}function lt(a){if(typeof a!="string"||a.length>2048)return null;if(a.startsWith("/")&&!a.startsWith("//")&&!a.startsWith("/\\"))return a;try{const t=new URL(a);return t.protocol==="http:"||t.protocol==="https:"?a:null}catch{return null}}function $n(a,t){const m=new Set(fr(a));if(!m.size)return[];const g=[];for(const T of t)if(!(T.slot!=="bridge.card"||!T.content.available))for(const x of T.content.value)x.mentions.some(P=>m.has(P))&&g.push({entry:T,card:x});return g}var ka=i("<a> <!></a>"),ja=i('<p data-block="text.v1"> </p>'),Sa=i('<dt class="truncate text-muted-foreground"> </dt> <dd class="min-w-0 break-words"><!></dd>',1),Ma=i('<dl class="grid grid-cols-[minmax(0,8rem)_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm" data-block="kv.v1"></dl>'),Ea=i('<span class="ml-1.5 text-muted-foreground"> </span>'),Ta=i('<li class="min-w-0"><!><!></li>'),za=i('<ul class="flex flex-wrap gap-x-5 gap-y-1.5 text-sm" data-block="links.v1"></ul>'),Pa=i('<th class="px-3 py-2 font-medium"> </th>'),Aa=i('<thead class="border-b text-left text-xs text-muted-foreground"><tr></tr></thead>'),Na=i('<td class="px-3 py-2"><!></td>'),Ra=i("<tr></tr>"),Ca=i('<div class="overflow-x-auto rounded-lg border" data-block="table.v1"><table class="w-full text-sm"><!><tbody class="divide-y"></tbody></table></div>'),$a=i('<a target="_blank" rel="noreferrer"><img loading="lazy" class="max-h-96 rounded-lg border"/></a>'),Da=i('<img loading="lazy" class="max-h-96 rounded-lg border"/>'),La=i('<figure data-block="image.v1"><!></figure>'),Oa=i('<span class="block text-muted-foreground"> </span>'),Ia=i('<p class="flex items-start gap-2 text-sm" data-block="status.v1"><span aria-hidden="true"><!></span> <span class="min-w-0"><span> </span> <!></span></p>'),Wa=i('<span class="ml-1 text-muted-foreground"> </span>'),Fa=i('<li class="rounded-md bg-muted px-2 py-0.5 text-xs"> <!></li>'),Ua=i("<li> </li>"),Ha=i('<ul class="mt-2 space-y-0.5 font-mono text-xs text-muted-foreground"></ul>'),Va=i('<div class="rounded-lg border border-dashed p-3 text-sm" data-block="graph.v1"><p class="text-xs text-muted-foreground"> </p> <ul class="mt-2 flex flex-wrap gap-1.5"></ul> <!></div>'),qa=i('<pre class="mt-2 font-mono break-all whitespace-pre-wrap text-muted-foreground"> </pre>'),Ka=i('<div class="rounded-lg border border-dashed p-3 text-xs" data-block="unknown"><p class="flex items-center gap-1.5 text-muted-foreground"><!> </p> <!></div>'),Ba=i('<div class="space-y-3"></div>');function Ja(a,t){ut(t,!0);const m=(P,l=He,C=He,K)=>{let ue=Ot(()=>It(K?.(),"text-sea hover:underline"));const ne=re(()=>lt(C()));var Z=We(),ve=ae(Z);{var xe=A=>{var W=ka(),S=y(W,!0),v=o(S);{var j=R=>{dr(R,{class:"size-3.5 shrink-0","aria-hidden":"true"})},N=re(()=>T(e(ne)));$(v,R=>{e(N)&&R(j)})}u(W),w((R,z)=>{ie(W,"href",e(ne)),De(W,1,`inline-flex items-center gap-1 ${e(ue)??""}`),ie(W,"target",R),ie(W,"rel",z),h(S,l())},[()=>T(e(ne))?"_blank":void 0,()=>T(e(ne))?"noreferrer":void 0]),r(A,W)},D=A=>{var W=be();w(()=>h(W,l())),r(A,W)};$(ve,A=>{e(ne)?A(xe):A(D,-1)})}r(P,Z)},g={ok:"text-success",warn:"text-warning",fail:"text-danger",pending:"text-muted-foreground",unknown:"text-muted-foreground"},T=P=>!P.startsWith("/");var x=Ba();$e(x,21,()=>t.blocks,Ke,(P,l)=>{var C=We(),K=ae(C);{var ue=S=>{var v=ja(),j=E(v,!0);w(()=>{De(v,1,`text-sm leading-relaxed whitespace-pre-line ${e(l).muted?"text-muted-foreground":""}`),h(j,e(l).text)}),r(S,v)},ne=S=>{var v=Ma();$e(v,21,()=>e(l).items,Ke,(j,N)=>{var R=Sa(),z=ae(R),L=E(z,!0),p=o(z,2),M=y(p);m(M,()=>e(N).value,()=>e(N).href),u(p),w(()=>h(L,e(N).key)),r(j,R)}),u(v),r(S,v)},Z=S=>{var v=za();$e(v,21,()=>e(l).links,Ke,(j,N)=>{var R=Ta(),z=y(R);m(z,()=>e(N).label,()=>e(N).href);var L=o(z);{var p=M=>{var H=Ea(),O=E(H,!0);w(()=>h(O,e(N).note)),r(M,H)};$(L,M=>{e(N).note&&M(p)})}u(R),r(j,R)}),u(v),r(S,v)},ve=S=>{var v=Ca(),j=y(v),N=y(j);{var R=L=>{var p=Aa(),M=y(p);$e(M,21,()=>e(l).columns,Ke,(H,O)=>{var F=Pa(),B=E(F,!0);w(()=>h(B,e(O))),r(H,F)}),u(M),u(p),r(L,p)};$(N,L=>{e(l).columns.length&&L(R)})}var z=o(N);$e(z,21,()=>e(l).rows,Ke,(L,p)=>{var M=Ra();$e(M,21,()=>e(p),Ke,(H,O)=>{var F=Na(),B=y(F);{var le=de=>{var Fe=be();w(()=>h(Fe,e(O))),r(de,Fe)},I=de=>{m(de,()=>e(O).text,()=>e(O).href)};$(B,de=>{typeof e(O)=="string"?de(le):de(I,-1)})}u(F),r(H,F)}),u(M),r(L,M)}),u(z),u(j),u(v),r(S,v)},xe=S=>{const v=re(()=>lt(e(l).src));var j=We(),N=ae(j);{var R=z=>{var L=La(),p=y(L);{var M=F=>{var B=$a(),le=E(B);w(I=>{ie(B,"href",I),ie(le,"src",e(v)),ie(le,"alt",e(l).alt)},[()=>lt(e(l).href)]),r(F,B)},H=re(()=>lt(e(l).href)),O=F=>{var B=Da();w(()=>{ie(B,"src",e(v)),ie(B,"alt",e(l).alt)}),r(F,B)};$(p,F=>{e(H)?F(M):F(O,-1)})}u(L),r(z,L)};$(N,z=>{e(v)&&z(R)})}r(S,j)},D=S=>{var v=Ia(),j=y(v),N=y(j);{var R=I=>{or(I,{class:"size-4"})},z=I=>{sr(I,{class:"size-4"})},L=I=>{ir(I,{class:"size-4"})},p=I=>{Rt(I,{class:"size-4"})},M=I=>{lr(I,{class:"size-4"})};$(N,I=>{e(l).tone==="ok"?I(R):e(l).tone==="fail"?I(z,1):e(l).tone==="warn"?I(L,2):e(l).tone==="pending"?I(p,3):I(M,-1)})}u(j);var H=o(j,2),O=y(H),F=E(O,!0),B=o(O,2);{var le=I=>{var de=Oa(),Fe=E(de,!0);w(()=>h(Fe,e(l).detail)),r(I,de)};$(B,I=>{e(l).detail&&I(le)})}u(H),u(v),w(()=>{De(j,1,`mt-0.5 ${g[e(l).tone]??""}`),De(O,1,`font-medium ${(e(l).tone==="fail"||e(l).tone==="warn"?g[e(l).tone]:"")??""}`),h(F,e(l).label)}),r(S,v)},A=S=>{var v=Va(),j=y(v),N=E(j,!0),R=o(j,2);$e(R,21,()=>e(l).nodes,p=>p.id,(p,M)=>{var H=Fa(),O=y(H,!0),F=o(O);{var B=le=>{var I=Wa(),de=E(I,!0);w(()=>h(de,e(M).kind)),r(le,I)};$(F,le=>{e(M).kind&&le(B)})}u(H),w(()=>h(O,e(M).label)),r(p,H)}),u(R);var z=o(R,2);{var L=p=>{var M=Ha();$e(M,21,()=>e(l).edges,Ke,(H,O)=>{var F=Ua(),B=E(F);w(()=>h(B,`${e(O).from??""} → ${e(O).to??""}${e(O).label?` (${e(O).label})`:""}`)),r(H,F)}),u(M),r(p,M)};$(z,p=>{e(l).edges.length&&p(L)})}u(v),w(()=>h(N,`${e(l).nodes.length} ${e(l).nodes.length===1?"node":"nodes"}, ${e(l).edges.length} ${e(l).edges.length===1?"link":"links"}`)),r(S,v)},W=S=>{var v=Ka(),j=y(v),N=y(j);nr(N,{class:"size-3.5","aria-hidden":"true"});var R=o(N);u(j);var z=o(j,2);{var L=p=>{var M=qa(),H=E(M,!0);w(()=>h(H,e(l).preview)),r(p,M)};$(z,p=>{e(l).block==="unknown"&&p(L)})}u(v),w(()=>h(R,`This Wheelhouse cannot show a “${(e(l).block==="unknown"?e(l).type:"unknown")??""}” block.`)),r(S,v)};$(K,S=>{e(l).block==="text.v1"?S(ue):e(l).block==="kv.v1"?S(ne,1):e(l).block==="links.v1"?S(Z,2):e(l).block==="table.v1"?S(ve,3):e(l).block==="image.v1"?S(xe,4):e(l).block==="status.v1"?S(D,5):e(l).block==="graph.v1"?S(A,6):S(W,-1)})}r(P,C)}),u(x),r(a,x),vt()}var Za=i('<p class="text-sm text-muted-foreground" aria-busy="true">Loading…</p>'),Tt=i('<p class="text-sm text-muted-foreground"> </p>'),Ga=i("<p> </p>"),Ya=i('<div class="flex min-h-0 flex-1 flex-col"><!></div>'),Xa=i('<div class="min-h-0 flex-1 overflow-y-auto px-4 py-6 sm:px-6"><!></div>'),Qa=i("<!> <p> </p>",1);function Dn(a,t){ut(t,!0);const m=(D,A=He)=>{var W=We(),S=ae(W);{var v=p=>{Ja(p,{get blocks(){return A()}})},j=p=>{var M=Za();r(p,M)},N=p=>{var M=We(),H=ae(M);Ft(H,{failed:F=>{var B=Tt(),le=E(B);w(()=>h(le,`Not available. The ${t.entry.pluginId??""} plugin’s panel could not be shown.`)),r(F,B)}},F=>{var B=We(),le=ae(B);Ht(le,()=>e(P),(I,de)=>{de(I,{get data(){return A()},get entry(){return t.entry}})}),r(F,B)}),r(p,M)},R=p=>{cr(p,{get entry(){return t.entry},get data(){return A()}})},z=p=>{var M=We(),H=ae(M);Ut(H,()=>e(K),O=>{{let F=re(()=>({plugin:t.entry.pluginId,contribution:t.entry.contributionId,project:t.entry.projectId,task:t.entry.taskId??null}));wa(O,{get ref(){return e(F)},get title(){return t.entry.title},get plugin(){return t.entry.pluginId},get fill(){return x()}})}}),r(p,M)},L=p=>{var M=Tt(),H=E(M);w(()=>h(H,`Not available. This Wheelhouse does not include the “${t.entry.render.component??""}” panel.`)),r(p,M)};$(S,p=>{"blocks"in t.entry.render?p(v):(e(P)||e(l)||e(C))&&!e(ue)?p(j,1):e(P)?p(N,2):e(l)?p(R,3):e(C)?p(z,4):"component"in t.entry.render&&p(L,5)})}r(D,W)};let g=at(t,"now",19,()=>Date.now()),T=at(t,"panels",3,Hr),x=at(t,"fill",3,!1);const P=re(()=>"component"in t.entry.render?T()[t.entry.render.component]:void 0),l=re(()=>"element"in t.entry.render),C=re(()=>"app"in t.entry.render),K=re(()=>e(C)&&t.entry.content.available?`${t.entry.key} ${JSON.stringify(t.entry.content.value)}`:"");let ue=V(!1);zt(()=>{s(ue,!0)});var ne=We(),Z=ae(ne);{var ve=D=>{var A=Ga(),W=E(A);w(()=>{De(A,1,`text-sm text-muted-foreground ${x()?"px-4 py-10 sm:px-6":""}`),h(W,`Not available. ${t.entry.content.reason??""}`)}),r(D,A)},xe=D=>{var A=Qa(),W=ae(A);{var S=z=>{m(z,()=>t.entry.content.value)},v=z=>{var L=Ya(),p=y(L);m(p,()=>t.entry.content.value),u(L),r(z,L)},j=z=>{var L=Xa(),p=y(L);m(p,()=>t.entry.content.value),u(L),r(z,L)};$(W,z=>{x()?(e(P)||e(l)||e(C))&&e(ue)?z(v,1):z(j,-1):z(S)})}var N=o(W,2),R=E(N);w(z=>{De(N,1,`text-xs text-muted-foreground ${x()?"shrink-0 border-t px-4 py-1.5 sm:px-6":"mt-1.5"}`),h(R,`From ${t.entry.content.source??""}${z??""}.`)},[()=>t.entry.content.observedAt?`, ${Jt(t.entry.content.observedAt,g())}`:""]),r(D,A)};$(Z,D=>{t.entry.content.available?D(xe,-1):D(ve)})}r(a,ne),vt()}export{wa as A,Ja as B,gr as M,Hr as P,Dn as S,Cn as c,fr as e,$n as m};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as k,s as y}from"./CSzwlAcc.js";import{h as S,r as C}from"./BUYzAikv.js";import{e as M,a as $}from"./nqsqhzVw.js";const d=":firstmate",c="all",m=n=>n.secondMate?.id??d;function I(n,a){if(n.secondMate)return n.secondMate.id;const s=a.find(i=>i.id===n.taskId);return s?m(s):d}function O(n){if(n.length<2)return"";const a=n[0].match(/[-_.][^-_.]+$/)?.[0];return a&&n.every(s=>s.endsWith(a)&&s.length>a.length)?a:""}function W(n,a=[]){const s=[...new Set(a.map(t=>t.crew))].filter(t=>t!==d&&!n.some(l=>l.id===t)),i=O([...n.map(t=>t.id),...s]),r=t=>i?t.slice(0,-i.length):t;return[{id:d,label:"Firstmate",short:"Firstmate",mate:null},...n.map(t=>({id:t.id,label:t.id,short:r(t.id),mate:t})),...s.map(t=>({id:t,label:t,short:r(t),mate:null}))]}const Y=(n,a)=>n&&a.some(s=>s.id===n)?n:c,T=(n,a)=>n===c||n===a;function x(n){const a=n.passage.steps[n.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"danger",tone:"danger"}:n.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:n.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:n.status==="lost"||n.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:n.attention?.owner==="captain"?n.attention.kind==="review"?n.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:n.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:n.addressingReview?{label:k(n)??"Changes requested",icon:n.busy?"sailing":"anchored",tone:n.busy?"busy":"muted"}:n.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:n.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:n.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:y(n)?{label:`Checks: ${n.pipeline.label}`,icon:"lighthouse",tone:n.busy?"busy":"muted"}:n.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const A={label:"Your call",icon:"flag",tone:"sea"};function _(n,a){const s=n?Date.parse(n):NaN;if(Number.isNaN(s))return"";const i=Math.max(0,(a-s)/1e3);if(i<60)return"now";const r=Math.round(i/60);if(r<60)return`${r}m`;const t=Math.round(r/60);return t<24?`${t}h`:`${Math.round(t/24)}d`}const o=(n,a)=>({kind:"task",key:`task:${n.id}`,task:n,text:a,crew:m(n),at:n.mergedAt??n.activity?.at??n.since});function q(n,a,s,i=null){const r=e=>!i||e===i,t=S(n,a),l=(s?.shown??[]).filter(e=>M(e)&&!$(e)&&r(e.projectId)),f=e=>e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,p=new Set((s?.all??[]).filter(e=>e.kind==="hold").map(f)),b=new Set(l.filter(e=>e.kind==="merge").map(f)),u=new Set(t.stepFailed.map(e=>e.id)),g=t.stepFailed.filter(e=>!t.needsYou.includes(e)),w=t.needsYou.filter(e=>!(e.attention?.kind==="decision"&&p.has(e.id))&&!(e.attention?.kind==="review"&&b.has(e.id))),h=e=>e.attention?.kind==="decision"&&e.attention.text||e.shortTitle;return{h:t,needs:[...l.map(e=>({kind:"decision",key:`decision:${e.id}`,card:e,text:e.title,crew:I(e,n),at:e.askedAt})),...g.map(e=>o(e,e.shortTitle)),...w.map(e=>o(e,h(e)))],withFirstmate:t.waitingOnFirstmate.filter(e=>!u.has(e.id)).map(e=>o(e,h(e))),under:C(t).filter(e=>!u.has(e.id)).map(e=>o(e,e.shortTitle)),next:t.queued.map(e=>o(e,e.shortTitle)),landed:t.landedRecent.filter(e=>!u.has(e.id)).map(e=>o(e,e.shortTitle))}}function E(n,a,s){return a.filter(i=>T(s,i.id)).map(i=>({crew:i,lines:n.filter(r=>r.crew===i.id)})).filter(i=>i.lines.length||s!==c)}export{c as A,A as D,d as O,Y as a,E as b,W as c,q as d,T as i,x as l,_ as s};
|
|
Binary file
|
|
Binary file
|