@chrisjowen/wheelhouse 0.25.0 → 0.25.2
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/chunks/B0l1zoaP.js +1 -0
- package/build/client/_app/immutable/chunks/B0l1zoaP.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0l1zoaP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3SUZ1lZ.js +1 -0
- package/build/client/_app/immutable/chunks/B3SUZ1lZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3SUZ1lZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7AxdNpl.js +1 -0
- package/build/client/_app/immutable/chunks/B7AxdNpl.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7AxdNpl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7CIGGfF.js +3 -0
- package/build/client/_app/immutable/chunks/B7CIGGfF.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7CIGGfF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BACzGo_J.js +1 -0
- package/build/client/_app/immutable/chunks/BACzGo_J.js.br +0 -0
- package/build/client/_app/immutable/chunks/BACzGo_J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHJ2GOQ2.js +2 -0
- package/build/client/_app/immutable/chunks/BHJ2GOQ2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHJ2GOQ2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Br-ErZgz.js +1 -0
- package/build/client/_app/immutable/chunks/Br-ErZgz.js.br +0 -0
- package/build/client/_app/immutable/chunks/Br-ErZgz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bs4NMZfM.js +1 -0
- package/build/client/_app/immutable/chunks/Bs4NMZfM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bs4NMZfM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0e4APHr.js +1 -0
- package/build/client/_app/immutable/chunks/C0e4APHr.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0e4APHr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8UBZg2g.js +7 -0
- package/build/client/_app/immutable/chunks/C8UBZg2g.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8UBZg2g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8tNMsbZ.js +1 -0
- package/build/client/_app/immutable/chunks/C8tNMsbZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8tNMsbZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHWya5-n.js +1 -0
- package/build/client/_app/immutable/chunks/CHWya5-n.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHWya5-n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLsnhhko.js +1 -0
- package/build/client/_app/immutable/chunks/CLsnhhko.js.br +2 -0
- package/build/client/_app/immutable/chunks/CLsnhhko.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYK2vYXV.js +1 -0
- package/build/client/_app/immutable/chunks/CYK2vYXV.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYK2vYXV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C_Devth_.js +1 -0
- package/build/client/_app/immutable/chunks/C_Devth_.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_Devth_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgzIAHEU.js +1 -0
- package/build/client/_app/immutable/chunks/CgzIAHEU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgzIAHEU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ck-cnzoW.js +1 -0
- package/build/client/_app/immutable/chunks/Ck-cnzoW.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ck-cnzoW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkI2Ea0B.js +3 -0
- package/build/client/_app/immutable/chunks/CkI2Ea0B.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkI2Ea0B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-jtpdBG.js +1 -0
- package/build/client/_app/immutable/chunks/D-jtpdBG.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-jtpdBG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-sY9AXp.js +1 -0
- package/build/client/_app/immutable/chunks/D-sY9AXp.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-sY9AXp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1G70X4T.js +1 -0
- package/build/client/_app/immutable/chunks/D1G70X4T.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1G70X4T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1V9u-vc.js +3 -0
- package/build/client/_app/immutable/chunks/D1V9u-vc.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1V9u-vc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DB4NmfjA.js +1 -0
- package/build/client/_app/immutable/chunks/DB4NmfjA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DB4NmfjA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVut611y.js +7 -0
- package/build/client/_app/immutable/chunks/DVut611y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVut611y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdUjyp9q.js +3 -0
- package/build/client/_app/immutable/chunks/DdUjyp9q.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdUjyp9q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dd_RZdO_.js +1 -0
- package/build/client/_app/immutable/chunks/Dd_RZdO_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dd_RZdO_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DpJ1M_D3.js +3 -0
- package/build/client/_app/immutable/chunks/DpJ1M_D3.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpJ1M_D3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/NT4VAohP.js +1 -0
- package/build/client/_app/immutable/chunks/NT4VAohP.js.br +0 -0
- package/build/client/_app/immutable/chunks/NT4VAohP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XH2accft.js +6 -0
- package/build/client/_app/immutable/chunks/XH2accft.js.br +0 -0
- package/build/client/_app/immutable/chunks/XH2accft.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_3k0Ipf9.js +1 -0
- package/build/client/_app/immutable/chunks/_3k0Ipf9.js.br +0 -0
- package/build/client/_app/immutable/chunks/_3k0Ipf9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/b8vhdCAF.js +2 -0
- package/build/client/_app/immutable/chunks/b8vhdCAF.js.br +0 -0
- package/build/client/_app/immutable/chunks/b8vhdCAF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/e0PvFmSr.js +2 -0
- package/build/client/_app/immutable/chunks/e0PvFmSr.js.br +0 -0
- package/build/client/_app/immutable/chunks/e0PvFmSr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gPYlW04H.js +5 -0
- package/build/client/_app/immutable/chunks/gPYlW04H.js.br +0 -0
- package/build/client/_app/immutable/chunks/gPYlW04H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/o31-y7Gs.js +8 -0
- package/build/client/_app/immutable/chunks/o31-y7Gs.js.br +0 -0
- package/build/client/_app/immutable/chunks/o31-y7Gs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zer7Wq-g.js +1 -0
- package/build/client/_app/immutable/chunks/zer7Wq-g.js.br +0 -0
- package/build/client/_app/immutable/chunks/zer7Wq-g.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.7XFlI6ui.js +2 -0
- package/build/client/_app/immutable/entry/app.7XFlI6ui.js.br +0 -0
- package/build/client/_app/immutable/entry/app.7XFlI6ui.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Bby64rHe.js +1 -0
- package/build/client/_app/immutable/entry/start.Bby64rHe.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Bby64rHe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.wCzDZ-tn.js +9 -0
- package/build/client/_app/immutable/nodes/0.wCzDZ-tn.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.wCzDZ-tn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DdWjkyIA.js +1 -0
- package/build/client/_app/immutable/nodes/1.DdWjkyIA.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DdWjkyIA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CrbYmI6G.js +10 -0
- package/build/client/_app/immutable/nodes/10.CrbYmI6G.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CrbYmI6G.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BYh-uOQ9.js +9 -0
- package/build/client/_app/immutable/nodes/11.BYh-uOQ9.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BYh-uOQ9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.UZ3XYP9v.js +3 -0
- package/build/client/_app/immutable/nodes/12.UZ3XYP9v.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.UZ3XYP9v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BCot7Niv.js +2 -0
- package/build/client/_app/immutable/nodes/13.BCot7Niv.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BCot7Niv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.C4UJ39JS.js +6 -0
- package/build/client/_app/immutable/nodes/14.C4UJ39JS.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C4UJ39JS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.D1xNvzrA.js +1 -0
- package/build/client/_app/immutable/nodes/15.D1xNvzrA.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.D1xNvzrA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BigYEBP3.js +10 -0
- package/build/client/_app/immutable/nodes/16.BigYEBP3.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BigYEBP3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DGuZwe8T.js +1 -0
- package/build/client/_app/immutable/nodes/17.DGuZwe8T.js.br +2 -0
- package/build/client/_app/immutable/nodes/17.DGuZwe8T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.DECgovpu.js +3 -0
- package/build/client/_app/immutable/nodes/18.DECgovpu.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.DECgovpu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DXAU0z_5.js +1 -0
- package/build/client/_app/immutable/nodes/19.DXAU0z_5.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DXAU0z_5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.WBE-PioF.js +28 -0
- package/build/client/_app/immutable/nodes/2.WBE-PioF.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.WBE-PioF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.q-aa3e_Y.js +14 -0
- package/build/client/_app/immutable/nodes/20.q-aa3e_Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.q-aa3e_Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BLju9vI5.js +150 -0
- package/build/client/_app/immutable/nodes/21.BLju9vI5.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BLju9vI5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.CXZdl9b-.js +3 -0
- package/build/client/_app/immutable/nodes/22.CXZdl9b-.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.CXZdl9b-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.DM5Ks3Bs.js +2 -0
- package/build/client/_app/immutable/nodes/23.DM5Ks3Bs.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DM5Ks3Bs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.BkwcCbz8.js +25 -0
- package/build/client/_app/immutable/nodes/24.BkwcCbz8.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BkwcCbz8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DUa1lD5V.js +5 -0
- package/build/client/_app/immutable/nodes/25.DUa1lD5V.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DUa1lD5V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.DVjwM2Qr.js +18 -0
- package/build/client/_app/immutable/nodes/26.DVjwM2Qr.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DVjwM2Qr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.DAHSyw4x.js +4 -0
- package/build/client/_app/immutable/nodes/28.DAHSyw4x.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DAHSyw4x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B_HBkIp1.js +2 -0
- package/build/client/_app/immutable/nodes/3.B_HBkIp1.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B_HBkIp1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.CUqcBJer.js +6 -0
- package/build/client/_app/immutable/nodes/30.CUqcBJer.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.CUqcBJer.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.C1vPgzv3.js +8 -0
- package/build/client/_app/immutable/nodes/31.C1vPgzv3.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.C1vPgzv3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.BkRPYLu0.js +2 -0
- package/build/client/_app/immutable/nodes/32.BkRPYLu0.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.BkRPYLu0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.B7DiFLZ5.js +5 -0
- package/build/client/_app/immutable/nodes/33.B7DiFLZ5.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.B7DiFLZ5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.BU0_7C0q.js +4 -0
- package/build/client/_app/immutable/nodes/34.BU0_7C0q.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.BU0_7C0q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.hXl98N8a.js +3 -0
- package/build/client/_app/immutable/nodes/35.hXl98N8a.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.hXl98N8a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.WnNKm-yE.js +7 -0
- package/build/client/_app/immutable/nodes/36.WnNKm-yE.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.WnNKm-yE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DpNlRzIc.js +2 -0
- package/build/client/_app/immutable/nodes/37.DpNlRzIc.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DpNlRzIc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.CCQr-7vZ.js +4 -0
- package/build/client/_app/immutable/nodes/38.CCQr-7vZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.CCQr-7vZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.CPXB8c72.js +7 -0
- package/build/client/_app/immutable/nodes/39.CPXB8c72.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.CPXB8c72.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.C2-SgMYi.js +5 -0
- package/build/client/_app/immutable/nodes/4.C2-SgMYi.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C2-SgMYi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.AXTtWlOb.js +6 -0
- package/build/client/_app/immutable/nodes/40.AXTtWlOb.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.AXTtWlOb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.lAWGvH0Z.js +23 -0
- package/build/client/_app/immutable/nodes/41.lAWGvH0Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.lAWGvH0Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.C6GD5fTc.js +1 -0
- package/build/client/_app/immutable/nodes/42.C6GD5fTc.js.br +0 -0
- package/build/client/_app/immutable/nodes/42.C6GD5fTc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/43.C6Qrs38w.js +1 -0
- package/build/client/_app/immutable/nodes/43.C6Qrs38w.js.br +0 -0
- package/build/client/_app/immutable/nodes/43.C6Qrs38w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.DYSeoigk.js +6 -0
- package/build/client/_app/immutable/nodes/44.DYSeoigk.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.DYSeoigk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BfoqYe4n.js +1 -0
- package/build/client/_app/immutable/nodes/5.BfoqYe4n.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BfoqYe4n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.D4gNHFr8.js +6 -0
- package/build/client/_app/immutable/nodes/6.D4gNHFr8.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.D4gNHFr8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CTM8Gluo.js +3 -0
- package/build/client/_app/immutable/nodes/9.CTM8Gluo.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CTM8Gluo.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/ChecksStrip.js-BXs5kyt6.js +62 -0
- package/build/server/chunks/chunks/Discussion.js-CRxJgBNx.js +582 -0
- package/build/server/chunks/chunks/ProjectBanner.js-ChX4ZtzT.js +145 -0
- package/build/server/chunks/chunks/ResizableRail.js-BB9BfX1E.js +708 -0
- package/build/server/chunks/chunks/SlotContent.js-DGU6orS1.js +705 -0
- package/build/server/chunks/chunks/TaskView.js-Crd2Q3-W.js +3107 -0
- package/build/server/chunks/chunks/WhereBadge.js-BEna3ErH.js +91 -0
- package/build/server/chunks/chunks/berths.js-D6ShvzXE.js +237 -0
- package/build/server/chunks/chunks/buildlog.js-D_3GlnGr.js +55 -0
- package/build/server/chunks/chunks/checks.js-vJmNWOsr.js +258 -0
- package/build/server/chunks/chunks/detail.js-DHjBTp8m.js +149 -0
- package/build/server/chunks/chunks/feedback.js-BC3wLBEi.js +67 -0
- package/build/server/chunks/chunks/format.js-LmAzIWOy.js +82 -0
- package/build/server/chunks/chunks/insights.svelte.js-Lx1t_kvq.js +567 -0
- package/build/server/chunks/chunks/internal.js-CUlRxCy1.js +151 -0
- package/build/server/chunks/chunks/marketplace-service.js-DP08Gprl.js +557 -0
- package/build/server/chunks/chunks/ondeck.js-CkFGLxh5.js +123 -0
- package/build/server/chunks/chunks/package.js-DeCro00Y.js +160 -0
- package/build/server/chunks/chunks/page.js-DCSeCETG.js +13 -0
- package/build/server/chunks/chunks/previewhelper2.js-CxDckETB.js +214 -0
- package/build/server/chunks/chunks/repo.js-OOqVL99k.js +33 -0
- package/build/server/chunks/chunks/review.js-5yv45rx9.js +176 -0
- package/build/server/chunks/chunks/runtime.js-DX3CmRGO.js +26796 -0
- package/build/server/chunks/chunks/scribe.js-CXnMfdTZ.js +1591 -0
- package/build/server/chunks/chunks/service.js-BHqnTorX.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CKM7-HZm.js +835 -0
- package/build/server/chunks/chunks/service3.js-KI2TkU0G.js +234 -0
- package/build/server/chunks/chunks/sessions.js-qcyBTO1C.js +534 -0
- package/build/server/chunks/chunks/settings.js-iwooIldP.js +379 -0
- package/build/server/chunks/chunks/starter.js-EuJD4Y7E.js +400 -0
- package/build/server/chunks/chunks/tmux.js-BnFtiGpm.js +504 -0
- package/build/server/chunks/chunks/tools.js-CSWRR-_m.js +156 -0
- package/build/server/chunks/chunks/view.js-BtpuqCcG.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Ad8JXgSV.js +116 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DHAKw1tp.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-DbAIziKZ.js +63 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-ufew1Y5_.js +79 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CwkC2GAb.js +83 -0
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-dk_eagAv.js +68 -0
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-CZgc-jK2.js +73 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-BEVdZPeK.js +158 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CQsEpKWc.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DoHqJGQu.js +111 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-k7RWU4a7.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-Cw_m92EW.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-DRpguZvJ.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Df10pH-y.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CKYpdpKi.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-BbrpKAto.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Dq4FwnEm.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-C82b6oJS.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DB0Gok1U.js +80 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DzbgQyG6.js +91 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-B8ruQ5h3.js +79 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-BLDhGD9j.js +70 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js---g0VbtF.js +62 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-B9nrwlvW.js +62 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-fc8Wqf5M.js +89 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-BwuEj3M4.js +87 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-DX0wMxHu.js +80 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-WgesO2Ms.js +172 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D1qGghnO.js +62 -0
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-B46E_UY4.js +71 -0
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-rLxO4ilC.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DFvCwnnc.js +91 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-DuDvfPGO.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-DOA618e_.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-XXsEGuag.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-BxyNQX1j.js +105 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DzPUeQTi.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-D6FlaCsT.js +122 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-ibP1IALO.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-C2O_1tsc.js +97 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-C4_oIAkQ.js +86 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DFe3B0-C.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-D_3n0Kba.js +78 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CiTwI8G3.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-1GH0aLjT.js +85 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-Fljubb6w.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-h7brvwH8.js +62 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-dgFjw3pe.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DzSX-fed.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-BKNkf7RN.js +67 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-D8zbkxWU.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-_pc2lv0p.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DjLc3l6Q.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BPM4JU9Q.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-B4TkAv_f.js +86 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BB-5ZR1i.js +67 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Db3-ZPhf.js +76 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-9hSAnvjP.js +88 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-KWfN143Y.js +75 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-C4s2oo_a.js +98 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-C7FVTBfy.js +81 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-BBZ_81Hv.js +476 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-DSkqSGDx.js +92 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-CMqY8MuY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-drinSExp.js +81 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-W9lc2vQc.js +141 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-B0M5ow1C.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-u67UCa9W.js +84 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-DTg_lLkL.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BxcyP_jS.js +73 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-OriulA5p.js +67 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BkzW7SnD.js +86 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-D6w4peql.js +113 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-CkzWvp_j.js +79 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-DUPdhYb9.js +108 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DlCqB7AM.js +127 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-B-fg1SSO.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CGsesrQK.js +84 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-jP_-O6RG.js +85 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-DXFnvkGa.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-YvrIL0pq.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-COequtTm.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-vhzylCJF.js +97 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BAlohB0e.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BScWdc_M.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-ACeFvWSt.js +27 -0
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-DhrTgLvP.js +78 -0
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-C_1S2VPD.js +68 -0
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-DORgtL7A.js +75 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BJg9eIp3.js +87 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DbMlLYQ_.js +66 -0
- package/build/server/chunks/entries/hooks.server.js-0ygu6BOU.js +108 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-D4GJqANq.js +55 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-htXq-BIz.js +6004 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-NOA0LV-8.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-CD76_gLe.js +4907 -0
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-Ch8B4X-h.js +114 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-DJc2Mrcj.js +14 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C81bSVvG.js +226 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-D6iTblQf.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-DnhH91da.js +94 -0
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-CefWivKv.js +15 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-X9Fip8AA.js +17 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-BeGcicP-.js +1011 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BSQ9hVRX.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Dbwl9dNj.js +296 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-CsyYGE3m.js +16 -0
- package/build/server/chunks/entries/pages/health/_page.svelte.js-bl4bWGGt.js +517 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DXj_VYqN.js +18 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BzbFF516.js +676 -0
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BVlndmek.js +18 -0
- package/build/server/chunks/entries/pages/plugins/_page.svelte.js-BNaIO18O.js +677 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BToqlD6y.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DPAD-m5A.js +60 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B5cPAzS8.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-B7wh7O70.js +935 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DNCv5rXn.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-CVaEhhc8.js +82 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CZS9Bodc.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-D66AKIB9.js +420 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DD4txdK-.js +15 -0
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-CQRBkxSY.js +25 -0
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-SFWAn442.js +37 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-1rUuuwrk.js +11 -0
- package/build/server/chunks/entries/pages/remotes/_page.svelte.js-DELoR5hS.js +348 -0
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-Cmh8eW3f.js +420 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DZvxqVYE.js +18 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-Dfp3F1KA.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BUOZPf8P.js +16 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DJ_xX5hV.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DXGbl8NS.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-Cj3Hxt76.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-Bua937WL.js +566 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-4j173mHX.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-LbgHmXt_.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-oCfRNmnc.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-DCCZZNVc.js +15 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-T92Fm8YT.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-WTWH5vBy.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-B4YSN4J5.js +121 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BdhihrsR.js +24 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-CdlX8djh.js +81 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-BbjHIcph.js +11 -0
- package/build/server/chunks/handler-D97ws-JG.js +1474 -0
- package/build/server/chunks/index.js-BpCPpeD1.js +4296 -0
- package/build/server/chunks/manifest.js-t53ajQ9Q.js +1050 -0
- package/build/server/chunks/nodes/0.js-CPgXz1rr.js +69 -0
- package/build/server/chunks/nodes/1.js-OxQ1vyWg.js +9 -0
- package/build/server/chunks/nodes/10.js-WLXMh3pL.js +67 -0
- package/build/server/chunks/nodes/11.js-DVSs0rtW.js +69 -0
- package/build/server/chunks/nodes/12.js-B-zdMnAf.js +68 -0
- package/build/server/chunks/nodes/13.js-CGf6D12E.js +69 -0
- package/build/server/chunks/nodes/14.js-Cc0Cs3BZ.js +12 -0
- package/build/server/chunks/nodes/15.js-C56waLff.js +9 -0
- package/build/server/chunks/nodes/16.js-ngLHXz7A.js +9 -0
- package/build/server/chunks/nodes/17.js-pKqH3sSI.js +67 -0
- package/build/server/chunks/nodes/18.js-DeSFExoB.js +70 -0
- package/build/server/chunks/nodes/19.js-H-tdpYaY.js +68 -0
- package/build/server/chunks/nodes/2.js-w4RP36SK.js +67 -0
- package/build/server/chunks/nodes/20.js-eeKV19Oo.js +69 -0
- package/build/server/chunks/nodes/21.js-J6jZ3dPG.js +68 -0
- package/build/server/chunks/nodes/22.js-C3hZ4tdE.js +69 -0
- package/build/server/chunks/nodes/23.js-DOJWdasx.js +69 -0
- package/build/server/chunks/nodes/24.js-jbGsKPGa.js +25 -0
- package/build/server/chunks/nodes/25.js-DDEcQhut.js +25 -0
- package/build/server/chunks/nodes/26.js-B1bKygAB.js +9 -0
- package/build/server/chunks/nodes/28.js-DUQd6Cv_.js +67 -0
- package/build/server/chunks/nodes/3.js-B8ES7X8Q.js +9 -0
- package/build/server/chunks/nodes/30.js-b8fwsOIj.js +68 -0
- package/build/server/chunks/nodes/31.js-DrRrBiTb.js +67 -0
- package/build/server/chunks/nodes/32.js-BkiwxBh2.js +25 -0
- package/build/server/chunks/nodes/33.js--_olgEuI.js +67 -0
- package/build/server/chunks/nodes/34.js-DR8-9PRf.js +25 -0
- package/build/server/chunks/nodes/35.js-BpUXMXIV.js +22 -0
- package/build/server/chunks/nodes/36.js-CWzrVpGU.js +67 -0
- package/build/server/chunks/nodes/37.js-C1YrItu3.js +70 -0
- package/build/server/chunks/nodes/38.js-P8vcivMn.js +69 -0
- package/build/server/chunks/nodes/39.js-BbTD7OBt.js +26 -0
- package/build/server/chunks/nodes/4.js-Q08C31S5.js +68 -0
- package/build/server/chunks/nodes/40.js-6Pn_2r53.js +69 -0
- package/build/server/chunks/nodes/41.js-DjGj6gn8.js +71 -0
- package/build/server/chunks/nodes/42.js-BdGd2c01.js +68 -0
- package/build/server/chunks/nodes/43.js-BBcQ_6ns.js +68 -0
- package/build/server/chunks/nodes/44.js-RZ9bi5d0.js +67 -0
- package/build/server/chunks/nodes/5.js-DlDo7c57.js +67 -0
- package/build/server/chunks/nodes/6.js-BqtXd85E.js +67 -0
- package/build/server/chunks/nodes/8.js-DTCcSbXy.js +67 -0
- package/build/server/chunks/nodes/9.js-C_CTyZTT.js +14 -0
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/8eCF3fZX.js +0 -1
- package/build/client/_app/immutable/chunks/8eCF3fZX.js.br +0 -0
- package/build/client/_app/immutable/chunks/8eCF3fZX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ALbIn9xu.js +0 -1
- package/build/client/_app/immutable/chunks/ALbIn9xu.js.br +0 -0
- package/build/client/_app/immutable/chunks/ALbIn9xu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js +0 -1
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHXZdfEc.js +0 -1
- package/build/client/_app/immutable/chunks/BHXZdfEc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHXZdfEc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js +0 -1
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUYzAikv.js +0 -1
- package/build/client/_app/immutable/chunks/BUYzAikv.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUYzAikv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js +0 -8
- package/build/client/_app/immutable/chunks/BXWkikJt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js +0 -2
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js +0 -3
- package/build/client/_app/immutable/chunks/C0JshGmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1LJG_bi.js +0 -1
- package/build/client/_app/immutable/chunks/C1LJG_bi.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1LJG_bi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js +0 -3
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js +0 -7
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js +0 -6
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl68Rk3P.js +0 -1
- package/build/client/_app/immutable/chunks/Cl68Rk3P.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl68Rk3P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js +0 -5
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js +0 -3
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D99Sj8Yt.js +0 -1
- package/build/client/_app/immutable/chunks/D99Sj8Yt.js.br +0 -0
- package/build/client/_app/immutable/chunks/D99Sj8Yt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9hRQQol.js +0 -1
- package/build/client/_app/immutable/chunks/D9hRQQol.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9hRQQol.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js +0 -2
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js +0 -1
- package/build/client/_app/immutable/chunks/DAJm78bI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js +0 -7
- package/build/client/_app/immutable/chunks/DO7S-a12.js.br +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js +0 -2
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js +0 -1
- package/build/client/_app/immutable/chunks/DVltcUYh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js +0 -1
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js +0 -1
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Do7xN4Qx.js +0 -3
- package/build/client/_app/immutable/chunks/Do7xN4Qx.js.br +0 -0
- package/build/client/_app/immutable/chunks/Do7xN4Qx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js +0 -3
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js +0 -1
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.br +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js +0 -1
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.br +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js +0 -1
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.br +0 -1
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.gz +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js +0 -1
- package/build/client/_app/immutable/chunks/N8Gha39e.js.br +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js +0 -1
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.br +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WRwU91GU.js +0 -1
- package/build/client/_app/immutable/chunks/WRwU91GU.js.br +0 -0
- package/build/client/_app/immutable/chunks/WRwU91GU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js +0 -1
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.br +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js +0 -1
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z0GxSwEl.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js +0 -2
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js +0 -1
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js +0 -9
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js +0 -1
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js +0 -10
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js +0 -9
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js +0 -3
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js +0 -2
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js +0 -6
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js +0 -1
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js +0 -10
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js +0 -1
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js +0 -3
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js +0 -1
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js +0 -28
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js +0 -14
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js +0 -150
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js +0 -3
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js +0 -2
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js +0 -25
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js +0 -5
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js +0 -18
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js +0 -4
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js +0 -2
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js +0 -6
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js +0 -8
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js +0 -2
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js +0 -5
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.br +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js +0 -4
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js +0 -3
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js +0 -7
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js +0 -2
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js +0 -4
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js +0 -7
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js +0 -5
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js +0 -6
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js +0 -23
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js +0 -1
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.br +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/43.DsoNZEVC.js +0 -1
- package/build/client/_app/immutable/nodes/43.DsoNZEVC.js.br +0 -0
- package/build/client/_app/immutable/nodes/43.DsoNZEVC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js +0 -6
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js +0 -1
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js +0 -6
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js +0 -3
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.gz +0 -0
- package/build/server/chunks/chunks/ChecksStrip.js-DpNOeT0d.js +0 -62
- package/build/server/chunks/chunks/Discussion.js-C7ImCf_I.js +0 -582
- package/build/server/chunks/chunks/ProjectBanner.js-CtkUYTol.js +0 -145
- package/build/server/chunks/chunks/ResizableRail.js-D0idmMXk.js +0 -708
- package/build/server/chunks/chunks/SlotContent.js-DYk-iMgl.js +0 -705
- package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +0 -3029
- package/build/server/chunks/chunks/WhereBadge.js-C409P9ko.js +0 -91
- package/build/server/chunks/chunks/berths.js-CHOi4_mf.js +0 -237
- package/build/server/chunks/chunks/buildlog.js-B0xf1CmX.js +0 -55
- package/build/server/chunks/chunks/checks.js-D1HXYy4Y.js +0 -258
- package/build/server/chunks/chunks/detail.js-B2R6Znek.js +0 -149
- package/build/server/chunks/chunks/feedback.js-DthXPMki.js +0 -67
- package/build/server/chunks/chunks/format.js-D0zBQ-fe.js +0 -73
- package/build/server/chunks/chunks/insights.svelte.js-BLcMx3lv.js +0 -567
- package/build/server/chunks/chunks/internal.js-CEWzBR2Y.js +0 -151
- package/build/server/chunks/chunks/marketplace-service.js-DSxw-XPY.js +0 -557
- package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +0 -121
- package/build/server/chunks/chunks/package.js-B7nnL29I.js +0 -160
- package/build/server/chunks/chunks/page.js-DCiJruq9.js +0 -13
- package/build/server/chunks/chunks/previewhelper2.js-Dokz3Re6.js +0 -214
- package/build/server/chunks/chunks/repo.js-DXPu1jYS.js +0 -33
- package/build/server/chunks/chunks/review.js-CqfnAPoe.js +0 -99
- package/build/server/chunks/chunks/runtime.js-BcdjdUwr.js +0 -26530
- package/build/server/chunks/chunks/scribe.js-D30sP1z9.js +0 -1591
- package/build/server/chunks/chunks/service.js--01O07Iu.js +0 -1339
- package/build/server/chunks/chunks/service2.js-CVR-BsF0.js +0 -835
- package/build/server/chunks/chunks/service3.js-Dx4TYIQa.js +0 -234
- package/build/server/chunks/chunks/sessions.js-BD6cxB3X.js +0 -534
- package/build/server/chunks/chunks/settings.js-t2yY6DMc.js +0 -379
- package/build/server/chunks/chunks/starter.js-CjOwkL4s.js +0 -400
- package/build/server/chunks/chunks/tmux.js-DTQKbm92.js +0 -504
- package/build/server/chunks/chunks/tools.js-C_Xs95j-.js +0 -156
- package/build/server/chunks/chunks/view.js-D02gwJlT.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DCqY_Bda.js +0 -116
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Dm04PmD_.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js--TGJX2z9.js +0 -63
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-B9JGOQSd.js +0 -79
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CgPkuD4I.js +0 -83
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-BkQr7zlk.js +0 -68
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-JXf9tr9y.js +0 -73
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNlZzPAi.js +0 -158
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-D51z27Qh.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-UZLIIsLh.js +0 -111
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-QBAtq3e4.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CMW5VeA1.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CYEPWDq9.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Dzw8Aq7W.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-H1O8SpZj.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C3UIEKwW.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BF0ddpon.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CQDDUPQH.js +0 -119
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-Bj6fzAhI.js +0 -80
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-KeBdme5-.js +0 -91
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DWyorNkc.js +0 -79
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DmocVrgJ.js +0 -70
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-B95RBsOY.js +0 -62
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BuCZ0nAz.js +0 -62
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CmiCqFGa.js +0 -89
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CfCsmFek.js +0 -87
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-DMj7O_wm.js +0 -80
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CCxzIYPx.js +0 -172
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D_LWxNH8.js +0 -62
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-DHCwcT09.js +0 -71
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Dr83B5jC.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BFz64-UD.js +0 -91
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-AI3xP87_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CB9SAMkD.js +0 -27
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-DaB0pK-G.js +0 -30
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-C-RZ2hfW.js +0 -105
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-Ct15HbWb.js +0 -74
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-Kp-td74e.js +0 -122
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-C4Er7ziD.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-D2CWeQx9.js +0 -97
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Cxxjkcea.js +0 -86
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BpSkuaqs.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DhqoeMSp.js +0 -78
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-B978UeYH.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BjYkraIy.js +0 -85
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BSm0fyqO.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DSZfo5DT.js +0 -62
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-Bhlu3rq6.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Bc6_vVMA.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-q71bHTAI.js +0 -67
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BdhHl9q5.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BbF_qpRh.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CVHc5ryW.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B7KmzEu4.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-ILPrSxNM.js +0 -86
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DRzuvCjv.js +0 -67
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BYotWMDG.js +0 -76
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CXXw_967.js +0 -88
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-5H8AVdf3.js +0 -75
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js--_mniW0J.js +0 -98
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DV5voQBw.js +0 -81
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-6xFnfO31.js +0 -476
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-DELGIKLB.js +0 -92
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DrkDRFum.js +0 -71
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-oOrlu6PL.js +0 -81
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BmE51iKW.js +0 -141
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CJJOCfAf.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BE-v4ctp.js +0 -84
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-BSAksOTw.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-9jtQze4M.js +0 -73
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BEbfK5Sb.js +0 -67
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CC70KheS.js +0 -86
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BPOVTSNr.js +0 -113
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B0Ce7-kQ.js +0 -79
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-mhQYv_sd.js +0 -108
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-QMmOjqmI.js +0 -127
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-IfH0F77C.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CLPXGlPH.js +0 -84
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CIc1KsPd.js +0 -85
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-G6xuTFYk.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-ChS6Cl9I.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-ylJaIr71.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-iQF5ttIM.js +0 -97
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BW9O_FlY.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DTE3VOwI.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-s26vq0JS.js +0 -27
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-B8s3BS7I.js +0 -78
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-BsiL8VVP.js +0 -68
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-Co28KCNH.js +0 -75
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-syWL6Knw.js +0 -87
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BI2EVdsb.js +0 -66
- package/build/server/chunks/entries/hooks.server.js-B4zt2gMT.js +0 -108
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BBZSb3zI.js +0 -55
- package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +0 -6023
- package/build/server/chunks/entries/pages/_page.server.ts.js-BS44Y_4B.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +0 -4907
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-4iz_H22d.js +0 -114
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-BfjjhUph.js +0 -14
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-CdDgl6GR.js +0 -226
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Den-42vR.js +0 -16
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-BWr-lM0V.js +0 -94
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-CI8dk87B.js +0 -15
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-BgARM8mm.js +0 -17
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-B9vil56R.js +0 -1011
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-HtDc07oV.js +0 -11
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-CgLtCm2Z.js +0 -296
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-QHRjb2mW.js +0 -16
- package/build/server/chunks/entries/pages/health/_page.svelte.js-4nHKfH4B.js +0 -517
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-U6iyhhAi.js +0 -18
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BCqHJz1P.js +0 -676
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-Ct7X9UNn.js +0 -18
- package/build/server/chunks/entries/pages/plugins/_page.svelte.js-KHAEvkPW.js +0 -677
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CSy0Mcfk.js +0 -16
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-BnYeRjHX.js +0 -60
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-OcqAZPqs.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-O1kmMxkL.js +0 -1004
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D1OSHb0S.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-DqP-kxf8.js +0 -82
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DRtkOAgr.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-B7higppi.js +0 -420
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Br-tOc7a.js +0 -15
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-C3qIWXBy.js +0 -25
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-Ce5mHdpe.js +0 -37
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-KkohEbGV.js +0 -11
- package/build/server/chunks/entries/pages/remotes/_page.svelte.js-BksgXzIg.js +0 -348
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-N3amDkFq.js +0 -420
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B-xlxpbm.js +0 -18
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C3rAOzae.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BA-tWOES.js +0 -16
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BaJ2W22V.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DssDgFRV.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-niIXQvkx.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BRvvIKgl.js +0 -566
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CbTQXe63.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BYvOjL40.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BAzQbxTI.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-C_PZ3K62.js +0 -15
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bt5BHnIn.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-CBJ9UCxK.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +0 -121
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-By1hYgOi.js +0 -24
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-B_aUlJZV.js +0 -81
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-DJxWHuwd.js +0 -11
- package/build/server/chunks/handler-CXUepvBU.js +0 -1474
- package/build/server/chunks/index.js-BsOCKSNc.js +0 -4296
- package/build/server/chunks/manifest.js-CSOlQwBQ.js +0 -1050
- package/build/server/chunks/nodes/0.js-BA8rdf7S.js +0 -69
- package/build/server/chunks/nodes/1.js-CGDtM8Ha.js +0 -9
- package/build/server/chunks/nodes/10.js-dkuZj5-W.js +0 -67
- package/build/server/chunks/nodes/11.js-DNaVEa3x.js +0 -69
- package/build/server/chunks/nodes/12.js-VJOzmisQ.js +0 -68
- package/build/server/chunks/nodes/13.js-B-UNeeYa.js +0 -69
- package/build/server/chunks/nodes/14.js-DuWS_Hw5.js +0 -12
- package/build/server/chunks/nodes/15.js-lq3f_J6-.js +0 -9
- package/build/server/chunks/nodes/16.js-Ch2TluQr.js +0 -9
- package/build/server/chunks/nodes/17.js-BcBFGx5D.js +0 -67
- package/build/server/chunks/nodes/18.js-Dx5djvj3.js +0 -70
- package/build/server/chunks/nodes/19.js-C-Dv2UZU.js +0 -68
- package/build/server/chunks/nodes/2.js-Dlx5yqWh.js +0 -67
- package/build/server/chunks/nodes/20.js-Crt3vcuB.js +0 -69
- package/build/server/chunks/nodes/21.js-DTRw0wlf.js +0 -68
- package/build/server/chunks/nodes/22.js-avqPhTYl.js +0 -69
- package/build/server/chunks/nodes/23.js-RRrhs54q.js +0 -69
- package/build/server/chunks/nodes/24.js-BFk3mjXx.js +0 -25
- package/build/server/chunks/nodes/25.js-B2Rb1Za9.js +0 -25
- package/build/server/chunks/nodes/26.js-BT9wbGJs.js +0 -9
- package/build/server/chunks/nodes/28.js-CjbQNy9F.js +0 -67
- package/build/server/chunks/nodes/3.js-u47cGgVr.js +0 -9
- package/build/server/chunks/nodes/30.js-DS5CGoON.js +0 -68
- package/build/server/chunks/nodes/31.js-DM2poShY.js +0 -67
- package/build/server/chunks/nodes/32.js-DFy_JaX0.js +0 -25
- package/build/server/chunks/nodes/33.js-DJeaepHV.js +0 -67
- package/build/server/chunks/nodes/34.js-BZwX56gy.js +0 -25
- package/build/server/chunks/nodes/35.js-DYTAoBE6.js +0 -22
- package/build/server/chunks/nodes/36.js-BY3unmMW.js +0 -67
- package/build/server/chunks/nodes/37.js-m6ZzMMTc.js +0 -70
- package/build/server/chunks/nodes/38.js-B3Kp1AAS.js +0 -69
- package/build/server/chunks/nodes/39.js-BvYxNpMG.js +0 -26
- package/build/server/chunks/nodes/4.js-BDLWobmB.js +0 -68
- package/build/server/chunks/nodes/40.js-Dw8-O1g2.js +0 -69
- package/build/server/chunks/nodes/41.js-D7Ne71uc.js +0 -71
- package/build/server/chunks/nodes/42.js-Bsljzkwn.js +0 -68
- package/build/server/chunks/nodes/43.js-CKN-FZAM.js +0 -68
- package/build/server/chunks/nodes/44.js-DWOVsqNq.js +0 -67
- package/build/server/chunks/nodes/5.js-NuGLVKKK.js +0 -67
- package/build/server/chunks/nodes/6.js-B5PJm0c8.js +0 -67
- package/build/server/chunks/nodes/8.js-B72TpXrD.js +0 -67
- package/build/server/chunks/nodes/9.js-D2iYl_QK.js +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const b=864e5,w=new Set(["blocked","failed","lost","unknown"]),h=e=>w.has(e.status),m=e=>e.attention?.owner==="captain";function o(e){if(e.mergedAt)return Date.parse(e.mergedAt);if(e.completedOn){const s=Date.parse(`${e.completedOn}T23:59:59`);return Number.isNaN(s)?null:s}return null}const d={blocked:0,failed:0,lost:1,unknown:1,waiting:2,done:3,working:4},c=e=>e.passage.steps.length>1?e.passage.current/(e.passage.steps.length-1):0;function O(e){const s=[],t=new Map;for(const l of e){let n=-1;for(const a of l.passage.steps){let i=s.indexOf(a.column);i<0&&(s.splice(n+1,0,a.column),i=n+1),n=i;const r=a.key===a.column,u=t.get(a.column);(!u||r&&!u.own)&&t.set(a.column,{label:a.label,own:r})}}return s.map(l=>({key:l,label:t.get(l)?.label??l}))}function v(e,s){const t={needsYou:[],waitingOnFirstmate:[],waitingOnReviewers:[],underWay:[],queued:[],landedRecent:[],landedOlder:[],closed:[],trouble:[],live:null,stepFailed:[]};for(const n of e)if(m(n))t.needsYou.push(n);else if(n.status==="with-firstmate")t.waitingOnFirstmate.push(n);else if(n.status==="with-reviewers")t.waitingOnReviewers.push(n);else if(n.status==="queued")t.queued.push(n);else if(n.status==="landed"){const a=o(n);(a!==null&&s-a<=864e5?t.landedRecent:t.landedOlder).push(n)}else n.status==="closed"?t.closed.push(n):(t.underWay.push(n),h(n)&&t.trouble.push(n));t.underWay.sort((n,a)=>(d[n.status]??5)-(d[a.status]??5)||c(a)-c(n));const l=(n,a)=>(o(a)??0)-(o(n)??0);return t.landedRecent.sort(l),t.landedOlder.sort(l),e.some(n=>n.passage.live!==null)&&(t.live=t.landedRecent.filter(n=>n.passage.live===!0)),t.stepFailed=[...t.underWay,...t.landedRecent].filter(n=>n.passage.steps[n.passage.current]?.failed),t}const R=e=>[...e.waitingOnReviewers,...e.underWay],y=e=>e==="completed"?"completed":"under-way",p=e=>e.status==="landed"||e.status==="done"||e.status==="closed",g=e=>{const s=e?Date.parse(e):NaN;return Number.isNaN(s)?null:s},f=e=>o(e)??g(e.current?.observedAt)??g(e.since);function $(e,s){return s==="under-way"?e.filter(t=>!p(t)):e.filter(p).sort((t,l)=>(f(l)??0)-(f(t)??0))}function N(e){const s=[],t=e.needsYou.length;s.push(t===0?"Nothing needs you.":`${t} ${t===1?"thing needs":"things need"} you.`);const l=[`${e.landedRecent.length} landed in the last day`];if(e.live&&l.push(`${e.live.length} live`),e.stepFailed.length){const a=[...new Set(e.stepFailed.map(i=>i.passage.steps[i.passage.current].label))];l.push(`${e.stepFailed.length} failed at ${a.join(" or ")}`)}s.push(`${l.join(", ")}.`);const n=[];return e.waitingOnFirstmate.length&&n.push(`${e.waitingOnFirstmate.length} waiting on Firstmate`),e.waitingOnReviewers.length&&n.push(`${e.waitingOnReviewers.length} waiting on reviewers`),e.trouble.length&&n.push(`${e.trouble.length} with Firstmate keeping an eye on them`),s.push(`${e.underWay.length} under way${n.length?`, ${n.join(", ")}`:""}.`),s.join(" ")}export{b as L,h as a,N as b,f as c,y as d,O as e,v as h,p as i,o as l,m as n,c as p,R as r,$ as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as L,f as M,h as k,n as N,r as w,s as c,i as e,a as b,b as P,d as E,k as x,c as y,j as C,o as _,t as z}from"./Jk-ASPRO.js";import{d as O,a as T,s as h}from"./DTApYZoW.js";import{i as I}from"./BEVJas-l.js";import{P as j}from"./DdUjyp9q.js";import{M as q}from"./V9uGi6jc.js";import{s as B,a as D}from"./DNP6oCAK.js";import{e as F,C as R}from"./Ds4LY5_S.js";import{C as S}from"./teNj0U11.js";var W=y('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function $(m,t){L(t,!0);let a=E(null),r=E(!1);function u(s){const n=s.currentTarget,i=n.closest("article"),g=i?.querySelector("[data-card-picture]");x(a,(g??i??n).getBoundingClientRect(),!0),x(r,!0)}var l=W(),d=M(l),o=k(d),f=k(o);q(f,{class:"size-3.5","aria-hidden":"true"}),N(),w(o),w(d);var v=c(d,2);{var p=s=>{{let n=C(()=>t.task.preview?.url??""),i=C(()=>t.task.status!=="landed");j(s,{get taskId(){return t.task.id},get title(){return t.task.shortTitle},get url(){return e(n)},get talk(){return e(i)},get from(){return e(a)},onclose:()=>x(r,!1)})}};I(v,s=>{e(r)&&t.task.preview&&s(p)})}T("click",o,u),b(m,l),P()}O(["click"]);var A=y('<span class="shrink-0 text-muted-foreground"> </span>'),G=y('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function tt(m,t){L(t,!0);const a=C(()=>F(t.eta));var r=G(),u=k(r);S(u,{class:"size-3.5 shrink-0","aria-hidden":"true"});var l=c(u,2),d=_(l,!0),o=c(l,2);{var f=s=>{var n=A(),i=_(n);z(g=>h(i,`· ${g??""}`),[()=>R[t.eta.confidence].toLowerCase()]),b(s,n)};I(o,s=>{e(a).tone==="normal"&&t.eta.confidence!=="none"&&s(f)})}var v=c(o,2),p=_(v,!0);w(r),z(()=>{B(r,1,`flex min-w-0 items-center gap-1.5 text-xs ${e(a).tone==="warning"?"text-warning":e(a).tone==="muted"?"text-muted-foreground":"text-foreground"}`),D(r,"title",e(a).note),h(d,e(a).text),h(p,e(a).note)}),b(m,r),P()}export{$ as C,tt as E};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./Dd_RZdO_.js";const r={decision:"Decision record",readme:"Readme",doc:"Doc"},d={worker:"The worker",firstmate:"Firstmate",captain:"You",review:"The automated review"},t=(e,s,o=`${s}s`)=>`${e} ${e===1?s:o}`;function u(e){if(!e||!e.questions&&!e.docs)return null;const s=e.questions-e.open,o=e.questions?e.open?s?`${t(s,"question")} answered, ${e.open} open`:`${t(e.open,"question")} open`:`${t(e.questions,"question")} answered`:null,n=e.docs?`${t(e.docs,"doc")} referenced${e.docsChanged?` · ${e.docsChanged} changed`:""}`:null;return{questions:o,docs:n}}function c(e,s){const n=`${e.raisedIn.charAt(0).toUpperCase()+e.raisedIn.slice(1)} asked ${e.questions.length===1?"a question":t(e.questions.length,"question")} ${a(e.askedAt,s)}`;return e.status==="answered"?`${n} · Firstmate answered ${a(e.answeredAt,s)}${e.answerCut?" (only the start of its answer was kept)":""}`:e.status==="closed"?`${n} · closed without an answer`:`${n} · waiting on Firstmate`}export{r as D,d as P,u as h,c as r};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as oe,q as E,i as e,v as re,k as o,h as w,r as k,t as S,a as i,b as ie,d as v,j as le,s as y,o as X,c as H,m as T,f as _e}from"./Jk-ASPRO.js";import{d as ce,e as ne,s as j,a as de}from"./DTApYZoW.js";import{i as q}from"./BEVJas-l.js";import{a as F,j as be,s as we}from"./DNP6oCAK.js";import{b as ee}from"./DLfKkHEy.js";import{p as te}from"./DQWg__9S.js";import{c as ue,m as ke}from"./Dd_RZdO_.js";import{a as fe,C as me,f as ye,c as Ce,b as Ee}from"./XxOJwmzJ.js";import{e as Te,l as $,c as ae}from"./BMMeDG3C.js";import{b as se,M as ze}from"./BbLERgY7.js";import{S as ve}from"./CuSw1clo.js";import{X as Le}from"./m8-RluHE.js";var Oe=H('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ae=H('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Se=H('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),je=H('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function He(B,n){oe(n,!0);let u=te(n,"open",15,!1);const J=200,P=16;let f=v(null),c=v(null),t=v(null),z=v(!1),M=v(0),I=v(0),g=v(.6),L=!0;E(()=>{if(e(f))if(u()&&!e(f).open){L=!0;const l=e(f);Te(document.documentElement).then(()=>{!u()||!l.isConnected?$(document.documentElement):l.open||l.showModal()})}else!u()&&e(f).open&&e(f).close()}),E(()=>{if(!u())return;const l=document.documentElement;let s=!1;const p=()=>{document.fullscreenElement===l?s=!0:s&&(s=!1,u(!1))};return document.addEventListener("fullscreenchange",p),()=>{document.removeEventListener("fullscreenchange",p),$(l)}}),E(()=>{if(!u())return;re(()=>ae.open++);const l=fe(n.task.id,J,me.full,{onresult:s=>{o(t,s,!0),o(z,!1)},onerror:()=>o(z,!0)});return()=>{l(),re(()=>ae.open--)}}),E(()=>{if(!e(c))return;const l=getComputedStyle(e(c)).fontFamily,s=document.createElement("canvas").getContext("2d");if(!s)return;s.font=`100px ${l}`;const p=s.measureText("M".repeat(10)).width/1e3;p>0&&o(g,p)});const O=le(()=>e(t)?.available?e(t).lines:[]),A=le(()=>ye({width:e(M)-2*P,height:e(I)-2*P,cols:Ce(e(O)),charWidth:e(g)}));E(()=>{e(t),e(A),e(c)&&L&&(e(c).scrollTop=e(c).scrollHeight)});const D=()=>{e(c)&&(L=e(c).scrollHeight-e(c).scrollTop-e(c).clientHeight<24)};var _=je(),K=w(_);{var Q=l=>{var s=Se(),p=w(s),a=w(p);ve(a,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var h=y(a,2),N=X(h,!0),W=y(h,2),U=X(W),R=y(W,4),V=w(R);Le(V,{class:"size-4"}),k(R),k(p);var r=y(p,2),x=w(r);{var pe=d=>{var b=Oe();let G;var Y=X(b,!0);S(Z=>{F(b,"data-cols",e(A).cols),F(b,"data-rows",e(A).rows),G=be(b,"",G,{padding:"16px","font-size":`${e(A).fontSize??""}px`,"line-height":Ee}),j(Y,Z)},[()=>e(O).join(`
|
|
2
|
+
`)]),i(d,b)},he=d=>{var b=Ae(),G=w(b);{var Y=m=>{var C=T("Could not reach the Wheelhouse server.");i(m,C)},Z=m=>{var C=T("Reading the worker’s terminal…");i(m,C)},xe=m=>{var C=T();S(()=>j(C,e(t).reason)),i(m,C)},ge=m=>{var C=T("The terminal is empty.");i(m,C)};q(G,m=>{e(z)?m(Y):e(t)?e(t).available?m(ge,-1):m(xe,2):m(Z,1)})}k(b),i(d,b)};q(x,d=>{e(O).length?d(pe):d(he,-1)})}k(r),ee(r,d=>o(c,d),()=>e(c)),k(s),S(d=>{j(N,n.task.shortTitle),j(U,`· live console, read-only${d??""}`)},[()=>e(t)?.capturedAt?` · ${ue(e(t).capturedAt)}`:""]),de("click",R,()=>u(!1)),ne("scroll",r,D),se(r,"clientWidth",d=>o(M,d)),se(r,"clientHeight",d=>o(I,d)),i(l,s)};q(K,l=>{u()&&l(Q)})}k(_),ee(_,l=>o(f,l),()=>e(f)),S(()=>{F(_,"aria-label",`${n.task.shortTitle??""}: live console`),F(_,"data-console-fullscreen",n.task.id)}),ne("close",_,()=>{$(document.documentElement),u(!1)}),i(B,_),ie()}ce(["click"]);var Me=H('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre max-md:[overflow-wrap:anywhere] max-md:whitespace-pre-wrap" aria-label="Latest lines of the worker’s terminal"> </pre>'),We=H('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Fe=H('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span class="max-md:whitespace-nowrap">Live console</span> <span class="ml-auto max-md:min-w-0 max-md:truncate"> </span> <!></div> <!></div> <!>',1);function Ve(B,n){oe(n,!0);let u=te(n,"lines",3,12),J=te(n,"class",3,"");const P=24;let f=v(null),c=v(!1),t=v(null),z=v(!1),M=v(!1);E(()=>{if(!e(f))return;const a=new IntersectionObserver(([h])=>o(c,h.isIntersecting,!0),{rootMargin:"100px"});return a.observe(e(f)),()=>a.disconnect()}),E(()=>{if(!(!e(c)||ae.open>0))return fe(n.task.id,u()+P,me.window,{onresult:a=>{o(t,a,!0),o(z,!1)},onerror:()=>o(z,!0)})}),E(()=>{n.onsample?.(e(t)?.available&&e(t).lines.length?{line:ke(e(t).lines),capturedAt:e(t).capturedAt}:null)});var I=Fe(),g=_e(I),L=w(g),O=y(L,2),A=w(O);ve(A,{class:"size-3","aria-hidden":"true"});var D=y(A,4),_=X(D),K=y(D,2);ze(K,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),k(O);var Q=y(O,2);{var l=a=>{var h=Me(),N=X(h,!0);S(W=>j(N,W),[()=>e(t).lines.slice(-u()).join(`
|
|
3
|
+
`)]),i(a,h)},s=a=>{var h=We(),N=w(h);{var W=r=>{var x=T("Could not reach the Wheelhouse server.");i(r,x)},U=r=>{var x=T("Reading the worker’s terminal…");i(r,x)},R=r=>{var x=T();S(()=>j(x,e(t).reason)),i(r,x)},V=r=>{var x=T("The terminal is empty.");i(r,x)};q(N,r=>{e(z)?r(W):e(t)?e(t).available?r(V,-1):r(R,2):r(U,1)})}k(h),i(a,h)};q(Q,a=>{e(t)?.available&&e(t).lines.length?a(l):a(s,-1)})}k(g),ee(g,a=>o(f,a),()=>e(f));var p=y(g,2);He(p,{get task(){return n.task},get open(){return e(M)},set open(a){o(M,a,!0)}}),S(a=>{we(g,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${J()??""}`),F(g,"data-console",n.task.id),F(L,"aria-label",`Open ${n.task.shortTitle??""}’s live console full screen`),j(_,`read-only${a??""}`)},[()=>e(t)?.capturedAt?` · ${ue(e(t).capturedAt)}`:""]),de("click",L,()=>o(M,!0)),i(B,I),ie()}ce(["click"]);export{Ve as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as k,s as y}from"./DdUjyp9q.js";import{h as S,r as C}from"./B0l1zoaP.js";import{e as M,a as $}from"./nqsqhzVw.js";const d=":firstmate",c="all",m=e=>e.secondMate?.id??d;function I(e,a){if(e.secondMate)return e.secondMate.id;const i=a.find(s=>s.id===e.taskId);return i?m(i):d}function O(e){if(e.length<2)return"";const a=e[0].match(/[-_.][^-_.]+$/)?.[0];return a&&e.every(i=>i.endsWith(a)&&i.length>a.length)?a:""}function W(e,a=[]){const i=[...new Set(a.map(t=>t.crew))].filter(t=>t!==d&&!e.some(l=>l.id===t)),s=O([...e.map(t=>t.id),...i]),r=t=>s?t.slice(0,-s.length):t;return[{id:d,label:"Firstmate",short:"Firstmate",mate:null},...e.map(t=>({id:t.id,label:t.id,short:r(t.id),mate:t})),...i.map(t=>({id:t,label:t,short:r(t),mate:null}))]}const Y=(e,a)=>e&&a.some(i=>i.id===e)?e:c,T=(e,a)=>e===c||e===a;function x(e){const a=e.passage.steps[e.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"danger",tone:"danger"}:e.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:e.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:e.status==="lost"||e.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:e.attention?.owner==="captain"?e.attention.kind==="review"?e.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:e.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:e.status==="waiting"&&a?.column==="review"?{label:a.label,icon:"flag",tone:"sea"}:e.addressingReview?{label:k(e)??"Changes requested",icon:e.busy?"sailing":"anchored",tone:e.busy?"busy":"muted"}:e.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:e.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:e.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:y(e)?{label:`Checks: ${e.pipeline.label}`,icon:"lighthouse",tone:e.busy?"busy":"muted"}:e.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const A={label:"Your call",icon:"flag",tone:"sea"};function _(e,a){const i=e?Date.parse(e):NaN;if(Number.isNaN(i))return"";const s=Math.max(0,(a-i)/1e3);if(s<60)return"now";const r=Math.round(s/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=(e,a)=>({kind:"task",key:`task:${e.id}`,task:e,text:a,crew:m(e),at:e.mergedAt??e.activity?.at??e.since});function q(e,a,i,s=null){const r=n=>!s||n===s,t=S(e,a),l=(i?.shown??[]).filter(n=>M(n)&&!$(n)&&r(n.projectId)),f=n=>n.secondMate?.taskId?`${n.secondMate.taskId}@${n.secondMate.id}`:n.taskId,b=new Set((i?.all??[]).filter(n=>n.kind==="hold").map(f)),g=new Set(l.filter(n=>n.kind==="merge").map(f)),u=new Set(t.stepFailed.map(n=>n.id)),p=t.stepFailed.filter(n=>!t.needsYou.includes(n)),w=t.needsYou.filter(n=>!(n.attention?.kind==="decision"&&b.has(n.id))&&!(n.attention?.kind==="review"&&g.has(n.id))),h=n=>n.attention?.kind==="decision"&&n.attention.text||n.shortTitle;return{h:t,needs:[...l.map(n=>({kind:"decision",key:`decision:${n.id}`,card:n,text:n.title,crew:I(n,e),at:n.askedAt})),...p.map(n=>o(n,n.shortTitle)),...w.map(n=>o(n,h(n)))],withFirstmate:t.waitingOnFirstmate.filter(n=>!u.has(n.id)).map(n=>o(n,h(n))),under:C(t).filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle)),next:t.queued.map(n=>o(n,n.shortTitle)),landed:t.landedRecent.filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle))}}function E(e,a,i){return a.filter(s=>T(i,s.id)).map(s=>({crew:s,lines:e.filter(r=>r.crew===s.id)})).filter(s=>s.lines.length||i!==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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{d as me,S as ue}from"./b8vhdCAF.js";import{p as fe,h as c,s as a,o as n,r as f,i as D,t as u,a as v,b as _e,j as ce,f as g,n as ge,c as l}from"./Jk-ASPRO.js";import{s as i}from"./DTApYZoW.js";import{i as _}from"./BEVJas-l.js";import{a as xe,e as we}from"./DNP6oCAK.js";import{p as G}from"./DQWg__9S.js";import{T as he}from"./BmXrroyA.js";const k=m=>m.installed?m.settings.filter(e=>e.current===void 0):m.settings,Ne=m=>Object.fromEntries(k(m).map(e=>[e.key,me(e.current??e.default)])),Be=(m,e)=>k(m).find(x=>x.required&&!e[x.key]?.trim())??null,De=m=>Object.fromEntries(Object.entries(m).filter(([,e])=>e.trim()!==""));var pe=l('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),be=l('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),ye=l('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),je=l('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),ke=l('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),Ae=l('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),Ie=l('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),Se=l('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),Oe=l('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),We=l("<li> </li>"),Re=l('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),Te=l('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Ge(m,e){fe(e,!0);let x=G(e,"answers",15),A=G(e,"busy",19,()=>[]);const I=ce(()=>k(e.preview)),S=t=>t.slice(0,12);var h=Te(),p=c(h),b=c(p),O=c(b),H=a(O),J=n(H);f(b);var W=a(b,2);{var L=t=>{var r=pe(),d=n(r,!0);u(()=>i(d,e.preview.description)),v(t,r)};_(W,t=>{e.preview.description&&t(L)})}var R=a(W,2),T=a(c(R),2),M=n(T),E=a(T,2);{var Q=t=>{var r=be(),d=a(g(r),2),s=n(d);u(o=>i(s,`${e.preview.installed.version??""} · ${o??""}`),[()=>S(e.preview.installed.commit)]),v(t,r)};_(E,t=>{e.preview.installed&&t(Q)})}var y=a(E,4),F=c(y),V=a(F);{var X=t=>{var r=ye(),d=a(c(r));f(r),u(()=>xe(d,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),v(t,r)};_(V,t=>{e.preview.installed&&t(X)})}f(y);var P=a(y,2);{var Y=t=>{var r=je(),d=a(g(r),2),s=n(d,!0);u(()=>i(s,e.preview.author)),v(t,r)};_(P,t=>{e.preview.author&&t(Y)})}var U=a(P,4),Z=n(U),q=a(U,2);{var $=t=>{var r=ke(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.services.join(", ")]),v(t,r)};_(q,t=>{e.preview.services.length&&t($)})}var z=a(q,2);{var ee=t=>{var r=Ae(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.addresses.join("; ")]),v(t,r)};_(z,t=>{e.preview.addresses?.length&&t(ee)})}var C=a(z,2);{var te=t=>{var r=Ie(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.capabilities.join("; ")]),v(t,r)};_(C,t=>{e.preview.capabilities?.length&&t(te)})}var K=a(C,2);{var re=t=>{var r=Se(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.roles.join("; ")]),v(t,r)};_(K,t=>{e.preview.roles?.length&&t(re)})}var ae=a(K,4),de=n(ae,!0);f(R),f(p);var N=a(p,2);{var se=t=>{var r=Oe(),d=c(r),s=n(d,!0),o=a(d,2);ue(o,{get settings(){return D(I)},get answers(){return x()},set answers(w){x(w)}}),ge(2),f(r),u(()=>i(s,e.preview.installed?"Its new settings":"Its settings")),v(t,r)};_(N,t=>{D(I).length&&t(se)})}var j=a(N,2),B=c(j);he(B,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var ie=a(B,2),ne=n(ie);f(j);var oe=a(j,2);{var ve=t=>{var r=Re(),d=a(c(r));we(d,20,A,s=>s,(s,o)=>{var w=We(),le=n(w,!0);u(()=>i(le,o)),v(s,w)}),f(d),f(r),v(t,r)};_(oe,t=>{A().length&&t(ve)})}f(h),u((t,r)=>{i(O,`${e.preview.name??""} `),i(J,`${e.preview.id??""} ${e.preview.version??""}`),i(M,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),i(F,`${t??""} `),i(Z,`${r??""}${e.preview.ui?"; a UI bundle":""}`),i(de,e.preview.on),i(ne,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
|
|
2
|
+
sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>S(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),v(m,h),_e()}export{Ge as P,De as f,Ne as i,Be as m};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as i}from"./Jk-ASPRO.js";import{r as c}from"./D-jtpdBG.js";import"./DsnmJJEf.js";import{s as m,r as d}from"./DQWg__9S.js";import{I as p}from"./DE0e4nJ8.js";const r=i({dark:!1});function f(){r.dark=document.documentElement.classList.contains("dark")}function y(e){const n=!r.dark,o=()=>{r.dark=n,document.documentElement.classList.toggle("dark",n)};if(!document.startViewTransition||c()||!e)o();else{const t=e.clientX||innerWidth-40,a=e.clientY||28,s=Math.hypot(Math.max(t,innerWidth-t),Math.max(a,innerHeight-a));document.startViewTransition(o).ready.then(()=>document.documentElement.animate({clipPath:[`circle(0px at ${t}px ${a}px)`,`circle(${s}px at ${t}px ${a}px)`]},{duration:520,easing:"cubic-bezier(0.2, 0.8, 0.2, 1)",pseudoElement:"::view-transition-new(root)"}))}try{localStorage.setItem("wheelhouse-theme",n?"dark":"light")}catch{}}var l=new Set(["$$slots","$$events","$$legacy"]);function k(e,n){let o=d(n,l);const t={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]]};p(e,m(()=>o,{get icon(){return t}}))}export{k as S,r as a,f as r,y as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as F}from"./B0l1zoaP.js";import"./DsnmJJEf.js";import{p as I,x as Q,f as S,i as t,a as P,b as W,j as c,h as d,r as f,s as m,o as y,t as Y,c as E}from"./Jk-ASPRO.js";import{s as h}from"./DTApYZoW.js";import{i as G}from"./BEVJas-l.js";import{a as C,s as v}from"./DNP6oCAK.js";import{p as J}from"./DQWg__9S.js";import{p as K}from"./CLsnhhko.js";import{d as R,i as $,o as T,a as V,s as X}from"./gocvF-xl.js";import{l as Z}from"./Ck-cnzoW.js";import{H as ee}from"./BrqXkLnL.js";import{C as te}from"./BfHvf1Rg.js";function he(s){return s?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function ve(s){const e=s.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[1][0]).toUpperCase():"?"}function xe(s){let e=0;for(const i of s)e=e*31+i.codePointAt(0)>>>0;return e%6}const j=s=>s.status!=="queued"&&s.status!=="landed"&&s.status!=="closed",se=s=>s.status==="failed"||s.status==="blocked"||s.status==="lost"||s.pipeline?.outcome==="failed"||s.passage.steps.some(e=>e.failed);function be(s){const e=s.filter(j),i=e.filter(se).length;return{percent:e.length?Math.round((e.length-i)/e.length*100):100,failing:i,inPlay:e.length}}function _e(s,e,i=4){return s.map(r=>{const a=e.filter(o=>o.projectId===r.id),n=a.some(F),l=a.some(o=>o.busy||j(o)&&o.status==="working");return{id:r.id,name:r.name,landed:a.length?Math.round(a.filter(o=>o.status==="landed").length/a.length*100):0,word:n?"Needs you":l?"Working":"Quiet",tone:n?"needs":l?"busy":"quiet",tasks:a.length}}).filter(r=>r.tasks>0).sort((r,a)=>a.tasks-r.tasks||r.name.localeCompare(a.name)).slice(0,i)}var ae=E('<a><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1"><span class="flex items-baseline gap-1.5 text-sm"><span> </span> <span class="truncate text-muted-foreground"> </span></span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span> <!></span></a>');function we(s,e){I(e,!0);let i=J(e,"compact",3,!1);const r=c(()=>K.data.inbox),a=c(()=>$.view(t(r))?.available?T($.cards(t(r)),Z.now,e.filter):[]),n=c(()=>t(a).filter(p=>X(p)==="waiting").length),l=c(()=>t(a)[0]??null),o=c(()=>V(e.filter,t(a).length===1?t(a)[0].id:null));var z=Q(),q=S(z);{var A=p=>{var u=ae(),g=d(u),B=d(g);{let k=c(()=>i()?"size-3.5":"size-4");ee(B,{get class(){return t(k)}})}f(g);var x=m(g,2),b=d(x),_=d(b),L=y(_,!0),M=m(_,2),N=y(M,!0);f(b);var D=m(b,2),O=y(D,!0);f(x);var w=m(x,2),H=d(w,!0),U=m(H);te(U,{class:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),f(w),f(u),Y(k=>{C(u,"href",t(o)),v(u,1,`group flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-lg border text-left transition-colors focus-visible:outline-2 focus-visible:outline-ring ${t(n)?"border-sea/40 bg-sea/[0.07] hover:bg-sea/[0.12]":"bg-card hover:bg-muted/60"} ${i()?"px-2.5 py-2":"px-3.5 py-2.5"}`),C(u,"data-decisions-badge",t(n)?"waiting":"open"),v(g,1,`grid shrink-0 place-items-center rounded-full ${t(n)?"bg-sea text-on-accent":"bg-muted text-foreground/70"} ${i()?"size-6":"size-7"}`),v(_,1,`shrink-0 font-semibold ${t(n)?"text-sea":""}`),h(L,k),h(N,t(n)?t(n)===t(a).length?t(a).length===1?"waiting on you":"all waiting on you":`${t(n)} waiting on you`:"Firstmate is handling"),C(D,"title",t(l).title),h(O,t(l).title),v(w,1,`flex shrink-0 items-center gap-0.5 text-sm font-medium ${t(n)?"text-sea":"text-muted-foreground"}`),h(H,t(n)?"Answer":"Open")},[()=>R(t(a).length)]),P(p,u)};G(q,p=>{t(l)&&p(A)})}P(s,z),W()}export{we as D,he as a,j as b,be as c,_e as g,xe as h,ve as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as N,q as v,i as c,k as f,v as y,f as U,s as P,t as j,a as S,b as F,j as _,d as g,o as W,c as T}from"./Jk-ASPRO.js";import{s as x}from"./DTApYZoW.js";import{i as C}from"./BEVJas-l.js";import{a as D}from"./DNP6oCAK.js";import{b as R}from"./DLfKkHEy.js";import{p as E}from"./DQWg__9S.js";import{p as q}from"./CLsnhhko.js";import{S as b}from"./BXN538J3.js";import{a as M}from"./BdjCJ4uL.js";async function J(r,e,a,o=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(r)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":o,[b]:a},body:JSON.stringify(e)});if(n.ok){const t=await n.json().catch(()=>null);return t?.message?.delivery==="failed"?{ok:!1,error:t.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function B(r,e,a){try{const o=await fetch(`/api/plugins/${encodeURIComponent(r)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[b]:a},body:JSON.stringify(e)}),n=await o.json().catch(()=>null);return o.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${o.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const H=r=>new URLSearchParams({plugin:r.plugin,service:r.service,...r.project?{project:r.project}:{}}).toString();async function z(r){try{const e=await fetch(`/api/services?${H(r)}`);return e.ok?await e.json():null}catch{return null}}async function L(r,e,a=null){const o=window.open("","_blank");try{o?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const t=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[b]:e},body:JSON.stringify({plugin:r.plugin,service:r.service,project:r.project??null})});n=t.ok?await t.json():{...await t.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${t.status}).`}}catch{n=null}const s=n?.state==="running"?a??n.url:null;if(s){const t=M.view(s);o?o.location.href=t:window.open(t,"_blank")}else o?.close();return n}const G=5e3,k=new Map;function K(r,e){let a=k.get(r);return a||(a=e(r).catch(o=>{throw k.delete(r),o}),k.set(r,a)),a}const I=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Q(r,e){const a=r.pluginId,o=(s,t)=>{if(typeof s!="string"||!s)throw new TypeError("Name a service.");const i=t===void 0?r.projectId:t;return{plugin:a,service:s,project:typeof i=="string"&&i?i:null}},n=s=>{const t=typeof s=="object"&&s!==null?s:{},i=typeof t.task=="string"&&t.task?t.task:r.taskId??null;return i?{taskId:i,subject:typeof t.subject=="string"?t.subject:null,items:Array.isArray(t.items)?t.items:[]}:null};return Object.freeze({pluginId:a,service:async(s,t={})=>e.status(o(s,t.project)),launch:async(s,t={})=>e.launch(o(s,t.project),e.token(),typeof t.open=="string"?t.open:null),sendFeedback:async s=>{if(!(e.clicked??I)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const t=n(s);return t?e.feedback(a,t,e.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async s=>{if(!(e.clicked??I)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!e.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const t=n(s);return t?e.summarise(a,t,e.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function V(r,e){if(!customElements.get(e.tag)){if(!e.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await K(e.ui,e.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let o;try{await Promise.race([customElements.whenDefined(e.tag),new Promise((n,s)=>{o=setTimeout(()=>s(new Error(`its UI bundle does not define <${e.tag}>`)),e.timeoutMs??G)})])}finally{clearTimeout(o)}}const a=document.createElement(e.tag);return e.host&&(a.host=e.host),a.entry=e.entry,a.data=e.data,r.append(a),a}var X=T('<p class="text-sm text-muted-foreground"> </p>'),Y=T('<div class="contents"></div> <!>',1);function ce(r,e){N(e,!0);let a=E(e,"preview",3,void 0),o=E(e,"quiet",3,!1);const n=_(()=>"element"in e.entry.render?e.entry.render.element:""),s=_(()=>e.entry.ui??null);let t=g(null),i=g(null),m=g(null);v(()=>{if(!c(t)||!c(n))return;const l=c(t);let u=!1,h=null;return f(m,null),V(l,{tag:c(n),ui:c(s),data:y(()=>e.data),entry:y(()=>e.entry),host:Q(y(()=>e.entry),{status:z,launch:L,feedback:J,summarise:B,token:()=>q.data.sessionToken??""}),importer:e.importer}).then(d=>{h=d,u?d.remove():f(i,d,!0)},d=>{u||f(m,d.message,!0)}),()=>{u=!0,h?.remove(),f(i,null)}}),v(()=>{c(i)&&(a()!==void 0&&(c(i).preview=a()),c(i).entry=e.entry,c(i).data=e.data)});var w=Y(),p=U(w);R(p,l=>f(t,l),()=>c(t));var O=P(p,2);{var A=l=>{var u=X(),h=W(u);j(()=>x(h,`Not available. The ${e.entry.pluginId??""} plugin’s element could not be shown: ${c(m)??""}.`)),S(l,u)};C(O,l=>{c(m)&&!o()&&l(A)})}j(()=>D(p,"data-plugin-element",c(n))),S(r,w),F()}export{ce as P};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{a as zt}from"./CeV_7ApB.js";import{p as ut,d as V,e as Dt,q as wt,f as ae,h as y,o as E,s as o,i as e,r as u,t as w,a as r,b as vt,j as re,k as s,n as Se,m as be,c as i,y as He,x as We,v as Lt,z as Ot,A as It}from"./Jk-ASPRO.js";import{d as Wt,s as h,e as kt,a as rt,l as Ft}from"./DTApYZoW.js";import{i as $}from"./BEVJas-l.js";import{k as Ut}from"./CsFoEe5t.js";import{c as Ht}from"./Cq7OFmxz.js";import{r as xt,a as ie,e as $e,i as Ke,g as Vt,f as qt,s as De,c as Kt,j as Bt}from"./DNP6oCAK.js";import{s as Pt,r as At,p as at}from"./DQWg__9S.js";import{a as Jt}from"./Dd_RZdO_.js";import{b as Zt}from"./CNxxt--f.js";import{p as ct}from"./CLsnhhko.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"./VrUPyiEH.js";import{L as Xt}from"./Cz0t0Wrt.js";import{K as St}from"./C-HYwD2y.js";import{C as Qt}from"./BfHvf1Rg.js";import{I as Nt}from"./DE0e4nJ8.js";import{E as er}from"./KaWfcwy_.js";import{b as yt}from"./DLfKkHEy.js";import{a as bt}from"./BdjCJ4uL.js";import{s as tr}from"./Cw6Vodkk.js";import{l as Mt,e as rr}from"./BMMeDG3C.js";import{L as Rt}from"./D73wi9-q.js";import{P as ar}from"./B_DDhx9A.js";import{C as nr}from"./BwqxEF2U.js";import{C as or}from"./c9k4nDgn.js";import{X as sr}from"./m8-RluHE.js";import{C as ir}from"./CFq-JuCn.js";import{C as lr}from"./lCxfAEBr.js";import{E as dr}from"./gEZHG5dd.js";import{P as cr}from"./C0e4APHr.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"./DsnmJJEf.js";import{p as G,h as q,t as l,a as d,i as o,r as b,s as j,b as I,j as h,o as x,c as g}from"./Jk-ASPRO.js";import{d as J,s as _,a as K}from"./DTApYZoW.js";import{i as z}from"./BEVJas-l.js";import{e as M,s as k,a as c,j as N}from"./DNP6oCAK.js";import{p as u}from"./DQWg__9S.js";import{l as O}from"./Ck-cnzoW.js";import{a as P,c as Q}from"./DdUjyp9q.js";const R={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},S={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var U=g("<li></li>"),V=g("<span> </span>"),X=g('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),Y=g('<span class="text-foreground/80"> </span>'),Z=g('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function ie(F,a){G(a,!0);let H=u(a,"busy",3,!1),y=u(a,"lead",3,null),L=u(a,"leadClass",3,""),T=u(a,"size",3,"card"),n=u(a,"questions",3,null);const f=h(()=>a.pipeline.steps.map(e=>({s:e,tone:P(e,a.pipeline)}))),w=h(()=>Q(a.pipeline,O.now)),W=h(()=>`Checks: ${o(f).map(({s:e,tone:t})=>`${e.label} ${S[t]}`).join(", ")}`);var p=Z(),i=q(p);M(i,21,()=>o(f),({s:e,tone:t})=>e.key,(e,t)=>{let r=()=>o(t).s,s=()=>o(t).tone;var v=U();l(()=>{k(v,1,`h-1 rounded-full ${R[s()]??""} ${H()&&(s()==="active"||s()==="fixing")?"motion-safe:animate-pulse":""}`),c(v,"title",`${r().label??""}: ${S[s()]??""}`)}),d(e,v)}),b(i);var m=j(i,2),C=q(m);{var A=e=>{var t=V(),r=x(t);l(()=>{k(t,1,`font-medium ${L()??""}`),_(r,`${y()??""}.`)}),d(e,t)};z(C,e=>{y()&&e(A)})}var B=j(C,2);{var D=e=>{var t=X(),r=x(t,!0);l(()=>{c(t,"aria-expanded",n().expanded),c(t,"aria-controls",n().controls),c(t,"title",n().expanded?"Hide the questions":"Show the questions"),_(r,o(w))}),K("click",t,function(...s){n().toggle?.apply(this,s)}),d(e,t)},E=e=>{var t=Y(),r=x(t,!0);l(()=>_(r,o(w))),d(e,t)};z(B,e=>{n()?e(D):e(E,-1)})}b(m),b(p),l(()=>{N(i,`grid-template-columns: repeat(${o(f).length??""}, minmax(0, 1fr))`),c(i,"aria-label",o(W)),k(m,1,`tabular line-clamp-2 text-muted-foreground ${T()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),d(F,p),I()}J(["click"]);export{ie as C};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as _}from"./Dd_RZdO_.js";import{L as q,l as x,n as C,a as v,s as A,h as R,c as h}from"./B0l1zoaP.js";import{P as W,u as P}from"./CYK2vYXV.js";const y=[{key:"queued",label:"Queued",hint:"Waiting its turn"},{key:"building",label:"Building",hint:"The crew is writing it"},{key:"testing",label:"Testing",hint:"Checks and review"},{key:"pr",label:"Pull request",hint:"In CI or with you"},{key:"landed",label:"Landed",hint:"In the last day"}],$={queued:"queued",building:"building",checks:"testing",pr:"pr",review:"pr",landed:"landed"};function N(e){if(e.status==="queued")return"queued";if(e.status==="landed")return"landed";const t=e.passage.steps;for(let n=Math.min(e.passage.current,t.length-1);n>=0;n--){const i=$[t[n].column]??$[t[n].key];if(i)return i}return"building"}const Q={you:"Waiting on you",stuck:"Stuck",firstmate:"With Firstmate",busy:"Busy",idle:"Idle",landed:"Landed"};function Y(e){return e.status==="landed"?"landed":C(e)?"you":v(e)||e.passage.steps[e.passage.current]?.failed||e.pipeline?.outcome==="failed"?"stuck":e.status==="with-firstmate"?"firstmate":e.busy?"busy":"idle"}const b={you:0,stuck:1,firstmate:2,busy:3,idle:4,landed:5},B=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function m(e,t=N(e)){return t==="landed"?x(e):t==="testing"?B(e.pipeline?.startedAt):null}function V(e,t,n){const i=new Map;for(const a of t){if(a.status==="closed")continue;const r=N(a),o=a.passage.steps[a.passage.current]?.key??null,s=e.get(a.id);if(!s||s.lane!==r){i.set(a.id,s?{lane:r,step:o,laneSince:n,stepSince:n}:{lane:r,step:o,laneSince:m(a,r),stepSince:null});continue}const u=s.laneSince??m(a,r);i.set(a.id,s.step!==o?{...s,step:o,laneSince:u,stepSince:n}:u!==s.laneSince?{...s,laneSince:u}:s)}return i}const p=3600*1e3,L=.35;function F(e,t){if(e===null)return L;const n=t-e;if(n<=p)return 1;const i=Math.min(1,(n-p)/(q-p));return 1-(1-L)*i}function z(e,t,n){const i=new Map(y.map(s=>[s.key,[]])),a={you:0,stuck:0,firstmate:0,busy:0,idle:0,landed:0};let r=0;for(const s of e){if(s.status==="closed")continue;const u=N(s),d=n?.get(s.id),c=d?d.laneSince:m(s,u),f=Y(s);if(s.status==="landed"&&(c===null||t-c>q)){r++;continue}a[f]++,i.get(u).push({id:s.id,task:s,lane:u,signal:f,since:c,stepSince:d?.stepSince??null,opacity:f==="landed"?F(c,t):1})}const o=(s,u)=>s.lane==="landed"?(u.since??0)-(s.since??0):b[s.signal]-b[u.signal]||(s.since??1/0)-(u.since??1/0)||s.id.localeCompare(u.id);return{lanes:y.map(s=>({...s,blips:i.get(s.key).sort(o)})),landedOlder:r,counts:a}}const K=e=>y.find(t=>t.key===e).label;function U(e,t){if(e===null)return"unknown";const n=Math.max(0,Math.round((t-e)/6e4));if(n<1)return"under a minute";if(n<60)return`${n} min`;const i=Math.round(n/60);return i<48?`${i} h`:`${Math.round(i/24)} days`}const S=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t},k=["needs-you","held-up","new","under-way","quiet"],j=14,X={"needs-you":"Needs you","held-up":"Held up",new:"New","under-way":"Under way",quiet:"Quiet"},E=e=>!!e.passage.steps[e.passage.current]?.failed;function Z(e,t,n){const i=A(t,"under-way"),a=R(i,n),r=l=>v(l)||E(l),o=a.underWay.filter(r),s=[...a.underWay.filter(l=>!r(l)),...a.waitingOnFirstmate,...a.waitingOnReviewers],u=A(t,"completed"),d=u.filter(l=>l.status==="landed"),c=d.filter(l=>{const T=h(l);return T!==null&&n-T<=W}),f=t.map(l=>P(l)).filter(l=>l!==null),w=t.map(l=>S(l.since)).filter(l=>l!==null),D=!u.length&&w.length>0&&Math.min(...w)>=n-j*864e5,O=a.needsYou.length?"needs-you":o.length||e.passage?.problems?"held-up":i.length?D?"new":"under-way":"quiet";return{project:e,state:O,yourMove:a.needsYou,heldUp:o,moving:s,queued:a.queued,landed:c,lastLanded:d[0]??null,landings:d.map(l=>h(l)).filter(l=>l!==null),underWay:o.length+s.length,openPullRequests:i.filter(l=>l.pr).length,lastActivity:f.length?Math.max(...f):null}}const g=e=>e.trim().replace(/[.\s]+$/,""),M=e=>e.passage.steps[e.passage.current]?.label??null;function I(e,t,n){const i=[t.activity?.source==="state"?null:S(t.activity?.at),S(t.since)].filter(a=>a!==null);return i.length?` ${e} for ${U(Math.max(...i),n)}.`:""}function ee(e,t){const n=e.yourMove[0];if(n)return(n.attention?.text?`${n.shortTitle}: ${g(n.attention.text)}.`:`${n.shortTitle} needs you.`)+I("Waiting",n,t);const i=e.heldUp[0];if(i)return(E(i)?`${i.shortTitle}: ${M(i)} failed.`:`${i.shortTitle}: ${g(i.statusLabel)}.`)+I("Held up",i,t);if(e.project.passage?.problems)return"Its passage file has problems.";const a=e.moving[0];if(a){if(a.activity?.text)return`${a.shortTitle}: ${g(a.activity.text)}.`;const s=M(a);return s?`${a.shortTitle} is at ${s}.`:`${a.shortTitle} is under way.`}if(e.queued.length)return`Nothing under way. ${e.queued.length} queued.`;const r=e.lastLanded,o=r?h(r):null;return r&&o!==null?`Nothing under way. ${r.shortTitle} landed ${_(new Date(o).toISOString(),t)}.`:"No work yet."}function te(e){return e.toSorted((t,n)=>k.indexOf(t.state)-k.indexOf(n.state)||(n.lastActivity??-1/0)-(t.lastActivity??-1/0)||t.project.name.localeCompare(n.project.name))}export{X as S,te as a,Z as b,Q as c,K as l,ee as p,z as r,U as s,V as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as r}from"./D-sY9AXp.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as h,i as c,c as d,l as m,a as k,p as g}from"./B0l1zoaP.js";const S={harbour:"wh-harbour-view"};function q(e,n,s){return e.key===n?{key:n,dir:e.dir==="asc"?"desc":"asc"}:{key:n,dir:s}}const p=e=>{const n=e?Date.parse(e):NaN;return Number.isNaN(n)?null:n};function y(e){const n=[p(e.activity?.at),m(e),p(e.since)].filter(s=>s!==null);return n.length?Math.max(...n):null}function w(e){return h(e)?{who:"you",label:e.attention?.kind!=="review"?"You: decision":e.attention.approved?"You: merge":"You: review"}:e.status==="with-firstmate"||k(e)?{who:"firstmate",label:"Firstmate"}:e.status==="with-reviewers"?{who:"reviewers",label:"Reviewers"}:c(e)?{who:"nobody",label:"—"}:e.status==="queued"?{who:"queue",label:e.blockedBy.length?`${e.blockedBy.length} earlier ${e.blockedBy.length===1?"task":"tasks"}`:"Its turn"}:{who:"crew",label:"Crew"}}const f={you:0,firstmate:1,reviewers:2,crew:3,queue:4,nobody:5},v={"needs-review":0,"needs-decision":0,blocked:1,failed:1,lost:2,unknown:2,"with-firstmate":3,"with-reviewers":3,waiting:4,working:5,queued:6,done:7,landed:8},u=e=>h(e)?0:v[e.status]??5,T={task:"asc",project:"asc",stage:"desc",status:"asc",waiting:"asc",updated:"desc"};function A(e,n,s){const r=(t,o)=>t.localeCompare(o,void 0,{sensitivity:"base"}),a=t=>(c(t)?d(t):y(t))??0,i={task:(t,o)=>r(t.shortTitle,o.shortTitle),project:(t,o)=>r(s(t),s(o)),stage:(t,o)=>g(t)-g(o)||t.passage.current-o.passage.current,status:(t,o)=>u(t)-u(o),waiting:(t,o)=>f[w(t).who]-f[w(o).who],updated:(t,o)=>a(t)-a(o)},l=n.dir==="asc"?1:-1;return e.toSorted((t,o)=>l*i[n.key](t,o)||u(t)-u(o)||a(o)-a(t))}const b=168*3600*1e3;function I(e,n){const s={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null};for(const r of e){if(h(r))s.needsYou++;else if(r.status==="queued")s.queued++;else if(c(r)){const i=d(r);r.status==="landed"&&i!==null&&n-i<=b&&s.landed++}else s.underWay++;const a=c(r)?d(r):y(r);a!==null&&(s.lastActivity===null||a>s.lastActivity)&&(s.lastActivity=a)}return s}function Y(e){if(!e.registered)return null;const n=(e.posture??"").split(/\s+/).filter(Boolean),s=n.find(t=>!t.startsWith("+")&&!t.includes("="))??"no-mistakes",r=n.includes("forge=gerrit")?" on Gerrit":"",a={"no-mistakes":`Every change runs the full checks before its pull request${r}`,"direct-PR":`Changes go straight to a pull request${r}`,"local-only":"Kept on this machine: changes land locally, with no pull request","no-mistakes-prod-only":`Product changes run the full checks; internal tooling goes straight to a pull request${r}`},i={"no-mistakes":"Full checks","direct-PR":"Straight to PR","local-only":"Local only","no-mistakes-prod-only":"Full checks for product work"},l=s!=="local-only"&&n.includes("+yolo");return{ships:a[s]??`Ships as "${s}"`,merges:s==="local-only"?"You approve each landing":l?"Firstmate merges once checks are green":"You merge each pull request",short:`${i[s]??s} · ${s==="local-only"?"you approve":l?"Firstmate merges":"you merge"}`}}export{b as P,T,S as V,I as a,q as n,Y as p,A as s,y as u,w};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{s as W,r as U,p as B}from"./DQWg__9S.js";import{I as J}from"./DE0e4nJ8.js";import{p as Y,h as f,i as e,r as v,t as w,a as p,b as Z,j as Q,n as q,s as c,o as g,c as u,e as ee,f as ae}from"./Jk-ASPRO.js";import{s as _,d as te,a as se}from"./DTApYZoW.js";import{i as N}from"./BEVJas-l.js";import{s as C,a as E,e as K,j as D}from"./DNP6oCAK.js";import{F as G}from"./CGgXi5F1.js";import{H as re}from"./BrqXkLnL.js";import{G as ie}from"./MgFVe5-f.js";import{S as oe}from"./CuSw1clo.js";var ne=new Set(["$$slots","$$events","$$legacy"]);function le(t,o){let h=U(o,ne);const a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14"}],["path",{d:"M5 2h14"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"}]]};J(t,W(()=>h,{get icon(){return a}}))}var de=new Set(["$$slots","$$events","$$legacy"]);function He(t,o){let h=U(o,de);const a={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};J(t,W(()=>h,{get icon(){return a}}))}var pe=u('<div class="flex size-full flex-col gap-1.5 bg-card px-4 py-3" aria-label="Its report"><span class="flex items-center gap-1.5 text-xs text-muted-foreground"><!>Report</span> <span class="line-clamp-2 font-display text-sm leading-snug font-medium"> </span> <span class="line-clamp-3 text-xs leading-relaxed text-muted-foreground"> </span></div>'),ue=u('<img loading="lazy" class="size-full object-cover object-top"/>'),ve=u('<div class="flex items-center gap-2"><span class="w-0 flex-1 truncate font-mono text-xs text-muted-foreground"> </span> <span class="flex h-1.5 w-20 overflow-hidden rounded-full bg-border/60"><span class="bg-success/80"></span> <span class="bg-danger/80"></span></span></div>'),ce=u('<p class="font-mono text-xs text-muted-foreground"> </p>'),me=u('<div class="flex size-full flex-col justify-center gap-1.5 p-4" aria-label="Files changed"><!> <!></div>'),xe=u('<div class="grid size-full place-items-center text-muted-foreground/50"><!></div>'),fe=u("<div><!></div>");function Oe(t,o){Y(o,!0);let h=B(o,"class",3,"");const a=Q(()=>o.task.thumb),y=Q(()=>e(a).kind==="diff"?Math.max(1,...e(a).files.map(i=>i.additions+i.deletions)):1);var S=fe(),I=f(S);{var s=i=>{var n=pe(),m=f(n),F=f(m);G(F,{class:"size-3 shrink-0","aria-hidden":"true"}),q(),v(m);var k=c(m,2),l=g(k,!0),d=c(k,2),x=g(d,!0);v(n),w(()=>{_(l,e(a).title??"Report"),_(x,e(a).excerpt)}),p(i,n)},H=i=>{var n=ue();w(()=>{E(n,"src",e(a).url),E(n,"alt",`Latest screenshot: ${e(a).name??""}`)}),p(i,n)},T=i=>{var n=me(),m=f(n);K(m,17,()=>e(a).files,l=>l.path,(l,d)=>{var x=ve(),r=f(x),O=g(r,!0),b=c(r,2),z=f(b),R=c(z,2);v(b),v(x),w(M=>{_(O,M),D(z,`width:${e(d).additions/e(y)*100}%`),D(R,`width:${e(d).deletions/e(y)*100}%`)},[()=>e(d).path.split("/").pop()]),p(l,x)});var F=c(m,2);{var k=l=>{var d=ce(),x=g(d);w(()=>_(x,`+${e(a).totalFiles-e(a).files.length} more`)),p(l,d)};N(F,l=>{e(a).totalFiles>e(a).files.length&&l(k)})}v(n),p(i,n)},L=i=>{var n=xe(),m=f(n);{var F=r=>{le(r,{class:"size-6","aria-hidden":"true"})},k=r=>{re(r,{class:"size-6","aria-hidden":"true"})},l=r=>{G(r,{class:"size-6","aria-hidden":"true"})},d=r=>{ie(r,{class:"size-6","aria-hidden":"true"})},x=r=>{oe(r,{class:"size-6","aria-hidden":"true"})};N(m,r=>{o.task.status==="queued"?r(F):o.task.attention?.kind==="decision"?r(k,1):o.task.hasReport?r(l,2):o.task.pr?r(d,3):r(x,-1)})}v(n),p(i,n)};N(I,i=>{e(a).kind==="report"?i(s):e(a).kind==="screenshot"?i(H,1):e(a).kind==="diff"?i(T,2):i(L,-1)})}v(S),w(()=>C(S,1,`relative aspect-[16/10] overflow-hidden rounded-lg border bg-muted/40 ${h()??""}`)),p(t,S),Z()}var ge=u('<p class="mt-1.5 leading-relaxed whitespace-pre-line text-muted-foreground" data-question-detail=""> </p>'),_e=u('<!> <button type="button" class="touch-target mt-1 text-xs text-muted-foreground hover:text-foreground hover:underline"> </button>',1),he=u('<p class="mt-0.5 leading-relaxed"> </p>'),be=u('<div class="mt-2 border-l-2 border-brass/60 pl-2.5" data-question-call=""><p class="text-xs text-muted-foreground">Firstmate decided: <span class="font-medium text-foreground"> </span></p> <!></div>'),we=u('<li><div class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1"><p class="text-xs text-muted-foreground"> </p> <span> </span></div> <p class="mt-1 leading-relaxed"> </p> <!> <!></li>'),ye=u('<ol class="space-y-2" data-questions=""></ol>');function Ve(t,o){let h=B(o,"size",3,"page"),a=ee({});const y={waiting:{label:"Waiting on Firstmate",class:"bg-warning/10 text-warning"},answered:{label:"Answered",class:"bg-success/10 text-success"},closed:{label:"Closed without an answer",class:"bg-muted text-muted-foreground"}};var S=ye();K(S,23,()=>o.questions,I=>I.id,(I,s,H)=>{var T=we(),L=f(T),i=f(L),n=g(i),m=c(i,2),F=g(m,!0);v(L);var k=c(L,2),l=g(k,!0),d=c(k,2);{var x=b=>{var z=_e(),R=ae(z);{var M=$=>{var j=ge(),A=g(j,!0);w(()=>_(A,e(s).detail)),p($,j)};N(R,$=>{a[e(s).id]&&$(M)})}var P=c(R,2),V=g(P,!0);w(()=>{E(P,"aria-expanded",!!a[e(s).id]),_(V,a[e(s).id]?"Show less":"Show the whole question")}),se("click",P,()=>a[e(s).id]=!a[e(s).id]),p(b,z)};N(d,b=>{e(s).detail&&b(x)})}var r=c(d,2);{var O=b=>{var z=be(),R=f(z),M=c(f(R)),P=g(M,!0);v(R);var V=c(R,2);{var $=j=>{var A=he(),X=g(A,!0);w(()=>_(X,e(s).reason)),p(j,A)};N(V,j=>{e(s).reason&&j($)})}v(z),w(()=>_(P,e(s).verdict)),p(b,z)};N(r,b=>{e(s).verdict&&b(O)})}v(T),w(()=>{C(T,1,`rounded-md border border-hair bg-card ${h()==="card"?"px-2.5 py-2 text-xs":"px-3 py-2.5 text-sm"}`),E(T,"data-question",e(s).status),_(n,`Question ${e(H)+1}${e(s).where?` · ${e(s).where}`:""}${e(s).serious?" · marked serious":""}`),C(m,1,`rounded-full px-2 py-0.5 text-xs font-medium ${y[e(s).status].class??""}`),_(F,y[e(s).status].label),_(l,e(s).summary)}),p(I,T)}),v(S),p(t,S)}te(["click"]);const ke="No screenshots saved",ze="No live preview reported",Se="No pull request recorded",Ce=t=>t.attention?.owner==="captain"&&t.attention.kind==="review";function Re(t){return t<=0?ke:`${t} ${t===1?"screenshot":"screenshots"}`}function Qe(t,o=null){const h=o??[],a=o?h.length:t.screenshots,y=t.preview?.url??t.passage.link?.url??null;return{shots:h,shotsText:Re(a),preview:y?{url:y}:null,previewText:y?"Live preview":ze,pr:t.pr?{url:t.pr.url,label:t.pr.number?`PR #${t.pr.number}`:"Pull request"}:null,prText:t.pr?t.pr.number?`PR #${t.pr.number}`:"Pull request":Se}}export{He as I,Ve as Q,Oe as T,Ce as a,Qe as r,Re as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{p as v,a as i,b as h,c as p,o as _,t as d,i as r,r as g,j as b}from"./Jk-ASPRO.js";import{s as x}from"./DTApYZoW.js";import{e as L,a as l}from"./DNP6oCAK.js";import{p as n}from"./CLsnhhko.js";import{H as O,L as o}from"./BGZONLpF.js";var H=p('<a class="nav-tab shrink-0"> </a>'),k=p('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function y(f,m){v(m,!0);const c=b(()=>n.data.features?.soundings?[...o.slice(0,-1),O,...o.slice(-1)]:o);var e=k();L(e,21,()=>r(c),s=>s.href,(s,t)=>{var a=H(),u=_(a,!0);d(()=>{l(a,"href",r(t).href),l(a,"aria-current",n.url.pathname===r(t).href?"page":void 0),x(u,r(t).label)}),i(s,a)}),g(e),i(f,e),h()}export{y as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as r,i as n,k as i,e as f}from"./Jk-ASPRO.js";import{p as d}from"./CLsnhhko.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{aC as Ve,p as be,x as Z,f as i,a as r,b as xe,i as e,h as se,y as qe,r as oe,j as y,c as S,d as G,e as Ee,s as d,n as L,m as T,k as a,t as de,o as Ae}from"./Jk-ASPRO.js";import{d as Je,s as ue,e as Ke,a as Me}from"./DTApYZoW.js";import{i as H}from"./BEVJas-l.js";import{c as h}from"./Cq7OFmxz.js";import{l as Qe,r as Be,s as Se,c as ze}from"./DNP6oCAK.js";import{b as Le}from"./CNxxt--f.js";import{p as O,r as We,s as fe}from"./DQWg__9S.js";import{p as Xe}from"./CLsnhhko.js";import{D as Te}from"./DqyvT7BR.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./Br5gy4Yk.js";import{s as Oe}from"./Wu0Biojm.js";import{c as st,a as ot,b as $e,m as lt}from"./1rMfpM_v.js";import{B as Q}from"./VrUPyiEH.js";import{C as nt,e as it,b as dt,i as ut}from"./b8vhdCAF.js";import{P as ft,i as pt,f as mt,m as vt}from"./BHJ2GOQ2.js";import{P as ct}from"./CJxikGC0.js";import{L as gt}from"./D73wi9-q.js";import{T as _t}from"./BmXrroyA.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const N=Ve();be(o,!0);let U=O(o,"id",19,()=>st(N)),V=O(o,"ref",15,null),R=O(o,"disabled",3,!1),t=We(o,ht);const $=ot.create({id:$e(()=>U()),ref:$e(()=>V(),c=>V(c)),disabled:$e(()=>!!R())}),A=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var W=c=>{var k=Z(),q=i(k);Oe(q,()=>o.child,()=>({props:e(A)})),r(c,k)},le=c=>{var k=$t();Qe(k,()=>({...e(A)}));var q=se(k);Oe(q,()=>o.children??qe),oe(k),r(c,k)};H(f,c=>{o.child?c(W):c(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let N=O(o,"ref",15,null),U=O(o,"type",3,"button"),V=We(o,xt);var R=Z(),t=i(R);h(t,()=>bt,($,A)=>{A($,fe({"data-slot":"dialog-trigger",get type(){return U()}},()=>V,{get ref(){return N()},set ref(u){N(u)}}))}),r(X,R),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Re=S("<!> <!> <!>",1),Ct=S("<p> </p>");function Kt(X,o){be(o,!0);let N=O(o,"busy",19,()=>[]),U=O(o,"suggested",3,null),V=O(o,"label",3,"Install plugin"),R=G(!1),t=G("form"),$=G(""),A=G(""),u=G(null),f=G(null),W=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),c=y(()=>e(f)?vt(e(f),e(W)):null),k=()=>Xe.data.sessionToken,q="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function je(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const B=await it({repo:e($).trim(),ref:e(A).trim()||null},k());if(!B.ok){a(u,B.error,!0),a(t,"form");return}a(f,B.value,!0),a(W,pt(B.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(c))return;a(t,"saving"),a(u,null);const Y=dt(),B=await ut(e(f),mt(e(W)),k());if(!B.ok){a(u,B.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,B)=>{B(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(A,""),we()),E&&e(t)==="form"&&U()&&!e($)&&a($,U())},get open(){return e(R)},set open(E){a(R,E,!0)},children:(E,At)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);ct(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,V())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(g,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(j,n)=>{L();var m=T("Install a plugin from GitHub");r(j,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(j,n)=>{var m=Z(),C=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
|
+
Nothing runs until you install it.`);r(v,z)};H(C,v=>{e(t)==="review"?v(_):v(w,-1)})}r(j,m)},$$slots:{default:!0}})}),r(g,x)},$$slots:{default:!0}})});var ne=d(re,2);{var ve=b=>{var P=Dt(),g=i(P),D=se(g),x=d(se(D),2);Be(x),Se(x,1,ze(q)),L(2),oe(D);var I=d(D,2),s=d(se(I),2);Be(s),Se(s,1,ze(q)),L(2),oe(I);var l=d(I,2);{var p=n=>{var m=kt(),C=se(m);_t(C,{class:"mt-0.5 size-3.5 shrink-0"});var _=d(C,1,!0);oe(m),de(()=>ue(_,e(u))),r(n,m)};H(l,n=>{e(u)&&n(p)})}oe(g);var j=d(g,2);h(j,()=>he,(n,m)=>{m(n,{children:(C,_)=>{var w=ae(),v=i(w);{const F=(J,K)=>{Q(J,fe(()=>(K?.()).props,{variant:"ghost",children:(ge,Ce)=>{L();var _e=T("Cancel");r(ge,_e)},$$slots:{default:!0}}))};h(v,()=>Te,(J,K)=>{K(J,{child:F,$$slots:{child:!0}})})}var z=d(v,2);{let F=y(()=>!e(le)||e(t)==="looking");Q(z,{type:"submit",form:"install-plugin-form",get disabled(){return e(F)},children:(J,K)=>{var ce=Z(),ge=i(ce);{var Ce=M=>{var ie=Pt(),Ue=i(ie);gt(Ue,{class:"animate-spin"}),L(),r(M,ie)},_e=M=>{var ie=T("Look it up");r(M,ie)};H(ge,M=>{e(t)==="looking"?M(Ce):M(_e,-1)})}r(J,ce)},$$slots:{default:!0}})}r(C,w)},$$slots:{default:!0}})}),Ke("submit",g,je),Me("input",x,()=>a(u,null)),Le(x,()=>e($),n=>a($,n)),Le(s,()=>e(A),n=>a(A,n)),r(b,P)},Ze=b=>{var P=Re(),g=i(P);ft(g,{get preview(){return e(f)},get busy(){return N()},get answers(){return e(W)},set answers(s){a(W,s,!0)}});var D=d(g,2);{var x=s=>{var l=It(),p=Ae(l,!0);de(()=>ue(p,e(u))),r(s,l)};H(D,s=>{e(u)&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,j)=>{var n=ae(),m=i(n);Q(m,{variant:"ghost",onclick:we,children:(_,w)=>{L();var v=T("Back");r(_,v)},$$slots:{default:!0}});var C=d(m,2);{let _=y(()=>!!e(c)),w=y(()=>e(c)?`${e(c).title} is needed`:void 0);Q(C,{onclick:Fe,get disabled(){return e(_)},get title(){return e(w)},children:(v,z)=>{L();var F=T("Install and restart");r(v,F)},$$slots:{default:!0}})}r(p,n)},$$slots:{default:!0}})}),r(b,P)},Ne=b=>{var P=Re(),g=i(P);{let s=y(()=>e(f).id),l=y(()=>e(f).commit.slice(0,7)),p=y(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");nt(g,{get label(){return`Install ${e(s)??""} at ${e(l)??""}`},get phase(){return e(p)}})}var D=d(g,2);{var x=s=>{var l=Ct(),p=Ae(l);de(()=>ue(p,`${e(f).name??""}
|
|
3
|
+
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(s,l)};H(D,s=>{e(t)==="done"&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,j)=>{var n=Z(),m=i(n);{const C=(_,w)=>{let v=()=>(w?.()).props;{let z=y(()=>e(t)==="saving"||e(t)==="restarting");Q(_,fe(v,{get disabled(){return e(z)},children:(F,J)=>{L();var K=T("Done");r(F,K)},$$slots:{default:!0}}))}};h(m,()=>Te,(_,w)=>{w(_,{child:C,$$slots:{child:!0}})})}r(p,n)},$$slots:{default:!0}})}),r(b,P)};H(ne,b=>{e(t)==="form"||e(t)==="looking"?b(ve):e(t)==="review"&&e(f)?b(Ze,1):e(f)&&b(Ne,2)})}r(De,me)},$$slots:{default:!0}})})}r(E,ke)},$$slots:{default:!0}})}),r(X,ye),xe()}Je(["input"]);export{Kt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function d(t){return--t*t*((1.70158+1)*t+1.70158)+1}function h(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function c(t){const n=t-1;return n*n*n+1}function g(t){return--t*t*t*t*t+1}const r={quick:180,panel:340,moment:700};function p(){return typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches}const o=t=>p()?0:t;function y(t,{duration:n=r.quick,delay:e=0}={}){return{delay:o(e),duration:o(n),easing:c,css:a=>`opacity: ${a}`}}function x(t,{y:n=8,duration:e=r.panel}={}){return{duration:o(e),easing:c,css:(a,s)=>`opacity: ${a}; transform: translateY(${s*n}px)`}}function M(t){return{duration:o(r.moment),easing:c,css:(n,e)=>`opacity: ${n}; translate: ${-e*28}px 0`}}function b(t){return{duration:o(r.panel),easing:d,css:n=>`transform: scale(${.3+.7*n})`}}function w(t){return{duration:o(r.quick+120),easing:c,css:(n,e)=>`display: inline-block; opacity: ${n}; transform: translateY(${e*70}%)`}}const k=r.moment+r.panel+60;function O(t,{word:n=null}={}){if(p())return{duration:0};if(n){const i=document.createElement("span");i.className="wh-stamp",i.setAttribute("aria-hidden","true"),i.textContent=n,t.append(i)}const e=n?r.moment:0,a=r.panel+60,s=e+a,l=t.offsetHeight,m=t.parentElement&&parseFloat(getComputedStyle(t.parentElement).rowGap)||0;return{duration:s,css:i=>{const u=h(Math.max(0,(1-i)*s-e)/a);return`opacity: ${1-u}; transform: translateX(${-u*32}px); overflow: hidden;height: ${l*(1-u)}px; margin-bottom: ${-m*u}px`}}}const f=new WeakMap;function _(t,n,e=1600){return a=>{const s=f.has(a),l=f.get(a);if(f.set(a,t),!s||!t||l||p())return;a.classList.add(n);const m=setTimeout(()=>a.classList.remove(n),e);return()=>{clearTimeout(m),a.classList.remove(n)}}}function $(t,n){return{x:t.left-n.left,y:t.top-n.top,sx:n.width?t.width/n.width:1,sy:n.height?t.height/n.height:1}}function q(t,{from:n}){if(p())return{duration:0};if(!n)return{duration:r.panel,easing:c,css:(a,s)=>`opacity: ${a}; transform: scale(${1-s*.03})`};const e=$(n,t.getBoundingClientRect());return{duration:r.panel+140,easing:g,css:(a,s)=>`transform-origin: 0 0; border-radius: ${s*10}px; opacity: ${Math.min(1,a*2.5)};transform: translate(${s*e.x}px, ${s*e.y}px) scale(${1-s*(1-e.sx)}, ${1-s*(1-e.sy)})`}}export{r as M,k as S,x as a,_ as b,c,M as d,w as e,y as f,b as p,p as r,O as s,q as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y}from"./CeV_7ApB.js";import{y as b,b9 as I,d as u,i as f,k as d}from"./Jk-ASPRO.js";const h=[];function k(e,t=b){let n=null;const r=new Set;function s(o){if(I(e,o)&&(e=o,n)){const l=!h.length;for(const c of r)c[1](),h.push(c,e);if(l){for(let c=0;c<h.length;c+=2)h[c][0](h[c+1]);h.length=0}}}function i(o){s(o(e))}function a(o,l=b){const c=[o,l];return r.add(c),r.size===1&&(n=t(s,i)||b),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}const L="1795116760175";new URL("sveltekit-internal://");function K(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function B(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function J({href:e}){return e.split("#")[0]}function W(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(c,...N)=>(n(c),a[o](c,...N));t();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function x(){}function P(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function $(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const q=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&p.delete(m(e)),q(e,t));const p=new Map;function X(e,t){const n=m(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(s=$(s));const o=r.getAttribute("data-ttl");return o&&p.set(n,{body:s,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function M(e,t,n){if(p.size>0){const r=m(e,n),s=p.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);p.delete(r)}}return window.fetch(t,n)}function m(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${P(...s)}"]`}return r}const C=globalThis.__sveltekit_irus1n?.base??"",V=globalThis.__sveltekit_irus1n?.assets??C??"",F="sveltekit:snapshot",Q="sveltekit:scroll",Z="sveltekit:states",ee="sveltekit:pageurl",te="sveltekit:history",ne="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function re(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function se(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function oe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||j(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===E&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function ie(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(a)}}function le(e){const t=k(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const U={v:x};function ce(){const{set:e,subscribe:t}=k(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${V}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==L;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function j(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ue(e){}const O=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...O];const G=new Set([...O]);[...G];let w,R,_;const Y=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString()),A="a:";Y?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(A)},R={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(A));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function ge(e){Object.assign(w,e)}export{te as H,ne as N,ee as P,Z as S,R as a,C as b,ie as c,J as d,D as e,oe as f,ae as g,K as h,j as i,ce as j,le as k,v as l,W as m,x as n,E as o,w as p,B as q,re as r,se as s,F as t,ge as u,M as v,k as w,X as x,Q as y,ue as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{s as n,r as a}from"./DQWg__9S.js";import{I as o}from"./DE0e4nJ8.js";import{p as l}from"./CLsnhhko.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,3 @@
|
|
|
1
|
+
import{w as O,v as U,X as A,ai as N,b9 as P,d as l,i as c,k as u,e as y}from"./Jk-ASPRO.js";import"./DsnmJJEf.js";import{s as C,r as M}from"./DQWg__9S.js";import{I as F}from"./DE0e4nJ8.js";import{p as q}from"./CLsnhhko.js";import{a as D}from"./BdjCJ4uL.js";import{s as E}from"./Cw6Vodkk.js";import{S as b}from"./BXN538J3.js";function at(a,t,e){O(()=>{var s=U(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};A(()=>{var r=e();N(r),i&&P(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var j=new Set(["$$slots","$$events","$$legacy"]);function ht(a,t){let e=M(t,j);const s={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};F(a,C(()=>e,{get icon(){return s}}))}var _=new Set(["$$slots","$$events","$$legacy"]);function lt(a,t){let e=M(t,_);const s={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};F(a,C(()=>e,{get icon(){return s}}))}const ct=["must","should","could","none"],B={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},L=8e3,k=a=>a.replace(/\s+/g," ").trim();function m(a){const t=Math.max(0,Math.round(a/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(a,t)=>`${a} ${t}${a===1?"":"s"}`,W=/\b(this|here|that one|these)\b/i;function G(a,t,e,s,i){const n=a.filter(o=>(o.type==="click"||o.type==="input"||o.type==="choose"||o.type==="mark")&&o.t>=e-L&&o.t<=s).pop()??null,r=n?.type!=="mark"&&W.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function $(a,t){const e=s=>a.find(i=>i.id===s)?.label??"";return[...a.map(s=>({t:s.t,s:`${s.id} ${m(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${m(s.t0)}–${m(s.t1)} captain said: “${s.text}”${s.anchor?` [about ${s.anchor}: ${e(s.anchor)}]`:""}${s.pointing?` [pointing at ${s.pointing.label}]`:""} (on ${s.page})`}))].sort((s,i)=>s.t-i.t).map(s=>s.s).slice(-160)}function H(a){const t=a.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function Q(a,t,e){const s=t.text.toLowerCase(),i=/\b(love|like|nice|great|good|perfect)\b/.test(s)&&!/\bnot\b/.test(s)?"praise":/\?|\bwhy\b|\bnot sure\b/.test(s)?"question":/\b(broken|bug|error|doesn'?t|does not|can'?t|wrong|fails?|nothing happens|confus)/.test(s)?"problem":/\b(maybe|could|would be nice|idea|what if)\b/.test(s)?"idea":"change",n=t.text.charAt(0).toUpperCase()+t.text.slice(1);return{id:a,kind:i,severity:i==="praise"?"none":i==="problem"?"must":i==="idea"?"could":"should",text:`${n}${e?` (about ${e} on ${t.page})`:` (on ${t.page})`}`,quote:t.text,anchor:t.anchor??"",utterances:[t.id]}}const K=a=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(a.trim());function V(a,t){return{summary:a.length?`The captain reviewed ${t.title} for ${m(t.duration)} and raised ${w(a.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:a.map(e=>({title:H(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function J(a,t,e,s,i){const n=[`Preview feedback for ${a.id} (${k(a.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${m(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${k(s.summary)}`,"The captain requests these changes: the preview is not approved yet."];return s.lines.forEach((r,o)=>{n.push(`${o+1}. [${B[r.severity]}] ${k(r.title)}. ${k(r.detail)}`),r.where&&n.push(` Points at: ${k(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${k(r.quote)}”`),r.shot&&n.push(` Screenshot: ${r.shot}`)}),s.errors.length&&n.push("","Seen on the page during the session:",...s.errors.map(r=>`- ${r}`)),s.openQuestions.length&&n.push("","Open questions for the captain:",...s.openQuestions.map(r=>`- ${r}`)),i&&n.push("",`The whole session (every click, page, remark and screenshot): ${i}`),n.push("","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."),n.join(`
|
|
2
|
+
`)}function z(a,t,e){const s=[`Preview approved for ${a.id} (${k(a.title)}): the captain reviewed the preview (${t}) and approves it.`,"This is the captain’s go for its pull request: land it under this project’s rules."];return e.length&&s.push("","Notes the captain took (not blocking):",...e.map(i=>`- ${k(i)}`)),s.join(`
|
|
3
|
+
`)}const ut=()=>q.data.features?.livereview===!0&&!D.remote&&!D.hosted,pt=(a,t=location.pathname+location.search)=>`/tasks/${encodeURIComponent(a)}/live?back=${encodeURIComponent(t)}`,Y=260,X=450;function R(){const a=globalThis;return a.SpeechRecognition??a.webkitSpeechRecognition??null}const v=a=>{const t=URL.parse(a??"");return t?t.pathname+t.hash||"/":a||"/"};class dt{taskId;title;token;previewUrl="";#t=l(null);get problem(){return c(this.#t)}set problem(t){u(this.#t,t,!0)}#e=l(!1);get on(){return c(this.#e)}set on(t){u(this.#e,t,!0)}#s=l(!1);get paused(){return c(this.#s)}set paused(t){u(this.#s,t,!0)}started=0;#i=l(0);get now(){return c(this.#i)}set now(t){u(this.#i,t,!0)}#n=l("talk");get mode(){return c(this.#n)}set mode(t){u(this.#n,t,!0)}#r=l("note");get sendAs(){return c(this.#r)}set sendAs(t){u(this.#r,t,!0)}#o=l(!0);get speak(){return c(this.#o)}set speak(t){u(this.#o,t,!0)}#a=l(!0);get mask(){return c(this.#a)}set mask(t){u(this.#a,t,!0)}#h=l(!0);get shootClicks(){return c(this.#h)}set shootClicks(t){u(this.#h,t,!0)}#l=l(y([]));get events(){return c(this.#l)}set events(t){u(this.#l,t,!0)}#c=l(y([]));get remarks(){return c(this.#c)}set remarks(t){u(this.#c,t,!0)}#u=l(y([]));get notes(){return c(this.#u)}set notes(t){u(this.#u,t,!0)}#p=l(y([]));get convo(){return c(this.#p)}set convo(t){u(this.#p,t,!0)}#d=l({});get shots(){return c(this.#d)}set shots(t){u(this.#d,t)}#f=l(y([]));get fresh(){return c(this.#f)}set fresh(t){u(this.#f,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#k=l("/");get page(){return c(this.#k)}set page(t){u(this.#k,t,!0)}#m=l(!1);get talking(){return c(this.#m)}set talking(t){u(this.#m,t,!0)}#y=l(!1);get locked(){return c(this.#y)}set locked(t){u(this.#y,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#w=l(null);get scribeSays(){return c(this.#w)}set scribeSays(t){u(this.#w,t,!0)}#b=l(!1);get notesBusy(){return c(this.#b)}set notesBusy(t){u(this.#b,t,!0)}#$=l(!1);get replyBusy(){return c(this.#$)}set replyBusy(t){u(this.#$,t,!0)}#S=l(!1);get speaking(){return c(this.#S)}set speaking(t){u(this.#S,t,!0)}#x=l(null);get notice(){return c(this.#x)}set notice(t){u(this.#x,t,!0)}#I=l(null);get pack(){return c(this.#I)}set pack(t){u(this.#I,t,!0)}#T=l(!1);get marking(){return c(this.#T)}set marking(t){u(this.#T,t,!0)}#D=l(!1);get picking(){return c(this.#D)}set picking(t){u(this.#D,t,!0)}#E=l(null);get picked(){return c(this.#E)}set picked(t){u(this.#E,t,!0)}#R=l(null);get approved(){return c(this.#R)}set approved(t){u(this.#R,t,!0)}#C=l(!1);get approving(){return c(this.#C)}set approving(t){u(this.#C,t,!0)}canHear=R()!==null;peer=null;origin="";hover=null;pageText=null;ev=0;ut=0;sh=0;lastShotAt=0;rec=null;cur=null;pressAt=0;lastTap=0;chord=!1;quietEnd=!1;notesAgain=!1;replyNext=null;outlinedCache=new Map;clock=null;player=null;sayGen=0;constructor(t,e){this.taskId=t.id,this.title=t.title,this.token=e}async call(t){try{const e=await fetch(`/api/tasks/${encodeURIComponent(this.taskId)}/livereview`,{method:"POST",headers:{"content-type":"application/json",[b]:this.token},body:JSON.stringify(t)}),s=await e.json().catch(()=>null);return!e.ok||!s?{ok:!1,error:s?.message??`Wheelhouse answered ${e.status}.`}:{ok:!0,value:s}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}connect(t,e,s){this.peer=t,this.origin=e,this.previewUrl=s}toFrame(t){this.origin&&this.peer?.postMessage({__wh:1,...t},this.origin)}get elapsed(){return this.on?this.now-this.started:0}t(){return this.started?Date.now()-this.started:0}get canDone(){return!this.pack&&(this.on||this.remarks.length>0)}start(){this.on=!0,this.paused=!1,this.started=Date.now(),this.now=this.started,this.clock=setInterval(()=>this.now=Date.now(),1e3),this.addEvent({type:"start",label:`Started on ${this.page}`}),this.toFrame({type:"record",on:!0,mask:this.mask}),this.toFrame({type:"gettext"})}setPaused(t){!this.on||this.paused===t||(t&&this.stopTalking(),t&&this.marking&&this.mark(!1),this.paused=t,this.toFrame({type:"record",on:!t,mask:this.mask}),this.addEvent({type:"pause",label:t?"Paused the recording":"Carried on recording"}))}setMask(t){this.mask=t,this.on&&this.toFrame({type:"record",on:!this.paused,mask:t})}setMode(t){this.mode=t,t==="notes"&&this.hush()}close(){this.stopTalking(!0),this.marking&&this.mark(!1),this.hush(),this.toFrame({type:"record",on:!1}),this.on=!1,this.clock&&clearInterval(this.clock)}stopTalking(t=!1){this.locked&&(this.quietEnd=!0,this.locked=!1),this.talking&&this.release(t)}addEvent(t){const e={id:`e${++this.ev}`,t:this.t(),page:this.page,...t};return this.events.push(e),this.events[this.events.length-1]}receive(t){if(!this.peer||t.source!==this.peer||t.origin!==this.origin)return;const e=t.data;if(!(!e||e.__wh!==1)){if(e.type==="hello"){const s=this.on&&v(e.url)!==this.page;this.page=v(e.url),this.on&&(this.toFrame({type:"record",on:!this.paused,mask:this.mask}),s&&!this.paused&&this.addEvent({type:"nav",label:`Opened ${this.page}`}));return}if(e.type==="key")return this.frameKey(e);if(e.type==="marking"){this.marking=!!e.on;return}if(e.type==="picked"){this.picking=!1;const s=e.el??null;this.started||(this.started=Date.now()),this.picked=s?{el:s,shotId:this.shoot(s.selector,s.text)}:null;return}if(e.type==="mode"){this.sendAs=e.mode==="ask"?"ask":"note";return}if(e.type==="inline"){this.inline(e.el??null,e.said??"",e.mode==="ask"?"ask":"note");return}if(e.type==="text"){this.pageText={url:e.url??"",title:e.title??"",text:e.text??"",at:Date.now()};return}if(e.type==="shot"&&e.id){const s=this.shots[e.id];if(!s)return;this.shots={...this.shots,[e.id]:{...s,image:e.image??null,vw:e.vw??0,vh:e.vh??0,el:e.el??s.el,pending:!1}};return}if(!(!this.on||this.paused))switch(e.url&&(this.page=v(e.url)),e.type){case"click":{const s=this.addEvent({type:"click",label:`Clicked ${e.el?.label??"a spot on the page"}`,el:e.el??null});this.shootClicks&&Date.now()-this.lastShotAt>900&&(this.lastShotAt=Date.now(),setTimeout(()=>{s.shotId=this.shoot(e.el?.selector??null,e.el?.text??null,e.at?{...e.at,vw:e.vw??0}:null)},350));break}case"input":this.addEvent({type:"input",label:`Typed ${e.value?`“${e.value}”`:`${e.length??0} characters`} in ${e.el?.label??"a box"}`,el:e.el??null});break;case"choose":this.addEvent({type:"choose",label:`Set ${e.el?.label??"a choice"} to ${e.value}`,el:e.el??null});break;case"nav":this.addEvent({type:"nav",label:`Went to ${v(e.url)}`}),this.toFrame({type:"gettext"});break;case"scroll":{const s=this.events[this.events.length-1];s?.type==="scroll"&&this.t()-s.t<4e3?(s.label=`Scrolled to ${e.pct}%`,s.t=this.t()):this.addEvent({type:"scroll",label:`Scrolled to ${e.pct}%`});break}case"area":{if(!e.rect)break;const s={label:e.n?`marked area ${e.n}`:"the area you marked",text:"",tag:"area",selector:"",rect:e.rect},i=this.addEvent({type:"mark",label:`Marked ${s.label} on ${this.page}`,el:s});i.shotId=this.shoot(null,null,null,s);break}case"hover":this.hover=e.el?{...e.el,t:this.t()}:null;break;case"error":this.addEvent({type:"error",label:e.kind==="network"?`Request failed: ${e.message}`:`${e.kind==="console"?"Console error":"Error"}: ${e.message}`});break}}}shoot(t,e,s=null,i=null){const n=`s${++this.sh}`;return this.shots={...this.shots,[n]:{id:n,t:this.t(),image:null,vw:0,vh:0,el:i,point:s,pending:!0}},this.toFrame({type:"shoot",id:n,selector:t,text:e}),setTimeout(()=>{const r=this.shots[n];r?.pending&&(this.shots={...this.shots,[n]:{...r,pending:!1}})},8e3),n}outlined(t){const e=t?this.shots[t]:null;if(!e?.image)return Promise.resolve(null);const s=`${e.id}:${e.image.length}`,i=this.outlinedCache.get(s);if(i)return i;const n=new Promise(r=>{const o=new Image;o.onload=()=>{const p=document.createElement("canvas");p.width=o.width,p.height=o.height;const h=p.getContext("2d");if(!h)return r(e.image);h.drawImage(o,0,0);const d=o.width/(e.vw||o.width),g=e.el?.rect;if(g&&g.w>0){const f=6*d,[S,x,I,T]=[g.x*d-f,g.y*d-f,g.w*d+f*2,g.h*d+f*2];h.fillStyle="rgba(11,17,24,.38)",h.beginPath(),h.rect(0,0,p.width,p.height),h.roundRect(S,x,I,T,6*d),h.fill("evenodd"),h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*d),h.beginPath(),h.roundRect(S,x,I,T,6*d),h.stroke()}else if(e.point){const f=o.width/(e.point.vw||e.vw||o.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*f),h.beginPath(),h.arc(e.point.x*f,e.point.y*f,16*f,0,Math.PI*2),h.stroke()}r(p.toDataURL("image/jpeg",.85))},o.onerror=()=>r(null),o.src=e.image});return this.outlinedCache.set(s,n),n}newHearing(){const t=this.hover&&this.t()-this.hover.t<2e4?{...this.hover}:null;return{t0:this.t(),t1:0,finals:"",interim:"",hover:t,shotId:this.shoot(t?.selector??null,t?.text??null),pointShot:null}}press(){!this.on||this.paused||this.talking||(this.talking=!0,this.pressAt=Date.now(),this.chord=!1,this.hush(),this.toFrame({type:"gettext"}),this.toFrame({type:"talking",on:!0}),this.cur=this.newHearing(),this.hearing={finals:"",interim:""},this.listen(this.cur))}pressHeld(){this.press(),this.pressAt=Date.now()-1e3}listen(t){const e=R();if(!e)return;const s=new e;s.lang=navigator.language||"en-GB",s.continuous=!0,s.interimResults=!0,this.rec=s;let i=t;s.onresult=n=>{let r="";for(let o=n.resultIndex;o<n.results.length;o++){const p=n.results[o];p.isFinal?(i.finals+=(i.finals?" ":"")+p[0].transcript.trim(),this.locked&&this.rec===s&&(i.interim="",i.t1=this.t(),this.finish(i),i=this.newHearing(),this.cur=i)):r+=p[0].transcript}i.interim=r,!i.pointShot&&this.hover&&/\b(this|here|that one|these)\b/i.test(`${i.finals} ${r}`)&&(i.hover={...this.hover},i.pointShot=this.shoot(this.hover.selector,this.hover.text)),this.talking&&this.cur===i&&(this.hearing={finals:i.finals,interim:i.interim})},s.onerror=n=>{n.error==="not-allowed"||n.error==="service-not-allowed"?this.notice="The microphone is blocked for this page. Type to the scribe instead.":n.error==="network"&&(this.notice="The browser’s speech service could not be reached. Type to the scribe instead.")},s.onend=()=>{if(this.talking&&this.locked&&this.rec===s){try{s.start()}catch{}return}this.rec===s&&(this.rec=null),this.finish(i)};try{s.start()}catch{this.notice="The browser would not start listening. Type to the scribe instead."}}release(t=!1){if(!this.talking||!this.cur)return;this.talking=!1,this.hearing=null,this.toFrame({type:"talking",on:!1});const e=this.rec,s=this.cur;this.rec=null,s.t1=this.t();const i=r=>{try{e?.[r]()}catch{}},n=Date.now()-this.pressAt;if(t||this.chord){s.dropped=!0,i("abort");return}if(!this.locked&&n<Y&&!s.finals&&!s.interim){s.dropped=!0,i("abort"),Date.now()-this.lastTap<X?(this.lastTap=0,this.setLocked(!0)):this.lastTap=Date.now();return}e?(i("stop"),setTimeout(()=>this.finish(s),2500)):this.finish(s)}setLocked(t){this.locked=t,t&&!this.talking?this.pressHeld():!t&&this.talking&&(this.quietEnd=!0,this.release())}keyDown(){if(this.on){if(this.locked)return this.setLocked(!1);this.pressHeld()}}keyUp(){this.on&&!this.locked&&this.release()}chorded(){this.talking&&!this.locked&&(this.chord=!0,this.release())}frameKey(t){t.key==="talk"?t.down?this.keyDown():this.keyUp():t.key==="chord"?this.chorded():t.key==="mark"?this.mark():t.key==="pick"&&this.pick(!this.picking)}finish(t){if(t.done||t.dropped)return;t.done=!0;const e=`${t.finals} ${t.interim}`.replace(/\s+/g," ").trim(),s=this.quietEnd;if(this.quietEnd=!1,!e){!s&&!this.locked&&(this.notice="Didn’t catch anything. Keep talking a little longer before you let go.");return}this.addRemark(e,t.t0,t.t1||this.t(),t.hover,t.pointShot??t.shotId)}mark(t=!this.marking){t&&(!this.on||this.paused)||(this.marking=t,this.toFrame({type:"mark",on:t}))}pick(t=!0){this.picking=t,this.toFrame({type:"pick",on:t})}comment(t){const e=t.trim();if(!e)return;this.started||(this.started=Date.now());const s=this.t(),i=this.picked,n={id:`u${++this.ut}`,t0:s,t1:s+600,text:e,page:this.page,anchor:null,pointing:i?.el??null,shotId:i?.shotId??this.shoot(null,null)};this.remarks.push(n),this.convo.push({who:"captain",text:e,t:s,uid:n.id}),this.picked=null,this.toFrame({type:"clear"}),this.on&&this.askNotes()}inline(t,e,s){const i=e.trim();if(!i||this.pack)return;if(s==="ask"&&this.paused){this.notice="Paused: carry on to ask the scribe.";return}const n=this.picked;this.started||(this.started=Date.now()),this.picked=t?{el:t,shotId:this.shoot(t.selector,t.text)}:null,s==="note"?this.comment(i):(this.on||this.start(),this.type(i)),this.picked=n}edit(t,e){const s=e.trim(),i=this.remarks.find(n=>n.id===t);if(!(!s||!i||this.pack||i.text===s)){i.text=s;for(const n of this.convo)n.uid===t&&n.who==="captain"&&(n.text=s);this.on&&this.askNotes()}}save(){const t=s=>JSON.stringify({v:1,on:this.on,paused:this.paused,started:this.started,mode:this.mode,speak:this.speak,mask:this.mask,shootClicks:this.shootClicks,page:this.page,events:this.events,remarks:this.remarks,notes:this.notes,convo:this.convo,shots:s?this.shots:Object.fromEntries(Object.entries(this.shots).map(([i,n])=>[i,{...n,image:null}])),pack:this.pack,picked:this.picked,approved:this.approved,counts:[this.ev,this.ut,this.sh]}),e=t(!0);return e.length<4e6?e:t(!1)}restore(t){let e=null;try{e=t?JSON.parse(t):null}catch{e=null}if(!e||e.v!==1)return;this.paused=!!e.paused,this.started=Number(e.started)||0,this.mode=e.mode==="notes"?"notes":"talk",this.speak=e.speak!==!1,this.mask=e.mask!==!1,this.shootClicks=e.shootClicks!==!1,this.page=typeof e.page=="string"?e.page:"/",this.events=e.events??[],this.remarks=e.remarks??[],this.notes=e.notes??[],this.convo=e.convo??[],this.shots=e.shots??{},this.pack=e.pack??null,this.pack&&(this.pack.sending=!1),this.picked=e.picked??null,this.approved=e.approved??null;const[s,i,n]=e.counts??[0,0,0];[this.ev,this.ut,this.sh]=[s||0,i||0,n||0],e.on&&(this.on=!0,this.now=Date.now(),this.clock=setInterval(()=>this.now=Date.now(),1e3))}type(t){const e=t.trim();if(!e||!this.on||this.paused)return;const s=this.t();this.toFrame({type:"gettext"});const i=this.hover;this.addRemark(e,s-1500,s,i,this.shoot(i?.selector??null,i?.text??null))}addRemark(t,e,s,i,n){const r=this.picked;this.picked=null;const o=r?{pointing:r.el}:G(this.events,t,e,s,i),p={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in o?o.ev.id:null,pointing:"pointing"in o?o.pointing:null,shotId:r?r.shotId:"ev"in o&&o.ev.shotId?o.ev.shotId:n};this.remarks.push(p),this.convo.push({who:"captain",text:t,t:e,uid:p.id}),this.toFrame({type:"clear"}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(p)}about(t){const e=this.remarks.find(i=>t.utterances.includes(i.id)),s=this.events.find(i=>i.id===(t.anchor||e?.anchor));return{el:s?.el??e?.pointing??null,shotId:s?.shotId??e?.shotId??null,page:s?.page??e?.page??"",t:e?.t0??s?.t??0,clicked:!!s}}highlight(t){t&&this.toFrame({type:"highlight",selector:t})}async askNotes(){if(this.notesBusy){this.notesAgain=!0;return}this.notesBusy=!0,this.notesAgain=!1;const t=await this.call({action:"notes",timeline:$(this.events,this.remarks),notes:this.notes});if(this.notesBusy=!1,!!this.on){if(t.ok){const e=new Map(this.notes.map(s=>[s.id,s.text]));this.notes=t.value.notes,this.fresh=t.value.notes.filter(s=>e.get(s.id)!==s.text).map(s=>s.id),this.heard=t.value.heard}else this.notice=`The scribe could not take notes just then (${t.error}). It will try again with your next remark.`;this.notesAgain&&this.askNotes()}}async askReply(t){if(this.replyBusy){this.replyNext=t;return}this.replyBusy=!0;for(let i=0;i<6&&!(this.pageText&&Date.now()-this.pageText.at<15e3);i++)await new Promise(n=>setTimeout(n,100));const e=await this.call({action:"reply",said:t.text,page:this.pageText,timeline:$(this.events,this.remarks),notes:this.notes.map(i=>i.text),convo:this.convo.filter(i=>i.uid!==t.id||i.who==="scribe").map(({who:i,text:n})=>({who:i,text:n}))});if(this.replyBusy=!1,!this.on)return;const s=this.replyNext;if(this.replyNext=null,s)return void this.askReply(s);e.ok&&e.value.reply?(this.convo.push({who:"scribe",text:e.value.reply,t:this.t(),uid:t.id}),this.say(e.value.reply)):e.ok||this.convo.push({who:"scribe",text:`I couldn’t answer just then (${e.error}) but I noted what you said.`,t:this.t(),uid:t.id,error:!0})}say(t){this.scribeSays=t,this.stopVoice();const e=globalThis.speechSynthesis;if(!this.speak){setTimeout(()=>{this.scribeSays===t&&(this.scribeSays=null)},Math.max(4e3,t.split(" ").length*380));return}const s=this.sayGen,i=()=>{this.speaking=!1,setTimeout(()=>{!this.speaking&&this.scribeSays===t&&(this.scribeSays=null)},1200)},n=()=>{if(s!==this.sayGen)return;if(!e)return i();const r=new SpeechSynthesisUtterance(t),o=e.getVoices().filter(p=>/^en/i.test(p.lang));r.voice=o.find(p=>/Google UK English Female|Daniel|Serena|Kate|Samantha|Google US English/.test(p.name))??o[0]??null,r.rate=1.04,r.onstart=()=>this.speaking=!0,r.onend=r.onerror=i,e.speak(r)};this.voiced(t).then(r=>{if(s!==this.sayGen)return;if(!r)return n();const o=new Audio(URL.createObjectURL(r));this.player=o,o.onplaying=()=>this.speaking=!0,o.onended=()=>{URL.revokeObjectURL(o.src),this.player===o&&(this.player=null),i()},o.onerror=()=>{this.player===o&&(this.player=null),n()},o.play().catch(()=>{this.player===o&&(this.player=null),n()})})}async voiced(t){try{const e=await fetch("/api/voice/speak",{method:"POST",headers:{"content-type":"application/json",[b]:this.token},body:JSON.stringify({text:t.slice(0,1200),speed:1})});return e.status===200?await e.blob():null}catch{return null}}stopVoice(){this.sayGen++,this.player?.pause(),this.player=null,globalThis.speechSynthesis?.cancel()}hush(){this.stopVoice(),this.speaking=!1,this.scribeSays=null}async approve(t){if(this.approving||this.approved)return!1;this.approving=!0;const e=[...this.remarks.map(r=>r.text),t.trim()].filter(Boolean),s=await this.openQuestion();let i="message",n=null;if(s){i="answer";try{const r=await fetch("/api/inbox",{method:"POST",headers:{"content-type":"application/json","idempotency-key":`review-${crypto.randomUUID()}`,[b]:this.token},body:JSON.stringify({cardId:s.id,choice:"approve",note:e.length?`From the live review: ${e.join(" · ")}`:null})}),o=await r.json().catch(()=>null);r.ok?typeof o?.message=="object"&&o.message.delivery==="failed"&&(n=o.message.deliveryDetail??"Firstmate did not take the approval."):n=(typeof o?.message=="string"?o.message:null)??`Wheelhouse answered ${r.status}.`}catch{n="Could not reach the Wheelhouse server."}}else{const r=await E(z({id:this.taskId,title:this.title},this.previewUrl,e),this.token,this.taskId);r.ok||(n=r.error)}return this.approving=!1,n?(this.notice=`The approval did not go: ${n}`,!1):(this.approved={how:i,at:Date.now()},!0)}async openQuestion(){try{const t=await fetch("/api/inbox");if(!t.ok)return null;const e=await t.json();if(!e.canAnswer)return null;const s=e.cards.filter(i=>i.taskId===this.taskId&&!i.secondMate);return s.find(i=>i.kind==="merge")??s.find(i=>i.kind==="preview")??null}catch{return null}}point(t,e){const s=this.notes.find(r=>t.notes.includes(r.id)),i=s?this.about(s):null,n=this.events.find(r=>r.id===t.anchor);return{...t,key:`p${e}`,include:!0,el:n?.el??i?.el??null,shotId:n?.shotId??i?.shotId??null,page:n?.page??i?.page??"",t:i?.t??n?.t??0}}view(t,e,s){const i={must:0,should:1,could:2,none:3};return{summary:t.summary,points:t.issues.map((n,r)=>this.point(n,r)).sort((n,r)=>i[n.severity]-i[r.severity]),openQuestions:t.openQuestions,errors:[...new Set(this.events.filter(n=>n.type==="error").map(n=>`${m(n.t)} on ${n.page}: ${n.label}`))],duration:s,from:e,tidying:!1,better:null,tidyFailed:null,edited:!1,sending:!1,sent:null,error:null}}async end(){this.stopTalking(),this.marking&&this.mark(!1),this.hush(),this.paused=!0,this.toFrame({type:"record",on:!1});const t=this.t(),e=new Set(this.notes.flatMap(h=>h.utterances)),s=new Set(this.convo.filter(h=>h.who==="scribe"&&!h.error).map(h=>h.uid)),i=this.remarks.filter(h=>!e.has(h.id)&&!(s.has(h.id)&&K(h.text))).map((h,d)=>Q(`q${d+1}`,h,(h.anchor?this.events.find(g=>g.id===h.anchor)?.el?.label:h.pointing?.label)??null)),n=[...this.notes,...i];this.notes=n;const r=this.view(V(n,{title:this.title,duration:t}),"notes",t);if(r.tidying=this.remarks.length>0,this.pack=r,!r.tidying)return;const o=await this.call({action:"pack",timeline:$(this.events,this.remarks),notes:n}),p=this.pack;!p||p.sent||p.sending||(p.tidying=!1,o.ok&&o.value.issues?.length?p.edited?p.better=o.value:this.pack=this.view(o.value,"scribe",t):p.tidyFailed=o.ok?"no points":o.error)}useBetter(){this.pack?.better&&(this.pack=this.view(this.pack.better,"scribe",this.pack.duration))}resume(){this.pack=null,this.setPaused(!1)}stats(){return{remarks:this.remarks.length,clicks:this.events.filter(t=>t.type==="click").length,pages:new Set(this.events.map(t=>t.page).filter(Boolean)).size,shots:Object.values(this.shots).filter(t=>t.image).length}}message(t){const e=this.pack;if(!e)return"";const s=this.stats();return J({id:this.taskId,title:this.title},this.previewUrl,{duration:e.duration,...s},{summary:e.summary,lines:e.points.filter(i=>i.include).map(i=>({severity:i.severity,title:i.title,detail:i.detail,where:i.el?`${i.el.label}${i.page?` on ${i.page}`:""}`:i.page?`the page ${i.page}`:null,quote:i.quote,at:m(i.t),shot:i.shotId?t?t.shots[i.shotId]??null:`(screenshot ${i.shotId})`:null})),errors:e.errors,openQuestions:e.openQuestions},t?.session??null)}async send(){const t=this.pack;if(!t||t.sending||t.sent)return!1;t.sending=!0,t.error=null;const e={};for(const n of t.points.filter(r=>r.include&&r.shotId)){const r=await this.outlined(n.shotId);r&&(e[n.shotId]=r)}const s=await this.call({action:"save",session:{task:{id:this.taskId,title:this.title},preview:this.previewUrl,startedAt:new Date(this.started).toISOString(),events:this.events,remarks:this.remarks,notes:this.notes,conversation:this.convo.map(({who:n,text:r,t:o})=>({who:n,text:r,at:m(o)}))},shots:e});if(!s.ok)return t.sending=!1,t.error=s.error,!1;const i=await E(this.message(s.value),this.token,this.taskId);return t.sending=!1,i.ok?(t.sent={dir:s.value.dir},!0):(t.error=i.error,!1)}}export{ht as C,dt as L,lt as M,ct as S,at as a,pt as b,ut as l,m,w as p};
|