@chrisjowen/wheelhouse 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css +1 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Bi7wbObi.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js +1 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7bbsuTl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js +1 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUNaAdFX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js +8 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXWkikJt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js +2 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqfDFJcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js +3 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0JshGmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js +3 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDKhNJSK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js +7 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTCyjBcB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js +6 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CcHD_KH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js +5 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtYw9Aiz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js +3 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv-TUPtV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js +2 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9kvhYgA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js +1 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAJm78bI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js +7 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js.br +0 -0
- package/build/client/_app/immutable/chunks/DO7S-a12.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js +2 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUyfEzYn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js +1 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVltcUYh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js +1 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhZcqaY_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js +1 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhdrUn_f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js +4 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DotKSDx1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js +3 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dum30Kwq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js +1 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.br +0 -0
- package/build/client/_app/immutable/chunks/HjHUkJwY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js +1 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.br +0 -0
- package/build/client/_app/immutable/chunks/I_-yJuBL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js +1 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.br +1 -0
- package/build/client/_app/immutable/chunks/Kz2E8r37.js.gz +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js +1 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js.br +0 -0
- package/build/client/_app/immutable/chunks/N8Gha39e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js +1 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.br +0 -0
- package/build/client/_app/immutable/chunks/RTsEYL93.js.gz +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js +1 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.br +0 -0
- package/build/client/_app/immutable/chunks/T9AsXuo8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js +1 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.br +0 -0
- package/build/client/_app/immutable/chunks/XLpt2pHa.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js +2 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CI9gKeRy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js +1 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js +9 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js +1 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js +10 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js +9 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js +3 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js +2 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js +6 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DoXQTncs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js +1 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.5DEbDyax.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js +10 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js +1 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CasB-8ln.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js +3 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BAczHbDD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js +1 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DXAMDWal.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js +28 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js +14 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.HXzvTavr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js +150 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js +3 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js +2 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js +25 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B5Tab48v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js +5 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js +18 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js +4 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js +2 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.uurBYeAR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js +6 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BkVqi32a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js +8 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js +2 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js +5 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.br +0 -0
- package/build/client/_app/immutable/nodes/33._Eb7SINu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js +4 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js +3 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.DWcXHizu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js +7 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js +2 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js +4 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js +7 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js +5 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js +6 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CvHYslu6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js +23 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js +1 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.br +0 -0
- package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js +6 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js +1 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DClLUmjz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js +6 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DszoCJEl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js +3 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/ResizableRail.js-D0idmMXk.js +708 -0
- package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +3029 -0
- package/build/server/chunks/chunks/detail.js-B2R6Znek.js +149 -0
- package/build/server/chunks/chunks/features.js-BhXyRT_1.js +181 -0
- package/build/server/chunks/chunks/feedback.js-DthXPMki.js +67 -0
- package/build/server/chunks/chunks/internal.js-CEWzBR2Y.js +151 -0
- package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +261 -0
- package/build/server/chunks/chunks/marketplace-service.js-DSxw-XPY.js +557 -0
- package/build/server/chunks/chunks/package.js-B7nnL29I.js +160 -0
- package/build/server/chunks/chunks/page.js-DCiJruq9.js +13 -0
- package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +246 -0
- package/build/server/chunks/chunks/previewhelper2.js-Dokz3Re6.js +214 -0
- package/build/server/chunks/chunks/remote.js-TLEFH8L2.js +40 -0
- package/build/server/chunks/chunks/repo.js-DXPu1jYS.js +33 -0
- package/build/server/chunks/chunks/runtime.js-BcdjdUwr.js +26530 -0
- package/build/server/chunks/chunks/scribe.js-D30sP1z9.js +1591 -0
- package/build/server/chunks/chunks/service.js--01O07Iu.js +1339 -0
- package/build/server/chunks/chunks/service2.js-CVR-BsF0.js +835 -0
- package/build/server/chunks/chunks/service3.js-Dx4TYIQa.js +234 -0
- package/build/server/chunks/chunks/sessions.js-BD6cxB3X.js +534 -0
- package/build/server/chunks/chunks/settings.js-t2yY6DMc.js +379 -0
- package/build/server/chunks/chunks/starter.js-CjOwkL4s.js +400 -0
- package/build/server/chunks/chunks/store.js-CBYhaqF1.js +334 -0
- package/build/server/chunks/chunks/tmux.js-DTQKbm92.js +504 -0
- package/build/server/chunks/chunks/tools.js-C_Xs95j-.js +156 -0
- package/build/server/chunks/chunks/uploads.js-ZX2kg51N.js +107 -0
- package/build/server/chunks/chunks/view.js-D02gwJlT.js +76 -0
- package/build/server/chunks/chunks/volume-2.js-BdrATtWy.js +24 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DCqY_Bda.js +116 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Dm04PmD_.js +112 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js--TGJX2z9.js +63 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-B9JGOQSd.js +79 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CgPkuD4I.js +83 -0
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-BkQr7zlk.js +68 -0
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-JXf9tr9y.js +73 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNlZzPAi.js +158 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-C9jkqC7K.js +57 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-D51z27Qh.js +75 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-UZLIIsLh.js +111 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-QBAtq3e4.js +87 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CMW5VeA1.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CYEPWDq9.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Dzw8Aq7W.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-H1O8SpZj.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C3UIEKwW.js +77 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BF0ddpon.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CQDDUPQH.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-Bj6fzAhI.js +80 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-KeBdme5-.js +91 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DWyorNkc.js +79 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DmocVrgJ.js +70 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CSSUNhkV.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-yZHelvlp.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-B95RBsOY.js +62 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BuCZ0nAz.js +62 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CmiCqFGa.js +89 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CfCsmFek.js +87 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-DMj7O_wm.js +80 -0
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CCxzIYPx.js +172 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D_LWxNH8.js +62 -0
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-DHCwcT09.js +71 -0
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Dr83B5jC.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BFz64-UD.js +91 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-AI3xP87_.js +72 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CB9SAMkD.js +27 -0
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-DaB0pK-G.js +30 -0
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-C-RZ2hfW.js +105 -0
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-Ct15HbWb.js +74 -0
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-Kp-td74e.js +122 -0
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-C4Er7ziD.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-D2CWeQx9.js +97 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Cxxjkcea.js +86 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BpSkuaqs.js +81 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DhqoeMSp.js +78 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-B978UeYH.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BjYkraIy.js +85 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BSm0fyqO.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DSZfo5DT.js +62 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-Bhlu3rq6.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Bc6_vVMA.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-q71bHTAI.js +67 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BdhHl9q5.js +76 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BbF_qpRh.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CVHc5ryW.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B7KmzEu4.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-ILPrSxNM.js +86 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DRzuvCjv.js +67 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BYotWMDG.js +76 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CXXw_967.js +88 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-5H8AVdf3.js +75 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js--_mniW0J.js +98 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DV5voQBw.js +81 -0
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-6xFnfO31.js +476 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-DELGIKLB.js +92 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DrkDRFum.js +71 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-oOrlu6PL.js +81 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BmE51iKW.js +141 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CJJOCfAf.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BE-v4ctp.js +84 -0
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-BSAksOTw.js +70 -0
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-9jtQze4M.js +73 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BEbfK5Sb.js +67 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CC70KheS.js +86 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BPOVTSNr.js +113 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B0Ce7-kQ.js +79 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-mhQYv_sd.js +108 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-QMmOjqmI.js +127 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-IfH0F77C.js +82 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CLPXGlPH.js +84 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CIc1KsPd.js +85 -0
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-G6xuTFYk.js +24 -0
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-ChS6Cl9I.js +31 -0
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-ylJaIr71.js +33 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-iQF5ttIM.js +97 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BW9O_FlY.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DTE3VOwI.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-s26vq0JS.js +27 -0
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-B8s3BS7I.js +78 -0
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-BsiL8VVP.js +68 -0
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-Co28KCNH.js +75 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-syWL6Knw.js +87 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BI2EVdsb.js +66 -0
- package/build/server/chunks/entries/hooks.server.js-B4zt2gMT.js +108 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BBZSb3zI.js +55 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +6023 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BS44Y_4B.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +4907 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-BfjjhUph.js +14 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Den-42vR.js +16 -0
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-CI8dk87B.js +15 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-BgARM8mm.js +17 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-HtDc07oV.js +11 -0
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-QHRjb2mW.js +16 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-U6iyhhAi.js +18 -0
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-Ct7X9UNn.js +18 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CSy0Mcfk.js +16 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-OcqAZPqs.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D1OSHb0S.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DRtkOAgr.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Br-tOc7a.js +15 -0
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-C3qIWXBy.js +25 -0
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-Ce5mHdpe.js +37 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-KkohEbGV.js +11 -0
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-C5r6-ShC.js +13 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DGKwb104.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B-xlxpbm.js +18 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-BDkMLIf6.js +15 -0
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C3rAOzae.js +19 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BA-tWOES.js +16 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DRjZBOes.js +15 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BaJ2W22V.js +797 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DssDgFRV.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-niIXQvkx.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CbTQXe63.js +17 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BYvOjL40.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BAzQbxTI.js +11 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-C_PZ3K62.js +15 -0
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-CPtKfR3g.js +161 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bt5BHnIn.js +18 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-CBJ9UCxK.js +36 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +121 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-By1hYgOi.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-DJxWHuwd.js +11 -0
- package/build/server/chunks/handler-CXUepvBU.js +1474 -0
- package/build/server/chunks/index.js-BsOCKSNc.js +4296 -0
- package/build/server/chunks/manifest.js-CSOlQwBQ.js +1050 -0
- package/build/server/chunks/nodes/0.js-BA8rdf7S.js +69 -0
- package/build/server/chunks/nodes/1.js-CGDtM8Ha.js +9 -0
- package/build/server/chunks/nodes/10.js-dkuZj5-W.js +67 -0
- package/build/server/chunks/nodes/11.js-DNaVEa3x.js +69 -0
- package/build/server/chunks/nodes/12.js-VJOzmisQ.js +68 -0
- package/build/server/chunks/nodes/13.js-B-UNeeYa.js +69 -0
- package/build/server/chunks/nodes/14.js-DuWS_Hw5.js +12 -0
- package/build/server/chunks/nodes/15.js-lq3f_J6-.js +9 -0
- package/build/server/chunks/nodes/16.js-Ch2TluQr.js +9 -0
- package/build/server/chunks/nodes/17.js-BcBFGx5D.js +67 -0
- package/build/server/chunks/nodes/18.js-Dx5djvj3.js +70 -0
- package/build/server/chunks/nodes/19.js-C-Dv2UZU.js +68 -0
- package/build/server/chunks/nodes/2.js-Dlx5yqWh.js +67 -0
- package/build/server/chunks/nodes/20.js-Crt3vcuB.js +69 -0
- package/build/server/chunks/nodes/21.js-DTRw0wlf.js +68 -0
- package/build/server/chunks/nodes/22.js-avqPhTYl.js +69 -0
- package/build/server/chunks/nodes/23.js-RRrhs54q.js +69 -0
- package/build/server/chunks/nodes/24.js-BFk3mjXx.js +25 -0
- package/build/server/chunks/nodes/25.js-B2Rb1Za9.js +25 -0
- package/build/server/chunks/nodes/26.js-BT9wbGJs.js +9 -0
- package/build/server/chunks/nodes/27.js-rQgQSbRQ.js +25 -0
- package/build/server/chunks/nodes/28.js-CjbQNy9F.js +67 -0
- package/build/server/chunks/nodes/29.js-Cycdssqz.js +18 -0
- package/build/server/chunks/nodes/3.js-u47cGgVr.js +9 -0
- package/build/server/chunks/nodes/30.js-DS5CGoON.js +68 -0
- package/build/server/chunks/nodes/31.js-DM2poShY.js +67 -0
- package/build/server/chunks/nodes/32.js-DFy_JaX0.js +25 -0
- package/build/server/chunks/nodes/33.js-DJeaepHV.js +67 -0
- package/build/server/chunks/nodes/34.js-BZwX56gy.js +25 -0
- package/build/server/chunks/nodes/35.js-DYTAoBE6.js +22 -0
- package/build/server/chunks/nodes/36.js-BY3unmMW.js +67 -0
- package/build/server/chunks/nodes/37.js-m6ZzMMTc.js +70 -0
- package/build/server/chunks/nodes/38.js-B3Kp1AAS.js +69 -0
- package/build/server/chunks/nodes/39.js-BvYxNpMG.js +26 -0
- package/build/server/chunks/nodes/4.js-BDLWobmB.js +68 -0
- package/build/server/chunks/nodes/40.js-Dw8-O1g2.js +69 -0
- package/build/server/chunks/nodes/41.js-D7Ne71uc.js +71 -0
- package/build/server/chunks/nodes/42.js-Bsljzkwn.js +68 -0
- package/build/server/chunks/nodes/43.js-CKN-FZAM.js +68 -0
- package/build/server/chunks/nodes/44.js-DWOVsqNq.js +67 -0
- package/build/server/chunks/nodes/5.js-NuGLVKKK.js +67 -0
- package/build/server/chunks/nodes/6.js-B5PJm0c8.js +67 -0
- package/build/server/chunks/nodes/8.js-B72TpXrD.js +67 -0
- package/build/server/chunks/nodes/9.js-D2iYl_QK.js +14 -0
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css +0 -1
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BV08B4f2.js +0 -2
- package/build/client/_app/immutable/chunks/BV08B4f2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BV08B4f2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiW3is2c.js +0 -3
- package/build/client/_app/immutable/chunks/BiW3is2c.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiW3is2c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkAmMVsw.js +0 -1
- package/build/client/_app/immutable/chunks/BkAmMVsw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkAmMVsw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BlR6_nYR.js +0 -1
- package/build/client/_app/immutable/chunks/BlR6_nYR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BlR6_nYR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqTq4oc1.js +0 -3
- package/build/client/_app/immutable/chunks/BqTq4oc1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqTq4oc1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsJW6yGO.js +0 -6
- package/build/client/_app/immutable/chunks/BsJW6yGO.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsJW6yGO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4f5KkA2.js +0 -3
- package/build/client/_app/immutable/chunks/C4f5KkA2.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4f5KkA2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAaBUUji.js +0 -7
- package/build/client/_app/immutable/chunks/CAaBUUji.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAaBUUji.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyKAWacA.js +0 -3
- package/build/client/_app/immutable/chunks/CyKAWacA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyKAWacA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-IXMU2L.js +0 -7
- package/build/client/_app/immutable/chunks/D-IXMU2L.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-IXMU2L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js +0 -5
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js +0 -4
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2UqGNPw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D64mTvaN.js +0 -1
- package/build/client/_app/immutable/chunks/D64mTvaN.js.br +0 -0
- package/build/client/_app/immutable/chunks/D64mTvaN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DK5gnzN6.js +0 -1
- package/build/client/_app/immutable/chunks/DK5gnzN6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DK5gnzN6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLdhxfs7.js +0 -1
- package/build/client/_app/immutable/chunks/DLdhxfs7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLdhxfs7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSoS8iw8.js +0 -1
- package/build/client/_app/immutable/chunks/DSoS8iw8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSoS8iw8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlAlt18J.js +0 -2
- package/build/client/_app/immutable/chunks/DlAlt18J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlAlt18J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrAaxSl_.js +0 -1
- package/build/client/_app/immutable/chunks/DrAaxSl_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrAaxSl_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QOxfJswt.js +0 -1
- package/build/client/_app/immutable/chunks/QOxfJswt.js.br +0 -0
- package/build/client/_app/immutable/chunks/QOxfJswt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kNXqkaLy.js +0 -1
- package/build/client/_app/immutable/chunks/kNXqkaLy.js.br +0 -0
- package/build/client/_app/immutable/chunks/kNXqkaLy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qL93yOki.js +0 -1
- package/build/client/_app/immutable/chunks/qL93yOki.js.br +0 -0
- package/build/client/_app/immutable/chunks/qL93yOki.js.gz +0 -0
- package/build/client/_app/immutable/chunks/skcbA-fa.js +0 -8
- package/build/client/_app/immutable/chunks/skcbA-fa.js.br +0 -0
- package/build/client/_app/immutable/chunks/skcbA-fa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vyMQ5db-.js +0 -1
- package/build/client/_app/immutable/chunks/vyMQ5db-.js.br +0 -0
- package/build/client/_app/immutable/chunks/vyMQ5db-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js +0 -2
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js.br +0 -0
- package/build/client/_app/immutable/chunks/xJ7m3_X4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xTuQT2it.js +0 -1
- package/build/client/_app/immutable/chunks/xTuQT2it.js.br +0 -3
- package/build/client/_app/immutable/chunks/xTuQT2it.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.C_bqQknd.js +0 -2
- package/build/client/_app/immutable/entry/app.C_bqQknd.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C_bqQknd.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js +0 -1
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js.br +0 -0
- package/build/client/_app/immutable/entry/start.-l6ByH4l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js +0 -9
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js +0 -1
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js +0 -10
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js +0 -9
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DeI53l7V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BcEihrai.js +0 -3
- package/build/client/_app/immutable/nodes/12.BcEihrai.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BcEihrai.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js +0 -2
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js +0 -6
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js +0 -1
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BeGytqIn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js +0 -10
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js +0 -1
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CqESnpF4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js +0 -3
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.szNVFqEf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js +0 -1
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js +0 -28
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js +0 -14
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js +0 -150
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js +0 -3
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js +0 -2
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js +0 -25
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js +0 -5
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js +0 -18
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js +0 -4
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js +0 -2
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js +0 -6
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js +0 -8
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js +0 -2
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js +0 -5
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js +0 -4
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.fQqixPey.js +0 -3
- package/build/client/_app/immutable/nodes/35.fQqixPey.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.fQqixPey.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js +0 -7
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.BemSOTgX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js +0 -2
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DoB20L2E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js +0 -4
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/39.B1817o0R.js +0 -7
- package/build/client/_app/immutable/nodes/39.B1817o0R.js.br +0 -0
- package/build/client/_app/immutable/nodes/39.B1817o0R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js +0 -5
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js +0 -6
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js +0 -23
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js.br +0 -0
- package/build/client/_app/immutable/nodes/41.DtgiBysv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js +0 -1
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js.br +0 -1
- package/build/client/_app/immutable/nodes/42.U66RZJ39.js.gz +0 -0
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js +0 -6
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.br +0 -0
- package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js +0 -1
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js +0 -6
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.D46lJjHa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js +0 -3
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.gz +0 -0
- package/build/server/chunks/chunks/ResizableRail.js-DWTZXucY.js +0 -708
- package/build/server/chunks/chunks/TaskView.js-Djh37gNV.js +0 -3029
- package/build/server/chunks/chunks/detail.js-DCkIB4wl.js +0 -149
- package/build/server/chunks/chunks/features.js-C0RFlCU9.js +0 -181
- package/build/server/chunks/chunks/feedback.js-BTR9xkHF.js +0 -67
- package/build/server/chunks/chunks/internal.js-Bg8MvH6G.js +0 -151
- package/build/server/chunks/chunks/livereview.js-BJxqrnBd.js +0 -261
- package/build/server/chunks/chunks/marketplace-service.js-CqwpcR5A.js +0 -557
- package/build/server/chunks/chunks/package.js-BOu7yHDP.js +0 -160
- package/build/server/chunks/chunks/page.js-DZmeg344.js +0 -13
- package/build/server/chunks/chunks/previewhelper.js-CUjqs8rl.js +0 -245
- package/build/server/chunks/chunks/previewhelper2.js-DhAL5_6K.js +0 -214
- package/build/server/chunks/chunks/remote.js-B8iHzqbR.js +0 -21
- package/build/server/chunks/chunks/repo.js-zZjENX9B.js +0 -33
- package/build/server/chunks/chunks/runtime.js-CCDb6NUe.js +0 -26510
- package/build/server/chunks/chunks/scribe.js-CPHlcPWd.js +0 -1376
- package/build/server/chunks/chunks/service.js-DSxBrc6d.js +0 -1339
- package/build/server/chunks/chunks/service2.js-CnOAObr8.js +0 -835
- package/build/server/chunks/chunks/service3.js-DpPYyCFX.js +0 -234
- package/build/server/chunks/chunks/sessions.js--Esog5VV.js +0 -534
- package/build/server/chunks/chunks/settings.js-FZbEnILS.js +0 -379
- package/build/server/chunks/chunks/starter.js-Z4qUYkMx.js +0 -400
- package/build/server/chunks/chunks/store.js-DHAfX_W5.js +0 -334
- package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +0 -504
- package/build/server/chunks/chunks/tools.js-BnmGImVp.js +0 -156
- package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +0 -107
- package/build/server/chunks/chunks/view.js-9667u7-H.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-D8BEzPks.js +0 -116
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DsvibwQo.js +0 -112
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-D3QhZ5yy.js +0 -63
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BQmCAgYI.js +0 -79
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-D6vKOU4l.js +0 -83
- package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-DuflqKrA.js +0 -68
- package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-B9u0JtDZ.js +0 -73
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CXk1I-s5.js +0 -158
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-DRXyKXoh.js +0 -57
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CHm9En9u.js +0 -75
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DZ10q4PZ.js +0 -111
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DWpSMN_e.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-r5EeGDB9.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-D8axU9Ds.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-DvRi4-bS.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-3D-zqPU7.js +0 -71
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C05dgSJS.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DM6G3h5y.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-D45ENMJB.js +0 -119
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BITiA3fH.js +0 -80
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DaWZw8pD.js +0 -91
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CZzxvZ9J.js +0 -79
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CeXazf71.js +0 -70
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DNakBJpI.js +0 -62
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-oSlVw3U-.js +0 -62
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKpKqARI.js +0 -89
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-Do8VP-YQ.js +0 -87
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ty868lLE.js +0 -80
- package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CQkwL0rD.js +0 -172
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BvzIuaym.js +0 -62
- package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-BCD8UCda.js +0 -71
- package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-DF5QaWdr.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DYKzL_m9.js +0 -91
- package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-D4LS14N_.js +0 -72
- package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-oJKS0Y1M.js +0 -27
- package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-CiJNPYNd.js +0 -30
- package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-0F2_nib_.js +0 -105
- package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +0 -74
- package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-VjhDF8Zu.js +0 -122
- package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-DvJSVSjw.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BMJ7HbQq.js +0 -97
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CO8Af6jn.js +0 -86
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-CR3QXthM.js +0 -81
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DDjhPQRS.js +0 -78
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-WVmE9mVd.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cm-9zIoi.js +0 -85
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BFeAY67I.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CvAQo2kn.js +0 -62
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CHxwtQHh.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DSpQGp27.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-DMREi9Pr.js +0 -67
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BeWwqmLG.js +0 -76
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-Dkzta0M_.js +0 -73
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DwQYqOWh.js +0 -77
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-C0Y--kKI.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-HcU7dUaN.js +0 -86
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dnq8SBmx.js +0 -67
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C1IxdPvG.js +0 -76
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BEkjU0sD.js +0 -88
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-FLttbhnI.js +0 -75
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Bha1xzEw.js +0 -98
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-NjHGpfdP.js +0 -81
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-CKjMYRPa.js +0 -476
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BOJAdcMO.js +0 -92
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BTCUhVLF.js +0 -71
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-Dt3D1vlP.js +0 -81
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Nuj2D0ou.js +0 -141
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CiEm0rNZ.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DCeLnaet.js +0 -84
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-X0QaDi3f.js +0 -70
- package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-DeWAhlq5.js +0 -73
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-jpshAN_z.js +0 -67
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DdHtMz3U.js +0 -86
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-D25Xyng0.js +0 -113
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-PvhE-sWb.js +0 -79
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-JA56U2UK.js +0 -107
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D2IAZAi5.js +0 -127
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-ecGZ6usx.js +0 -82
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DIL1cK_3.js +0 -84
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CgKjSAlD.js +0 -85
- package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BOQKIJxn.js +0 -24
- package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CkK5Y82K.js +0 -31
- package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-D-fE-ew4.js +0 -33
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-CUasoo5r.js +0 -97
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-DmPgbeCW.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B94AT-sg.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DWi2b9Mx.js +0 -27
- package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-DBjo4_k6.js +0 -78
- package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-cggeZMBj.js +0 -68
- package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-D3Udbcv-.js +0 -75
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DgSMJqGU.js +0 -85
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B2VjvvAB.js +0 -66
- package/build/server/chunks/entries/hooks.server.js-CRDKWiCw.js +0 -107
- package/build/server/chunks/entries/pages/_layout.server.ts.js-AHV4omRN.js +0 -55
- package/build/server/chunks/entries/pages/_layout.svelte.js-DsvCGNUI.js +0 -6023
- package/build/server/chunks/entries/pages/_page.server.ts.js-Bl64XRGY.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-Er6DIvYo.js +0 -4886
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-YEOJyXaU.js +0 -14
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Bn9pyphZ.js +0 -16
- package/build/server/chunks/entries/pages/documents/_page.server.ts.js-DoOEkND3.js +0 -15
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-q_a1EGjA.js +0 -17
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CV4qoB47.js +0 -11
- package/build/server/chunks/entries/pages/health/_page.server.ts.js-CcJzZPK6.js +0 -16
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CZ4oON2g.js +0 -18
- package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BI5BADm7.js +0 -18
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CtC_6fS-.js +0 -16
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTZY_1yT.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D-8dL2Mn.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BfBecR-G.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DCeq2QtX.js +0 -15
- package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-CiLbofM5.js +0 -25
- package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-BkPdJPqB.js +0 -37
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CbAvSKX9.js +0 -11
- package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +0 -13
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +0 -12
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-D5jE8Jm_.js +0 -18
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-64DsxExR.js +0 -15
- package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-DUnCuBsq.js +0 -19
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-D8ovHe5z.js +0 -16
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +0 -15
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CTuAgEM9.js +0 -797
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-LRk_0zzT.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BJQ8PVz2.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BDbQXhzo.js +0 -17
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CWGyxrN7.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-Dur6rEz-.js +0 -11
- package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Uca0-iPP.js +0 -15
- package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-qEc5nPtP.js +0 -178
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CLGNe_lT.js +0 -18
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BXY4jcfM.js +0 -36
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BLYEV0pM.js +0 -121
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-C0y6HLFn.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-C3KCFmSW.js +0 -11
- package/build/server/chunks/handler-CmSkir2e.js +0 -1474
- package/build/server/chunks/index.js--qZj4Hlt.js +0 -4296
- package/build/server/chunks/manifest.js-DznXX5B1.js +0 -1050
- package/build/server/chunks/nodes/0.js-JGhf3lek.js +0 -69
- package/build/server/chunks/nodes/1.js-MDwGT23n.js +0 -9
- package/build/server/chunks/nodes/10.js-BC_tDsXY.js +0 -67
- package/build/server/chunks/nodes/11.js-BlbXx-Vo.js +0 -69
- package/build/server/chunks/nodes/12.js-DRtVTtQZ.js +0 -68
- package/build/server/chunks/nodes/13.js-C54S9wq2.js +0 -69
- package/build/server/chunks/nodes/14.js-pbTZptLH.js +0 -12
- package/build/server/chunks/nodes/15.js-DLYRC91n.js +0 -9
- package/build/server/chunks/nodes/16.js-D7wzRoAT.js +0 -9
- package/build/server/chunks/nodes/17.js-BSxNNEBP.js +0 -67
- package/build/server/chunks/nodes/18.js-Cw1aobbl.js +0 -70
- package/build/server/chunks/nodes/19.js-BZL7Y2jR.js +0 -68
- package/build/server/chunks/nodes/2.js-CEhzIBTF.js +0 -67
- package/build/server/chunks/nodes/20.js-LT-WErdh.js +0 -69
- package/build/server/chunks/nodes/21.js-Dhf1VdAQ.js +0 -68
- package/build/server/chunks/nodes/22.js-C4T-4uGi.js +0 -69
- package/build/server/chunks/nodes/23.js-DfmzwOvT.js +0 -69
- package/build/server/chunks/nodes/24.js-B8tDbRuD.js +0 -25
- package/build/server/chunks/nodes/25.js-CB_xn9jn.js +0 -25
- package/build/server/chunks/nodes/26.js-D475mFaM.js +0 -9
- package/build/server/chunks/nodes/27.js-CqinYfdy.js +0 -25
- package/build/server/chunks/nodes/28.js-gzzSRYcM.js +0 -67
- package/build/server/chunks/nodes/29.js-CTGodeoy.js +0 -18
- package/build/server/chunks/nodes/3.js-B398IAtw.js +0 -9
- package/build/server/chunks/nodes/30.js-6Lb--dFz.js +0 -68
- package/build/server/chunks/nodes/31.js-CSj1AD7Q.js +0 -67
- package/build/server/chunks/nodes/32.js-BbGpHC9C.js +0 -25
- package/build/server/chunks/nodes/33.js-ChlD3UrL.js +0 -67
- package/build/server/chunks/nodes/34.js-DEdPbVDI.js +0 -25
- package/build/server/chunks/nodes/35.js-CinHDp_f.js +0 -22
- package/build/server/chunks/nodes/36.js-09k2jafz.js +0 -67
- package/build/server/chunks/nodes/37.js-wi0tvsNN.js +0 -70
- package/build/server/chunks/nodes/38.js-CXsKjbLt.js +0 -69
- package/build/server/chunks/nodes/39.js-DUosso-F.js +0 -26
- package/build/server/chunks/nodes/4.js-8nztjXZE.js +0 -68
- package/build/server/chunks/nodes/40.js-Bbiq9IeZ.js +0 -69
- package/build/server/chunks/nodes/41.js-MEJZh_dk.js +0 -71
- package/build/server/chunks/nodes/42.js-BhCRRutm.js +0 -68
- package/build/server/chunks/nodes/43.js-OOLANNrx.js +0 -68
- package/build/server/chunks/nodes/44.js-DiraBnCg.js +0 -67
- package/build/server/chunks/nodes/5.js-DgynhGEO.js +0 -67
- package/build/server/chunks/nodes/6.js-a6nRdMeq.js +0 -67
- package/build/server/chunks/nodes/8.js-YdBDVkOY.js +0 -67
- package/build/server/chunks/nodes/9.js-CFYhuecx.js +0 -14
|
@@ -1,7 +0,0 @@
|
|
|
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"./WRwU91GU.js";import{b as Zt}from"./CNxxt--f.js";import{p as ct}from"./xTuQT2it.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"./qL93yOki.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
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{w as U,v as F,X as q,ai as N,b9 as P,d as l,i as c,k as u,e as v}from"./Jk-ASPRO.js";import"./DsnmJJEf.js";import{s as C,r as M}from"./DQWg__9S.js";import{I as O}from"./DE0e4nJ8.js";import{p as j}from"./xTuQT2it.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){U(()=>{var s=F(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};q(()=>{var r=e();N(r),i&&P(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var A=new Set(["$$slots","$$events","$$legacy"]);function ht(a,t){let e=M(t,A);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"}]]};O(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"}]]};O(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=()=>j.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 y=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(!0);get speak(){return c(this.#r)}set speak(t){u(this.#r,t,!0)}#o=l(!0);get mask(){return c(this.#o)}set mask(t){u(this.#o,t,!0)}#a=l(!0);get shootClicks(){return c(this.#a)}set shootClicks(t){u(this.#a,t,!0)}#h=l(v([]));get events(){return c(this.#h)}set events(t){u(this.#h,t,!0)}#l=l(v([]));get remarks(){return c(this.#l)}set remarks(t){u(this.#l,t,!0)}#c=l(v([]));get notes(){return c(this.#c)}set notes(t){u(this.#c,t,!0)}#u=l(v([]));get convo(){return c(this.#u)}set convo(t){u(this.#u,t,!0)}#p=l({});get shots(){return c(this.#p)}set shots(t){u(this.#p,t)}#d=l(v([]));get fresh(){return c(this.#d)}set fresh(t){u(this.#d,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#f=l("/");get page(){return c(this.#f)}set page(t){u(this.#f,t,!0)}#k=l(!1);get talking(){return c(this.#k)}set talking(t){u(this.#k,t,!0)}#m=l(!1);get locked(){return c(this.#m)}set locked(t){u(this.#m,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#y=l(null);get scribeSays(){return c(this.#y)}set scribeSays(t){u(this.#y,t,!0)}#w=l(!1);get notesBusy(){return c(this.#w)}set notesBusy(t){u(this.#w,t,!0)}#b=l(!1);get replyBusy(){return c(this.#b)}set replyBusy(t){u(this.#b,t,!0)}#$=l(!1);get speaking(){return c(this.#$)}set speaking(t){u(this.#$,t,!0)}#S=l(null);get notice(){return c(this.#S)}set notice(t){u(this.#S,t,!0)}#x=l(null);get pack(){return c(this.#x)}set pack(t){u(this.#x,t,!0)}#I=l(!1);get marking(){return c(this.#I)}set marking(t){u(this.#I,t,!0)}#T=l(!1);get picking(){return c(this.#T)}set picking(t){u(this.#T,t,!0)}#D=l(null);get picked(){return c(this.#D)}set picked(t){u(this.#D,t,!0)}#E=l(null);get approved(){return c(this.#E)}set approved(t){u(this.#E,t,!0)}#R=l(!1);get approving(){return c(this.#R)}set approving(t){u(this.#R,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&&y(e.url)!==this.page;this.page=y(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==="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=y(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 ${y(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),f=e.el?.rect;if(f&&f.w>0){const g=6*d,[S,x,I,T]=[f.x*d-g,f.y*d-g,f.w*d+g*2,f.h*d+g*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 g=o.width/(e.point.vw||e.vw||o.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*g),h.beginPath(),h.arc(e.point.x*g,e.point.y*g,16*g,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()}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.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=G(this.events,t,e,s,i),o={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in r?r.ev.id:null,pointing:"pointing"in r?r.pointing:null,shotId:"ev"in r&&r.ev.shotId?r.ev.shotId:n};this.remarks.push(o),this.convo.push({who:"captain",text:t,t:e,uid:o.id}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(o)}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(f=>f.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};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as vt,x as ze,f as q,i as e,a as n,b as mt,j as R,h as f,r as d,n as $,c,d as T,k,q as Ke,L as Xe,o as w,s as o,t as D,m as Fe,l as Wt}from"./Jk-ASPRO.js";import{d as $t,s as h,e as Qe,a as Oe}from"./DTApYZoW.js";import{i as C}from"./BEVJas-l.js";import{e as Ve,a as N,s as Ht}from"./DNP6oCAK.js";import{h as Yt,m as Ut}from"./CGnI1F6D.js";import{c as ue}from"./Cq7OFmxz.js";import{b as jt}from"./CNxxt--f.js";import{b as Jt}from"./DLfKkHEy.js";import{s as Ce,r as Ne}from"./DQWg__9S.js";import{k as Bt}from"./nqsqhzVw.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./DrAaxSl_.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./VrUPyiEH.js";import{D as Vt}from"./DqyvT7BR.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./Br5gy4Yk.js";import{A as is}from"./Dze9OLXA.js";import{C as ns}from"./Do7xN4Qx.js";import{p as os}from"./xTuQT2it.js";import{i as tt}from"./gocvF-xl.js";import{l as ls}from"./QOxfJswt.js";import{C as ds}from"./c9k4nDgn.js";import{L as Me}from"./D73wi9-q.js";import{X as cs}from"./m8-RluHE.js";import{C as us}from"./C_BRvYKD.js";import{I as qe}from"./DE0e4nJ8.js";import{C as vs}from"./teNj0U11.js";import{R as ms}from"./BgsPzvvM.js";import{S as st}from"./CuSw1clo.js";import{A as fs}from"./B374TgJF.js";import{P as at}from"./DBLsdElo.js";import{P as rt}from"./B_DDhx9A.js";var ps=new Set(["$$slots","$$events","$$legacy"]);function it(E,s){let i=Ne(s,ps);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var hs=new Set(["$$slots","$$events","$$legacy"]);function _s(E,s){let i=Ne(s,hs);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var gs=new Set(["$$slots","$$events","$$legacy"]);function xs(E,s){let i=Ne(s,gs);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};qe(E,Ce(()=>i,{get icon(){return v}}))}var ks=c('<div class="mt-5" data-task-decisions=""><!></div>'),ys=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
|
|
2
|
-
which passes it on to the crew.</p>`);function ws(E,s){vt(s,!0);const i=R(()=>os.data.inbox),v=R(()=>tt.forTask(s.task.id,e(i),ls.now).length>0),b=R(()=>!e(v)&&s.task.attention?.kind==="decision"&&tt.hasDecision(s.task.id,e(i)));var Q=ze(),le=q(Q);{var Z=y=>{var F=ks(),V=f(F);{let G=R(()=>({taskId:s.task.id}));Xt(V,{get filter(){return e(G)}})}d(F),n(y,F)},we=y=>{var F=ys(),V=f(F);ds(V,{class:"size-4 shrink-0 text-success","aria-hidden":"true"}),$(),d(F),n(y,F)};C(le,y=>{e(v)?y(Z):e(b)&&y(we,1)})}n(E,Q),mt()}function bs(E){return!E.id.includes("@")&&!E.secondMate&&!["queued","done","landed","closed"].includes(E.status)}const Ss=/(?:instruction|operational input) waiting\b/i;function nt(E,s,i,v=!1){const b=[];for(const y of E)y.kind==="user"?Ss.test(y.text)||b.push({kind:"firstmate",at:y.at,item:y}):b.push({kind:"worker",at:y.at,item:y});let Q=0;if(!v){const y=b.findIndex(G=>G.at>=i),F=y<0?b.length:y,V=b.findLastIndex((G,H)=>H<F&&G.kind==="worker");Q=V>=0?V:F}const le=b.slice(Q),Z=s.map(y=>({kind:"captain",at:y.at,message:y}));return{entries:[...le,...Z].sort((y,F)=>y.at<F.at?-1:y.at>F.at?1:0),earlier:Q}}const Pe=6e3;async function ft(E,s,i,v={}){try{const b=await fetch(E,{method:"POST",headers:{"content-type":"application/json",[Gt]:s,...v},body:JSON.stringify(i)});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>null))?.message??`Wheelhouse answered ${b.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const ot=(E,s,i)=>ft("/api/crew",i,{taskId:E,action:s}),Ds=(E,s,i,v,b=crypto.randomUUID())=>ft("/api/crew/messages",v,{taskId:E,kind:s,text:i},{"idempotency-key":b});class Ps{constructor(s){this.taskId=s}taskId;#e=T(null);get session(){return e(this.#e)}set session(s){k(this.#e,s,!0)}#t=T(null);get source(){return e(this.#t)}set source(s){k(this.#t,s,!0)}#s=T([]);get records(){return e(this.#s)}set records(s){k(this.#s,s)}#a=T("connecting");get connection(){return e(this.#a)}set connection(s){k(this.#a,s,!0)}#r=T(!1);get synced(){return e(this.#r)}set synced(s){k(this.#r,s,!0)}#i=R(()=>Bt(this.records));get chat(){return e(this.#i)}set chat(s){k(this.#i,s)}#n=R(()=>{const s=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||s?.kind==="turn"&&!s.done});get working(){return e(this.#n)}set working(s){k(this.#n,s)}connect(){this.synced=!1;const s=i=>{i.addEventListener("session",v=>{this.session=JSON.parse(v.data)}),i.addEventListener("reset",v=>{this.source=JSON.parse(v.data),this.records=[]}),i.addEventListener("records",v=>{const b=[...this.records,...JSON.parse(v.data)];this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("replace",v=>{const b=JSON.parse(v.data);this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("synced",()=>this.synced=!0)};return Kt(`/api/tasks/${encodeURIComponent(this.taskId)}/chat`,s,i=>this.connection=i)}}var zs=c("<!>End discussion",1),Cs=c('<span class="text-xs text-muted-foreground">Read-only</span>'),Es=c(`<p class="crew-banner svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Sidebar</span> <span>You’re talking to <b> </b> directly. It can answer you here, and Firstmate gets a note of
|
|
3
|
-
each message.</span></p>`),Is=c('<p class="crew-banner crew-banner-read svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Read-only</span> <span> </span></p>'),As=c('<p class="crew-banner crew-banner-paused svelte-1f8gn6y" role="status"><span class="crew-tag svelte-1f8gn6y">Paused</span><span> </span></p>'),Ls=c('<div class="-mt-5"><!></div>'),lt=c('<p class="mt-4 rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground" role="status"> </p>'),Rs=c('<button class="mx-auto mt-4 block cursor-pointer text-sm text-sea hover:underline" data-show-earlier=""> </button>'),Fs=c('<div class="bubble-row"><div class="bubble bubble-captain"> </div></div>'),Os=c('<p class="flex items-center gap-1.5 text-sm text-muted-foreground"><!> </p>'),Ms=c('<button class="inline-flex cursor-pointer items-center gap-1 font-sans font-medium hover:underline"><!>Send again</button>'),dt=c("<span> </span>"),Ns=c('<article class="msg msg-captain"><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="crew-tag svelte-1f8gn6y">Sidebar</span><time> </time></header> <!> <p><!> <span> </span> <!></p></div></article>'),qs=c('<details class="crew-note svelte-1f8gn6y"><summary class="svelte-1f8gn6y">Typed into its session · <time> </time></summary> <p class="mt-2 whitespace-pre-wrap"> </p></details>'),Ts=c('<div class="bubble-row"><div class="chat-md bubble bubble-firstmate"></div></div>'),Ws=c('<p class="rounded-lg border px-4 py-3 text-sm"> <span class="text-muted-foreground">Answer in its terminal, or tell it here.</span></p>'),$s=c('<article class="msg msg-firstmate"><span class="mate-avatar msg-avatar svelte-1f8gn6y" aria-hidden="true"> </span> <div class="flex min-w-0 flex-1 flex-col gap-2"><header class="msg-head"><span class="msg-name font-mono"> </span><!><time> </time></header> <!></div></article>'),Hs=c('<pre class="no-scrollbar max-h-60 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground"> </pre>'),Ys=c('<p class="text-xs text-muted-foreground"> </p>'),Us=c(`<div class="border-t px-4 py-3 sm:px-5" data-discussion-terminal=""><p class="mb-2 flex items-center gap-2 text-xs text-muted-foreground"><!>Its terminal, read-only. Type to it
|
|
4
|
-
here, not there: what you send goes through its inbox.</p> <!></div>`),js=c("<!>Chat with crew",1),ct=c('<p class="mt-1 text-sm text-danger" role="alert"> </p>'),ut=c("<!> <!>",1),Js=c('<p class="text-sm text-danger" role="alert"> </p>'),Bs=c("<!>Start the discussion",1),Gs=c("<!> <!> <!>",1),Ks=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="flex items-center gap-3 rounded-xl border border-dashed bg-muted/40 py-2 pr-2 pl-4" data-chat-locked=""><span class="flex-1 text-muted-foreground/80">Read-only · talk to Firstmate about this task, or</span> <!></div> <p class="mt-1.5 text-xs text-muted-foreground"> </p> <!></div> <!>',1),Xs=c("<!>Ask for status",1),Qs=c("<!>Resume",1),Vs=c("<!>Pause after this step",1),Zs=c("<!> ",1),ea=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="mb-2 flex flex-wrap gap-2"><!> <!> <!></div> <form class="flex items-end gap-2 rounded-xl border bg-card px-3 py-2 focus-within:ring-3 focus-within:ring-ring/50"><textarea class="field-sizing-content max-h-48 min-h-10 flex-1 resize-none bg-transparent py-1.5 outline-none placeholder:text-muted-foreground" data-discussion-input=""></textarea> <!></form> <p class="mt-1.5 text-xs text-muted-foreground">Goes to its inbox as yours; Firstmate gets a note.</p> <!></div>'),ta=c('<section class="flex h-full min-h-0 flex-col"><header class="flex flex-wrap items-center gap-x-3 gap-y-2 border-b px-4 py-3 sm:px-5"><span class="mate-avatar" aria-hidden="true"> </span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2"><a class="font-mono text-sm font-semibold hover:underline"> </a> <span class="truncate text-sm text-muted-foreground"> </span></p> <p class="text-xs text-muted-foreground"> </p></div> <!></header> <!> <!> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-5" aria-live="polite" data-discussion-feed=""><!> <!> <!> <div class="mt-5 flex flex-col gap-6"></div></div> <!> <!></section>');function Na(E,s){vt(s,!0);const i=R(()=>s.taskId);let v=T(null);Ke(()=>{const t=new Ps(e(i));k(v,t,!0);const a=t.connect();return()=>{a(),k(v,null)}});let b=T(!1);const Q=60;let le=T(Q);const Z=R(()=>{if(s.discussion)return nt(e(v)?.chat.items??[],s.discussion.messages,s.discussion.openedAt,e(b));const{entries:t}=nt(e(v)?.chat.items??[],[],"",!0),a=Math.max(0,t.length-e(le));return{entries:t.slice(a),earlier:a}}),we=()=>s.discussion?k(b,!0):k(le,e(le)+Q),y=R(()=>s.task?s.task.secondMate||s.task.id.includes("@")?"Chatting with a second mate’s worker comes later.":bs(s.task)?null:"Its worker is not at work.":"Its task has left the fleet."),F=R(()=>e(v)?.session?.harness??s.task?.worker?.harness??null),V=R(()=>e(F)?Qt[e(F)]??e(F):null);let G=T(""),H=T(null),be=T(!1),he=T(!1),Se=T(!1),De=T(!1);async function pt(){k(De,!0),k(H,null);const t=await ot(e(i),"open",s.token);k(De,!1),t.ok?k(Se,!1):k(H,t.error,!0)}async function _e(t,a="",m){k(H,null);const P=await Ds(e(i),t,a,s.token,m);P.ok||k(H,P.error,!0)}function Te(){const t=e(G).trim();t&&(k(G,""),_e("say",t),Xe().then(()=>$e(!0)))}function ht(t){t.key==="Enter"&&!t.shiftKey&&!t.isComposing&&(t.preventDefault(),Te())}async function _t(){k(be,!0);const t=await ot(e(i),"close",s.token);k(be,!1),t.ok?s.onended?.():k(H,t.error,!0)}let ee=T(null),We=!0;function $e(t=!1){e(ee)&&(t||We)&&(e(ee).scrollTop=e(ee).scrollHeight)}Ke(()=>{e(Z).entries.length,e(v)?.records.length,Xe().then(()=>$e())});const gt=t=>t.delivery==="sending"?"Sending":t.delivery==="failed"?t.error??"Not delivered":t.seen?`Seen by ${e(i)}`:"In its inbox",xt={status:"Asked for status",pause:"Asked to pause",resume:"Asked to resume"};var ve=ta(),Ee=f(ve),Ie=f(Ee),kt=w(Ie,!0),Ae=o(Ie,2),Le=f(Ae),Re=f(Le),yt=w(Re,!0),wt=o(Re,2),bt=w(wt,!0);d(Le);var St=o(Le,2),Dt=w(St);d(Ae);var Pt=o(Ae,2);{var zt=t=>{re(t,{variant:"outline",size:"sm",onclick:_t,get disabled(){return e(be)},"data-end-discussion":!0,children:(a,m)=>{var P=zs(),U=q(P);{var ie=j=>{Me(j,{class:"animate-spin"})},de=j=>{cs(j,{})};C(U,j=>{e(be)?j(ie):j(de,-1)})}$(),n(a,P)},$$slots:{default:!0}})},Ct=t=>{var a=Cs();n(t,a)};C(Pt,t=>{s.discussion?t(zt):t(Ct,-1)})}d(Ee);var He=o(Ee,2);{var Et=t=>{var a=Es(),m=o(f(a),2),P=o(f(m)),U=w(P,!0);$(),d(m),d(a),D(()=>h(U,e(i))),n(t,a)},It=t=>{var a=Is(),m=o(f(a),2),P=w(m);d(a),D(()=>h(P,`${e(i)??""}’s own conversation. You’re watching; Firstmate steers it.`)),n(t,a)};C(He,t=>{s.discussion?t(Et):t(It,-1)})}var Ye=o(He,2);{var At=t=>{var a=As(),m=o(f(a)),P=w(m);d(a),D(()=>h(P,`You asked ${e(i)??""} to stop after its current step. It waits until you resume it.`)),n(t,a)};C(Ye,t=>{s.discussion?.paused&&t(At)})}var ge=o(Ye,2),Ue=f(ge);{var Lt=t=>{var a=Ls(),m=f(a);ws(m,{get task(){return s.task}}),d(a),n(t,a)};C(Ue,t=>{s.task&&s.discussion&&t(Lt)})}var je=o(Ue,2);{var Rt=t=>{var a=lt(),m=w(a,!0);D(()=>h(m,e(v).session.reason)),n(t,a)},Ft=t=>{var a=lt(),m=w(a);D(()=>h(m,`Wheelhouse has not found ${e(i)??""}’s conversation yet.${s.discussion?" What you send still reaches it.":""}`)),n(t,a)};C(je,t=>{e(v)?.session?.reason?t(Rt):e(v)?.synced&&!e(v).source&&t(Ft,1)})}var Je=o(je,2);{var Ot=t=>{var a=Rs(),m=w(a);D(()=>h(m,`Show its earlier work (${e(Z).earlier??""})`)),Oe("click",a,we),n(t,a)};C(Je,t=>{e(Z).earlier&&t(Ot)})}var Be=o(Je,2);Ve(Be,23,()=>e(Z).entries,(t,a)=>t.kind==="captain"?`c-${t.message.id}`:`${t.kind}-${t.item.id}-${a}`,(t,a,m)=>{var P=ze(),U=q(P);{var ie=p=>{const r=R(()=>e(a).message);var g=Ns(),O=o(f(g),2),l=f(O),z=o(f(l)),L=w(z,!0);d(l);var A=o(l,2);{var J=u=>{var x=Fs(),_=f(x),S=w(_,!0);d(x),D(()=>h(S,e(r).text)),n(u,x)},ce=u=>{var x=Os(),_=f(x);{var S=X=>{at(X,{class:"size-3.5","aria-hidden":"true"})},K=X=>{rt(X,{class:"size-3.5","aria-hidden":"true"})},W=X=>{it(X,{class:"size-3.5","aria-hidden":"true"})};C(_,X=>{e(r).kind==="pause"?X(S):e(r).kind==="resume"?X(K,1):X(W,-1)})}var fe=o(_,1,!0);d(x),D(()=>h(fe,xt[e(r).kind])),n(u,x)};C(A,u=>{e(r).kind==="say"?u(J):u(ce,-1)})}var te=o(A,2),oe=f(te);{var me=u=>{Me(u,{class:"size-3 animate-spin","aria-hidden":"true"})},ke=u=>{us(u,{class:"size-3","aria-hidden":"true"})},Y=u=>{_s(u,{class:"size-3 text-success","aria-hidden":"true"})},I=u=>{vs(u,{class:"size-3","aria-hidden":"true"})};C(oe,u=>{e(r).delivery==="sending"?u(me):e(r).delivery==="failed"?u(ke,1):e(r).seen?u(Y,2):u(I,-1)})}var M=o(oe,2),B=w(M,!0),ye=o(M,2);{var se=u=>{var x=Ms(),_=f(x);ms(_,{class:"size-3","aria-hidden":"true"}),$(),d(x),Oe("click",x,()=>_e(e(r).kind,e(r).text,e(r).id)),n(u,x)},ae=u=>{var x=dt(),_=w(x);D(()=>h(_,`· ${e(r).told==="sent"?"Firstmate told":e(r).told==="sending"?"telling Firstmate":e(r).told==="off"?"Firstmate not told (messaging is off)":"Firstmate could not be told"}`)),n(u,x)};C(ye,u=>{e(r).delivery==="failed"?u(se):e(r).delivery==="sent"&&u(ae,1)})}d(te),d(O),d(g),D((u,x,_)=>{N(g,"aria-label",`You, ${u??""}`),N(g,"data-crew-message",e(r).id),N(z,"datetime",e(r).at),h(L,x),Ht(te,1,`mt-1 flex flex-wrap items-center justify-end gap-x-2 font-mono text-[0.72rem] ${e(r).delivery==="failed"?"text-danger":"text-muted-foreground"}`),N(te,"data-receipt",e(r).delivery==="sent"?e(r).seen?"seen":"sent":e(r).delivery),h(B,_)},[()=>pe(e(r).at),()=>pe(e(r).at),()=>gt(e(r))]),n(p,g)},de=p=>{var r=qs(),g=f(r),O=o(f(g)),l=w(O,!0);d(g);var z=o(g,2),L=w(z,!0);d(r),D(A=>{N(O,"datetime",e(a).at),h(l,A),h(L,e(a).item.text)},[()=>pe(e(a).at)]),n(p,r)},j=p=>{const r=R(()=>e(a).item);var g=$s(),O=f(g),l=w(O,!0),z=o(O,2),L=f(z),A=f(L),J=w(A,!0),ce=o(A);{var te=Y=>{var I=dt(),M=w(I,!0);D(()=>h(M,e(V))),n(Y,I)};C(ce,Y=>{e(V)&&Y(te)})}var oe=o(ce),me=w(oe,!0);d(L);var ke=o(L,2);Ve(ke,19,()=>e(r).parts,Y=>Y.id,(Y,I,M)=>{var B=ze(),ye=q(B);{var se=_=>{var S=Ts(),K=f(S);Yt(K,()=>Ut(e(I).text),!0),d(K),d(S),n(_,S)},ae=R(()=>e(I).kind==="text"&&e(I).text.trim()),u=_=>{{let S=R(()=>!e(r).done&&e(M)===e(r).parts.length-1&&e(m)===e(Z).entries.length-1);is(_,{get steps(){return e(I).steps},get live(){return e(S)}})}},x=_=>{var S=Ws(),K=f(S);$(),d(S),D(W=>h(K,`It asked in its session: ${W??""} `),[()=>e(I).questions.map(W=>W.question).join(" ")]),n(_,S)};C(ye,_=>{e(ae)?_(se):e(I).kind==="activity"?_(u,1):e(I).kind==="question"&&_(x,2)})}n(Y,B)}),d(z),d(g),D((Y,I,M,B)=>{N(g,"aria-label",`${e(i)??""}, ${Y??""}`),N(O,"data-hue",I),h(l,M),h(J,e(i)),N(oe,"datetime",e(r).at),h(me,B)},[()=>pe(e(r).at),()=>Ze(e(i)),()=>et(e(i)),()=>pe(e(r).at)]),n(p,g)},xe=p=>{var r=Hs(),g=w(r,!0);D(()=>h(g,e(a).item.text)),n(p,r)},ne=p=>{var r=Ys(),g=w(r);D(O=>h(g,`${e(a).item.title??""} · ${O??""}`),[()=>pe(e(a).item.at)]),n(p,r)};C(U,p=>{e(a).kind==="captain"?p(ie):e(a).kind==="firstmate"?p(de,1):e(a).item.kind==="turn"?p(j,2):e(a).item.kind==="output"?p(xe,3):e(a).item.kind==="notice"&&p(ne,4)})}n(t,P)}),d(Be),d(ge),Jt(ge,t=>k(ee,t),()=>e(ee));var Ge=o(ge,2);{var Mt=t=>{var a=Us(),m=f(a),P=f(m);st(P,{class:"size-3.5","aria-hidden":"true"}),$(),d(m);var U=o(m,2);ns(U,{get task(){return s.task},lines:16}),d(a),n(t,a)};C(Ge,t=>{e(he)&&s.task&&t(Mt)})}var Nt=o(Ge,2);{var qt=t=>{var a=Ks(),m=q(a),P=f(m),U=o(f(P),2);{let p=R(()=>!!e(y)),r=R(()=>e(y)??void 0);re(U,{variant:"outline",size:"sm",get disabled(){return e(p)},get title(){return e(r)},onclick:()=>k(Se,!0),"data-chat-with-crew":!0,children:(g,O)=>{var l=js(),z=q(l);xs(z,{}),$(),n(g,l)},$$slots:{default:!0}})}d(P);var ie=o(P,2),de=w(ie,!0),j=o(ie,2);{var xe=p=>{var r=ct(),g=w(r,!0);D(()=>h(g,e(H))),n(p,r)};C(j,p=>{e(H)&&p(xe)})}d(m);var ne=o(m,2);ue(ne,()=>rs,(p,r)=>{r(p,{get open(){return e(Se)},set open(g){k(Se,g,!0)},children:(g,O)=>{var l=ze(),z=q(l);ue(z,()=>Zt,(L,A)=>{A(L,{class:"sm:max-w-md",children:(J,ce)=>{var te=Gs(),oe=q(te);ue(oe,()=>es,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);ue(ae,()=>ts,(x,_)=>{_(x,{class:"font-display text-lg",children:(S,K)=>{$();var W=Fe();D(()=>h(W,`Talk to ${e(i)??""} directly?`)),n(S,W)},$$slots:{default:!0}})});var u=o(ae,2);ue(u,()=>ss,(x,_)=>{_(x,{children:(S,K)=>{$();var W=Fe(`You’ll message this task’s worker yourself, outside Firstmate’s usual relay. What you
|
|
5
|
-
say goes to its inbox as yours, it can answer you here, and Firstmate gets a note of
|
|
6
|
-
each message so it stays in step. End the discussion when you’re done; most of the time,
|
|
7
|
-
talk to Firstmate.`);n(S,W)},$$slots:{default:!0}})}),n(B,se)},$$slots:{default:!0}})});var me=o(oe,2);{var ke=I=>{var M=Js(),B=w(M,!0);D(()=>h(B,e(H))),n(I,M)};C(me,I=>{e(H)&&I(ke)})}var Y=o(me,2);ue(Y,()=>as,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);{const x=(_,S)=>{re(_,Ce(()=>(S?.()).props,{variant:"ghost",children:(W,fe)=>{$();var X=Fe("Cancel");n(W,X)},$$slots:{default:!0}}))};ue(ae,()=>Vt,(_,S)=>{S(_,{child:x,$$slots:{child:!0}})})}var u=o(ae,2);re(u,{onclick:pt,get disabled(){return e(De)},"data-crew-confirm":!0,children:(x,_)=>{var S=Bs(),K=q(S);{var W=fe=>{Me(fe,{class:"animate-spin"})};C(K,fe=>{e(De)&&fe(W)})}$(),n(x,S)},$$slots:{default:!0}}),n(B,se)},$$slots:{default:!0}})}),n(J,te)},$$slots:{default:!0}})}),n(g,l)},$$slots:{default:!0}})}),D(()=>h(de,e(y)??"You’ll be asked to confirm first: you talk to the worker directly.")),n(t,a)},Tt=t=>{var a=ea(),m=f(a),P=f(m);re(P,{variant:"outline",size:"sm",onclick:()=>_e("status"),"data-quick":"status",children:(l,z)=>{var L=Xs(),A=q(L);it(A,{}),$(),n(l,L)},$$slots:{default:!0}});var U=o(P,2);{var ie=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("resume"),"data-quick":"resume",children:(z,L)=>{var A=Qs(),J=q(A);rt(J,{}),$(),n(z,A)},$$slots:{default:!0}})},de=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("pause"),"data-quick":"pause",children:(z,L)=>{var A=Vs(),J=q(A);at(J,{}),$(),n(z,A)},$$slots:{default:!0}})};C(U,l=>{s.discussion.paused?l(ie):l(de,-1)})}var j=o(U,2);{var xe=l=>{re(l,{variant:"outline",size:"sm",get"aria-pressed"(){return e(he)},onclick:()=>k(he,!e(he)),"data-quick":"terminal",children:(z,L)=>{var A=Zs(),J=q(A);st(J,{});var ce=o(J);D(()=>h(ce,`${e(he)?"Hide":"Show"} its terminal`)),n(z,A)},$$slots:{default:!0}})};C(j,l=>{s.task&&l(xe)})}d(m);var ne=o(m,2),p=f(ne);Wt(p);var r=o(p,2);{let l=R(()=>!e(G).trim());re(r,{type:"submit",size:"icon",class:"rounded-full",get disabled(){return e(l)},"aria-label":"Send",children:(z,L)=>{fs(z,{})},$$slots:{default:!0}})}d(ne);var g=o(ne,4);{var O=l=>{var z=ct(),L=w(z,!0);D(()=>h(L,e(H))),n(l,z)};C(g,l=>{e(H)&&l(O)})}d(a),D(()=>{N(p,"placeholder",`Message ${e(i)??""} directly`),N(p,"aria-label",`Message ${e(i)??""} directly`)}),Qe("submit",ne,l=>{l.preventDefault(),Te()}),Oe("keydown",p,ht),jt(p,()=>e(G),l=>k(G,l)),n(t,a)};C(Nt,t=>{s.discussion?t(Tt,-1):t(qt)})}d(ve),D((t,a,m)=>{N(ve,"aria-label",s.discussion?`Crew discussion with ${e(i)}`:`${e(i)}’s conversation`),N(ve,"data-discussion",s.discussion?e(i):void 0),N(ve,"data-task-chat",e(i)),N(Ie,"data-hue",t),h(kt,a),N(Re,"href",`/tasks/${m??""}`),h(yt,e(i)),h(bt,s.task?.title??s.discussion?.title??""),h(Dt,`${e(V)??"Worker"??""}${s.task?` · ${s.task.statusLabel}`:" · no longer in the fleet"}`)},[()=>Ze(e(i)),()=>et(e(i)),()=>encodeURIComponent(e(i))]),Qe("scroll",ge,()=>{e(ee)&&(We=e(ee).scrollTop+e(ee).clientHeight>=e(ee).scrollHeight-40)}),n(E,ve),mt()}$t(["click","keydown"]);export{Na as D,ws as T,xs as U};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as Ze,r as Je,p as Ie}from"./DQWg__9S.js";import{I as $e}from"./DE0e4nJ8.js";import{i as Ct}from"./gocvF-xl.js";import{p as Ae,d as pe,e as _t,h as d,s as n,r as o,t as h,i as e,k as j,a as s,n as ve,b as Ce,j as N,c as l,o as X,f as me,l as qe,x as Fe,m as Ot,q as Qe}from"./Jk-ASPRO.js";import{d as Ne,s as D,a as se,e as Ve}from"./DTApYZoW.js";import{i as v}from"./BEVJas-l.js";import{e as ze,r as Se,a as M,g as Re,f as He,s as ce,c as Le,i as Lt}from"./DNP6oCAK.js";import{b as We}from"./CNxxt--f.js";import{D as ut,N as kt,u as St,W as Nt,w as Et,x as Rt,y as Wt,s as Pt}from"./nqsqhzVw.js";import{X as it}from"./m8-RluHE.js";import{C as Ft}from"./BbEKXuJh.js";import{C as jt}from"./C_BRvYKD.js";import{P as Ue}from"./fzA2mGC3.js";import{C as Xe}from"./c9k4nDgn.js";import{L as Ge}from"./DFaX1kYU.js";import{C as Yt}from"./BPBomwti.js";import{G as qt}from"./MgFVe5-f.js";import{F as wt}from"./CGgXi5F1.js";import{c as vt}from"./Cq7OFmxz.js";import{L as Ut}from"./DZZuZ7Nl.js";import{p as Ke,u as pt,L as Be,M as ft}from"./D2UqGNPw.js";import{b as Xt,P as Gt}from"./BqTq4oc1.js";import{M as xt,c as Kt}from"./V9uGi6jc.js";import{L as Bt}from"./B65GEZdd.js";import{E as ot}from"./gEZHG5dd.js";import{h as Ht,m as Qt}from"./CGnI1F6D.js";import{b as Vt}from"./DLfKkHEy.js";import{D as Zt,d as Jt}from"./DMIaeBcI.js";import{L as $t}from"./BUmi_NPh.js";import{D as ea}from"./CQCVxehf.js";var ta=new Set(["$$slots","$$events","$$legacy"]);function sn(p,t){let i=Je(t,ta);const a={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var aa=new Set(["$$slots","$$events","$$legacy"]);function ra(p,t){let i=Je(t,aa);const a={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var na=new Set(["$$slots","$$events","$$legacy"]);function oa(p,t){let i=Je(t,na);const a={name:"list-checks",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["path",{d:"m3 7 2 2 4-4"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}var sa=new Set(["$$slots","$$events","$$legacy"]);function dn(p,t){let i=Je(t,sa);const a={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]]};$e(p,Ze(()=>i,{get icon(){return a}}))}const ln=(p,t,i,a)=>Ct.answer(p,t.choice,i,a,t.picks,t.decided),ia=28,Pe=300,st=(p,t={})=>({choice:p,picks:null,decided:null,...t}),da={merge:[{label:"Merge",choice:"approve"},{label:"Not yet",choice:"skip"}],preview:[{label:"Sign it off",choice:"approve"},{label:"Request changes",choice:"fix"}],hold:[{label:"Go ahead",choice:"approve"},{label:"Not like this",choice:"fix"}],decision:[{label:"Go ahead",choice:"approve"},{label:"Change course",choice:"fix"}],blocked:[{label:"Go ahead",choice:"approve"},{label:"Try another way",choice:"fix"}],review:[{label:"Keep it as is",choice:"approve"},{label:"Fix it",choice:"fix"},{label:"Leave it for later",choice:"skip"}]},la=/^(?:which|what|how|where|who|when|why)\b/i;function ca(p){const t=(p??"").match(/[^.?!]*\?/g),i=t?.[t.length-1]?.trim();return!!i&&la.test(i)}function cn(p){const t=p.choices;if(t){const[w]=t.calls;return t.calls.length===1&&w.options.length?{kind:"choice",prompt:w.prompt,from:"card",options:w.options.map(f=>({id:f.id,label:f.label,detail:f.detail,recommended:f.recommended,answer:st("approve",{picks:{[w.id]:f.id}})}))}:{kind:"picks",prompt:null,choices:t,from:"card"}}if((p.kind==="hold"||p.kind==="decision")&&ca(p.question))return{kind:"text",prompt:null,from:"card"};const i=p.recommendation?.choice??(p.kind==="merge"?"approve":null),a=da[p.kind],g=a.map(w=>({id:w.choice,label:w.label,detail:null,recommended:w.choice===i,answer:st(w.choice)}));return{kind:a.length===2?"buttons":"choice",prompt:null,options:g,from:"card"}}const dt=/```decision-form[^\n]*\n([\s\S]*?)(?:```|$)/g,ht=/\s*\((?:recommended|rec)\)\s*/i,ma=/^\(written(?: answer)?\)$/i,gt=p=>p.replace(/\s+/g," ").trim();function mn(p){const t=[...p.matchAll(dt)],i=t[t.length-1]?.[1];if(i===void 0)return null;let a=null,g=!1;const w=[];for(const G of i.split(`
|
|
2
|
-
`)){const x=G.trim();if(!x)continue;const K=/^[-*•]\s+(.*)$/.exec(x)?.[1];if(K===void 0){a??=gt(x);continue}if(ma.test(K.trim())){g=!0;continue}const re=ht.test(K),_=gt(K.replace(ht," ")),E=_.search(/:\s|\s[–—]\s/),R=(E>0?_.slice(0,E):_).trim().slice(0,Pe),Y=E>0&&_.slice(E).replace(/^[:–—]?\s*/,"").trim()||null;R&&w.push({id:`o${w.length+1}`,label:R,detail:Y,recommended:re,answer:st("approve",{decided:R})})}return w.length?{kind:w.length===2&&w.every(G=>!G.detail&&G.label.length<=ia)?"buttons":"choice",prompt:a,options:w,from:"firstmate"}:g||a?{kind:"text",prompt:a,from:"firstmate"}:null}const ua=/^```decision-form[^\S\n]+(?:[^\n]*\s)?id=([A-Za-z0-9][\w.@-]{0,199})(?=\s|$)/;function un(p){const t=[...p.matchAll(dt)],i=t[t.length-1];return i?ua.exec(i[0])?.[1]??null:null}const vn=p=>p.replace(dt,"").trim();function pn(p,t){if(t.picks)return t.picks;if(p&&(p.kind==="buttons"||p.kind==="choice")){const i=p.options.find(a=>a.answer.choice===t.choice&&!a.answer.decided);if(i)return i.label}return t.label}var va=l('<label class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-full border px-2.5 text-xs transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 max-md:min-h-11"><input type="radio" class="accent-sea"/> </label>'),pa=l('<input type="text" placeholder="Why it is not needed" aria-label="Your reason for dismissing it" class="mt-2 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-11 max-md:text-base"/>'),fa=l('<form class="mt-2 rounded-md border bg-background/60 px-3 py-2.5 text-sm" data-dismiss-picker=""><fieldset><legend class="text-xs font-medium text-muted-foreground">Dismiss it without an answer. Why?</legend> <div class="mt-1.5 flex flex-wrap gap-1.5"></div></fieldset> <!> <div class="mt-2 flex flex-wrap items-center gap-1.5"><button type="submit" class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11" data-dismiss-confirm=""><!>Dismiss it</button> <button type="button" class="inline-flex min-h-9 cursor-pointer items-center rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground max-md:min-h-11">Cancel</button> <span class="text-xs text-muted-foreground">Firstmate records it closed everywhere.</span></div></form>');function xa(p,t){Ae(t,!0);let i=Ie(t,"disabled",3,!1);const a="own";let g=pe(_t(ut[0])),w=pe("");const f=N(()=>e(g)===a?e(w).trim():e(g));var G=fa(),x=d(G),K=n(d(x),2);ze(K,20,()=>[...ut,a],T=>T,(T,Z)=>{var ie=va(),ee=d(ie);Se(ee);var C=n(ee,1,!0);o(ie),h(()=>{M(ee,"name",`dismiss-${t.name??""}`),Re(ee,Z),He(ee,e(g)===Z),D(C,Z===a?"Another reason":Z)}),se("change",ee,()=>j(g,Z,!0)),s(T,ie)}),o(K),o(x);var re=n(x,2);{var _=T=>{var Z=pa();Se(Z),h(()=>M(Z,"maxlength",kt)),We(Z,()=>e(w),ie=>j(w,ie)),s(T,Z)};v(re,T=>{e(g)===a&&T(_)})}var E=n(re,2),R=d(E),Y=d(R);it(Y,{class:"size-3.5","aria-hidden":"true"}),ve(),o(R);var q=n(R,2);ve(2),o(E),o(G),h(()=>R.disabled=i()||e(g)===a&&!e(f)),Ve("submit",G,T=>{T.preventDefault(),!i()&&(e(g)!==a||e(f))&&t.onDismiss(e(f)||null)}),se("click",q,function(...T){t.onCancel?.apply(this,T)}),s(p,G),Ce()}Ne(["change","click"]);var ha=l('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your own answer" aria-label="Your own answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base" data-other-text=""></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-other-send=""><!>Send</button></form>'),ga=l('<p class="text-sm leading-snug font-medium"> </p>'),ba=l('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-decided=""><!><span>You decided <span class="font-semibold"> </span></span></p>'),_a=l('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-dismissed=""><!><span> </span></p>'),ka=l('<span class="text-xs font-normal opacity-80">· recommended</span>'),wa=l("<button> <!></button>"),ya=l('<div class="mt-2 flex flex-wrap items-center gap-1.5 max-md:flex-col max-md:items-stretch max-md:gap-2" role="group" aria-label="Answer"><!> <button data-other=""><!>Other…</button></div> <!>',1),za=l('<span class="text-foreground/85"> </span>'),bt=l('<span class="ml-1.5 text-xs font-medium whitespace-nowrap text-brass">Recommended</span>'),Da=l('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><span class="font-semibold"> </span><!><!></span></label>'),Ma=l('<textarea rows="2" placeholder="Your own answer" aria-label="Your own answer" class="mt-2 block field-sizing-content max-h-40 min-h-12 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base" data-other-text=""></textarea>'),Ta=l('<div class="mt-2 flex flex-col gap-1.5 max-md:gap-2" role="radiogroup"><!> <label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border border-dashed px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:checked]:text-foreground has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base" data-other=""><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="inline-flex min-w-0 items-center gap-1 leading-snug"><!>Other: write your own answer</span></label></div> <!> <div class="mt-2.5"><button data-decide=""><!> </button></div>',1),Ia=l('<span class="mr-1 text-muted-foreground tabular-nums"> </span>'),Aa=l('<span class="ml-1 font-normal text-muted-foreground">· optional</span>'),Ca=l('<span class="font-semibold"> </span><span class="text-foreground/85"> </span>',1),Oa=l('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><!><!></span></label>'),La=l("<div></div>"),Sa=l('<input type="text" placeholder="Your answer (optional)" class="mt-1.5 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-12 max-md:text-base"/>'),Na=l('<fieldset class="min-w-0"><legend class="text-sm leading-snug font-medium"><!> <!></legend> <!></fieldset>'),Ea=l('<p class="mt-1.5 text-xs text-muted-foreground"> </p>'),Ra=l('<div class="mt-2 flex flex-col gap-3" role="group" aria-label="Your picks"></div> <div class="mt-2.5"><button data-decide=""><!>Decide</button> <button data-other=""><!>Other…</button> <!></div> <!>',1),Wa=l('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base"></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-decide=""><!>Decide</button></form>'),Pa=l('<label class="mt-2 block"><span class="sr-only">Note for Firstmate (optional)</span> <textarea rows="1" placeholder="A note to go with your answer (optional)" class="block field-sizing-content max-h-40 min-h-9 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base"></textarea></label>'),Fa=l('<button class="mt-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm"><!>Add a note</button>'),ja=l('<button class="mt-1.5 ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm" data-dismiss=""><!>Dismiss</button>'),Ya=l('<div class="mt-3"><!> <!> <!> <!></div>');function fn(p,t){Ae(t,!0);const i=c=>{var r=ha(),m=d(r);qe(m);var k=n(m,2),A=d(k);Xe(A,{class:"size-3.5","aria-hidden":"true"}),ve(),o(k),o(r),h(u=>{M(m,"maxlength",Pe),m.disabled=!a(),k.disabled=u},[()=>!a()||!e(E).trim()]),Ve("submit",r,u=>{u.preventDefault(),ie()}),We(m,()=>e(E),u=>j(E,u)),s(c,r)};let a=Ie(t,"canAnswer",3,!0),g=Ie(t,"decided",3,null),w=Ie(t,"dismissed",3,null),f=Ie(t,"other",15,!1),G=pe(null),x=pe(_t({})),K=pe(""),re=pe(""),_=pe(!1),E=pe(""),R=pe(!1);const Y="other",q=N(()=>t.form.kind==="buttons"||t.form.kind==="choice"?t.form.options:[]),T=N(()=>f()?null:e(q).find(c=>c.id===e(G))??e(q).find(c=>c.recommended)??null),Z=N(()=>g()!==null||w()!==null),ie=()=>{const c=e(E).trim();c&&C({choice:"approve",picks:null,decided:c.slice(0,Pe),other:!0})},ee=N(()=>t.form.kind==="picks"?Rt(t.form.choices,e(x)):[]),C=c=>t.onAnswer(c,e(re).trim()||null),U=c=>c.options.every(r=>!r.detail&&r.label.length<=28),fe="border-sea bg-sea text-on-accent hover:bg-sea/90";var ne=Ya(),he=d(ne);{var ge=c=>{var r=ga(),m=X(r,!0);h(()=>D(m,t.form.prompt)),s(c,r)};v(he,c=>{t.form.prompt&&c(ge)})}var W=n(he,2);{var H=c=>{var r=ba(),m=d(r);Ft(m,{class:"mt-0.5 size-3.5 shrink-0 text-success","aria-hidden":"true"});var k=n(m),A=n(d(k)),u=X(A,!0);o(k),o(r),h(()=>D(u,g())),s(c,r)},B=c=>{var r=_a(),m=d(r);jt(m,{class:"mt-0.5 size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var k=n(m),A=X(k);o(r),h(()=>D(A,`You dismissed it${w()?`: ${w()}`:""}`)),s(c,r)},O=c=>{var r=ya(),m=me(r),k=d(m);ze(k,17,()=>t.form.options,de=>de.id,(de,be)=>{var ue=wa(),_e=d(ue,!0),Oe=n(_e);{var le=S=>{var ae=ka();s(S,ae)};v(Oe,S=>{e(be).recommended&&S(le)})}o(ue),h(()=>{ce(ue,1,`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base ${e(be).recommended?fe:"bg-background hover:bg-accent"}`),ue.disabled=!a(),M(ue,"data-option",e(be).id),D(_e,e(be).label)}),se("click",ue,()=>C(e(be).answer)),s(de,ue)});var A=n(k,2);ce(A,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var u=d(A);Ue(u,{class:"size-3.5","aria-hidden":"true"}),ve(),o(A),o(m);var L=n(m,2);{var V=de=>{i(de)};v(L,de=>{f()&&de(V)})}h(()=>{A.disabled=!a(),M(A,"aria-expanded",f())}),se("click",A,()=>f(!f())),s(c,r)},I=c=>{var r=Ta(),m=me(r),k=d(m);ze(k,17,()=>t.form.options,S=>S.id,(S,ae)=>{var ke=Da(),we=d(ke);Se(we);var je=n(we,2),Ee=d(je),et=X(Ee,!0),Ye=n(Ee);{var tt=J=>{var $=za(),xe=X($,!0);h(()=>D(xe,` · ${e(ae).detail}`)),s(J,$)};v(Ye,J=>{e(ae).detail&&J(tt)})}var at=n(Ye);{var rt=J=>{var $=bt();s(J,$)};v(at,J=>{e(ae).recommended&&J(rt)})}o(je),o(ke),h(()=>{M(we,"name",`form-${t.name??""}`),Re(we,e(ae).id),He(we,e(T)?.id===e(ae).id),we.disabled=!a(),D(et,e(ae).label)}),se("change",we,()=>{j(G,e(ae).id,!0),f(!1)}),s(S,ke)});var A=n(k,2),u=d(A);Se(u),Re(u,Y);var L=n(u,2),V=d(L);Ue(V,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(L),o(A),o(m);var de=n(m,2);{var be=S=>{var ae=Ma();qe(ae),h(()=>{M(ae,"maxlength",Pe),ae.disabled=!a()}),We(ae,()=>e(E),ke=>j(E,ke)),s(S,ae)};v(de,S=>{f()&&S(be)})}var ue=n(de,2),_e=d(ue);ce(_e,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var Oe=d(_e);Xe(Oe,{class:"size-3.5","aria-hidden":"true"});var le=n(Oe,1,!0);o(_e),o(ue),h(S=>{M(m,"aria-label",t.form.prompt??"Options"),M(u,"name",`form-${t.name??""}`),He(u,f()),u.disabled=!a(),_e.disabled=S,D(le,f()?"Send your answer":`Decide${e(T)?`: ${e(T).label}`:""}`)},[()=>!a()||(f()?!e(E).trim():!e(T))]),se("change",u,()=>f(!0)),se("click",_e,()=>f()?ie():e(T)&&C(e(T).answer)),s(c,r)},b=c=>{const r=N(()=>Et(t.form.choices,e(x)));var m=Ra(),k=me(m);ze(k,21,()=>t.form.choices.calls,le=>le.id,(le,S)=>{var ae=Na(),ke=d(ae),we=d(ke);{var je=J=>{var $=Ia(),xe=X($);h(()=>D(xe,`${e(S).number??""}.`)),s(J,$)};v(we,J=>{e(S).number!==null&&J(je)})}var Ee=n(we,1,!0),et=n(Ee);{var Ye=J=>{var $=Aa();s(J,$)};v(et,J=>{e(S).required||J(Ye)})}o(ke);var tt=n(ke,2);{var at=J=>{var $=La();ze($,21,()=>e(S).options,xe=>xe.id,(xe,De)=>{var nt=Oa(),Me=d(nt);Se(Me);var lt=n(Me,2),ct=d(lt);{var yt=ye=>{var Te=Ca(),mt=me(Te),Tt=X(mt,!0),It=n(mt),At=X(It,!0);h(()=>{D(Tt,e(De).label),D(At,` · ${e(De).detail}`)}),s(ye,Te)},zt=ye=>{var Te=Ot();h(()=>D(Te,e(De).label)),s(ye,Te)};v(ct,ye=>{e(De).detail?ye(yt):ye(zt,-1)})}var Dt=n(ct);{var Mt=ye=>{var Te=bt();s(ye,Te)};v(Dt,ye=>{e(De).recommended&&ye(Mt)})}o(lt),o(nt),h(()=>{M(Me,"name",`pick-${t.name??""}-${e(S).id??""}`),Re(Me,e(De).id),He(Me,e(r)[e(S).id]===e(De).id),Me.disabled=!a()}),se("change",Me,()=>j(x,{...e(x),[e(S).id]:e(De).id},!0)),s(xe,nt)}),o($),h(xe=>ce($,1,`mt-1.5 flex gap-1.5 max-md:flex-col max-md:gap-2 ${xe??""}`),[()=>U(e(S))?"flex-wrap":"flex-col"]),s(J,$)},rt=J=>{var $=Sa();Se($),h(xe=>{Re($,e(x)[e(S).id]??""),M($,"maxlength",Nt),$.disabled=!a(),M($,"aria-label",`Your answer to ${xe??""}`)},[()=>St(e(S))||"this call"]),se("input",$,xe=>j(x,{...e(x),[e(S).id]:xe.currentTarget.value},!0)),s(J,$)};v(tt,J=>{e(S).options.length?J(at):J(rt,-1)})}o(ae),h(()=>D(Ee,e(S).prompt??"Pick one")),s(le,ae)}),o(k);var A=n(k,2),u=d(A);ce(u,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var L=d(u);Xe(L,{class:"size-3.5","aria-hidden":"true"}),ve(),o(u);var V=n(u,2);ce(V,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var de=d(V);Ue(de,{class:"size-3.5","aria-hidden":"true"}),ve(),o(V);var be=n(V,2);{var ue=le=>{var S=Ea(),ae=X(S);h(ke=>D(ae,`Pick one for ${ke??""} to decide.`),[()=>e(ee).map(Wt).join(", ")]),s(le,S)};v(be,le=>{e(ee).length&&le(ue)})}o(A);var _e=n(A,2);{var Oe=le=>{i(le)};v(_e,le=>{f()&&le(Oe)})}h(()=>{u.disabled=!a()||e(ee).length>0,V.disabled=!a(),M(V,"aria-expanded",f())}),se("click",u,()=>C({choice:"approve",picks:e(x),decided:null})),se("click",V,()=>f(!f())),s(c,m)},y=c=>{var r=Wa(),m=d(r);qe(m);var k=n(m,2),A=d(k);Xe(A,{class:"size-3.5","aria-hidden":"true"}),ve(),o(k),o(r),h(u=>{M(m,"maxlength",Pe),m.disabled=!a(),M(m,"aria-label",t.form.prompt??"Your answer"),k.disabled=u},[()=>!a()||!e(K).trim()]),Ve("submit",r,u=>{u.preventDefault();const L=e(K).trim();L&&C({choice:"approve",picks:null,decided:L})}),We(m,()=>e(K),u=>j(K,u)),s(c,r)};v(W,c=>{g()!==null?c(H):w()!==null?c(B,1):t.form.kind==="buttons"?c(O,2):t.form.kind==="choice"?c(I,3):t.form.kind==="picks"?c(b,4):c(y,-1)})}var z=n(W,2);{var P=c=>{},F=c=>{var r=Pa(),m=n(d(r),2);qe(m),o(r),h(()=>M(m,"maxlength",kt)),We(m,()=>e(re),k=>j(re,k)),s(c,r)},Q=c=>{var r=Fa(),m=d(r);Ue(m,{class:"size-3","aria-hidden":"true"}),ve(),o(r),se("click",r,()=>j(_,!0)),s(c,r)};v(z,c=>{e(Z)?c(P):e(_)?c(F,1):a()&&c(Q,2)})}var te=n(z,2);{var oe=c=>{var r=Fe(),m=me(r);{var k=u=>{xa(u,{get name(){return t.name},onDismiss:L=>{j(R,!1),t.onDismiss(L)},onCancel:()=>j(R,!1)})},A=u=>{var L=ja(),V=d(L);it(V,{class:"size-3","aria-hidden":"true"}),ve(),o(L),se("click",L,()=>j(R,!0)),s(u,L)};v(m,u=>{e(R)?u(k):u(A,-1)})}s(c,r)};v(te,c=>{t.onDismiss&&!e(Z)&&a()&&c(oe)})}o(ne),h(()=>{M(ne,"data-decision-form",t.form.kind),M(ne,"data-form-from",t.form.from)}),s(p,ne),Ce()}Ne(["click","change","input"]);var qa=l('<span class="font-normal"> </span>'),Ua=l('<dt class="text-muted-foreground">Asked</dt> <dd> </dd>',1),Xa=l('<span class="mr-1.5 rounded bg-danger/10 px-1 text-xs font-medium text-danger">Serious</span>'),Ga=l('<p class="mt-0.5 font-mono text-xs text-muted-foreground"> </p>'),Ka=l('<p class="mt-1 text-xs leading-relaxed text-muted-foreground"><!></p>'),Ba=l('<li><p class="leading-snug"><!><!></p> <!> <!></li>'),Ha=l('<ol class="space-y-2.5"></ol>'),Qa=l('<div><p class="text-xs font-medium text-muted-foreground">As Firstmate wrote it</p> <p class="mt-0.5 leading-relaxed text-muted-foreground"><!></p></div>'),Va=l('<p class="leading-relaxed whitespace-pre-line text-muted-foreground"><!></p>'),Za=l('<span class="ml-1.5 text-muted-foreground"> </span>'),Ja=l('<li><a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 break-all text-sea hover:underline"><!> </a><!></li>'),$a=l('<li class="inline-flex items-center gap-1 text-muted-foreground"><!>Findings file <span class="font-mono break-all"> </span></li>'),er=l('<ul class="flex flex-col gap-1 text-xs"><!> <!></ul>'),tr=l('<div class="mt-2 space-y-3 rounded-md border bg-background/60 p-3 text-sm" data-details-panel=""><dl class="grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">Decision</dt> <dd class="min-w-0 font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Raised by</dt> <dd class="min-w-0 break-words"> </dd></dl> <!> <!> <!> <!></div>'),ar=l('<button class="touch-target mt-3 flex cursor-pointer items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground" data-details="">Details<!><!></button> <!>',1);function xn(p,t){Ae(t,!0);let i=Ie(t,"expanded",3,!1);const a=N(()=>t.card.evidence),g=N(()=>t.card.kind==="hold"?t.card.key:`${t.card.taskId} · ${t.card.key}`),w=N(()=>t.card.question!==t.card.title?t.card.question:null),f=N(()=>t.card.askedAt?new Date(t.card.askedAt).toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}):null);var G=ar(),x=me(G),K=n(d(x));{let Y=N(()=>i()?"rotate-180":"");Yt(K,{get class(){return`size-3.5 transition-transform ${e(Y)??""}`},"aria-hidden":"true"})}var re=n(K);{var _=Y=>{var q=qa(),T=X(q);h(()=>D(T,`${e(a).findings.length?` · ${e(a).findings.length} ${e(a).findings.length===1?"finding":"findings"}`:""}${e(a).pr?" · pull request":""}`)),s(Y,q)};v(re,Y=>{i()||Y(_)})}o(x);var E=n(x,2);{var R=Y=>{var q=tr(),T=d(q),Z=n(d(T),2),ie=X(Z,!0),ee=n(Z,2);{var C=b=>{var y=Ua(),z=n(me(y),2),P=X(z,!0);h(()=>D(P,e(f))),s(b,y)};v(ee,b=>{e(f)&&b(C)})}var U=n(ee,4),fe=X(U,!0);o(T);var ne=n(T,2);{var he=b=>{var y=Ha();ze(y,21,()=>e(a).findings,z=>z.id,(z,P)=>{var F=Ba(),Q=d(F),te=d(Q);{var oe=u=>{var L=Xa();s(u,L)};v(te,u=>{e(P).serious&&u(oe)})}var c=n(te);Ge(c,{get text(){return e(P).summary}}),o(Q);var r=n(Q,2);{var m=u=>{var L=Ga(),V=X(L,!0);h(()=>D(V,e(P).where)),s(u,L)};v(r,u=>{e(P).where&&u(m)})}var k=n(r,2);{var A=u=>{var L=Ka(),V=d(L);Ge(V,{get text(){return e(P).detail}}),o(L),s(u,L)};v(k,u=>{e(P).detail&&u(A)})}o(F),s(z,F)}),o(y),s(b,y)};v(ne,b=>{e(a).findings.length&&b(he)})}var ge=n(ne,2);{var W=b=>{var y=Qa(),z=n(d(y),2),P=d(z);Ge(P,{get text(){return e(w)}}),o(z),o(y),s(b,y)};v(ge,b=>{e(w)&&b(W)})}var H=n(ge,2);{var B=b=>{var y=Va(),z=d(y);Ge(z,{get text(){return e(a).text}}),o(y),s(b,y)};v(H,b=>{e(a).text&&b(B)})}var O=n(H,2);{var I=b=>{var y=er(),z=d(y);{var P=te=>{var oe=Ja(),c=d(oe),r=d(c);qt(r,{class:"size-3.5 shrink-0","aria-hidden":"true"});var m=n(r,1,!0);o(c);var k=n(c);{var A=u=>{var L=Za(),V=X(L);h(()=>D(V,`· checks ${e(a).checks??""}`)),s(u,L)};v(k,u=>{e(a).checks&&u(A)})}o(oe),h(()=>{M(c,"href",e(a).pr.url),D(m,e(a).pr.url)}),s(te,oe)};v(z,te=>{e(a).pr&&te(P)})}var F=n(z,2);{var Q=te=>{var oe=$a(),c=d(oe);wt(c,{class:"size-3.5 shrink-0","aria-hidden":"true"});var r=n(c,2),m=X(r,!0);o(oe),h(()=>D(m,e(a).file)),s(te,oe)};v(F,te=>{e(a).file&&te(Q)})}o(y),s(b,y)};v(O,b=>{(e(a).pr||e(a).file)&&b(I)})}o(q),h(()=>{D(ie,e(g)),D(fe,t.card.origin?`Firstmate, from ${t.card.origin}`:t.card.taskTitle)}),s(Y,q)};v(E,Y=>{i()&&Y(R)})}h(()=>M(x,"aria-expanded",i())),se("click",x,function(...Y){t.onToggle?.apply(this,Y)}),s(p,G),Ce()}Ne(["click"]);var rr=l('<div class="overflow-hidden rounded-t-md border-b"><!></div>'),nr=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-preview="down"><!>Preview stopped</span>'),or=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-muted-foreground hover:text-foreground hover:underline max-md:min-h-11"> <!></a>'),sr=l('<button type="button" class="inline-flex cursor-pointer items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" aria-haspopup="dialog" data-where-preview=""><!>Open the preview</button> <!>',1),ir=l('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-board="down"><!>Board stopped</span>'),dr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" data-where-board=""><!>Open the board<!></a>'),lr=l('<div class="mt-2.5 rounded-md border bg-background/60 text-xs" data-decision-where=""><!> <div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-2"><span class="text-muted-foreground">Where it is</span> <!> <!></div></div>'),cr=l('<li class="w-48 max-w-full overflow-hidden rounded-md border bg-background" data-thumb-preview=""><!> <p class="flex items-center gap-1 border-t px-2 py-1 text-[0.7rem] text-muted-foreground"><!><span class="truncate"> </span></p></li>'),mr=l('<li><button type="button" class="block cursor-zoom-in overflow-hidden rounded-md border bg-background" aria-haspopup="dialog" data-thumb-shot=""><img class="h-20 w-32 object-cover object-top sm:h-24 sm:w-36" loading="lazy"/></button></li>'),ur=l('<ul class="mt-2.5 flex flex-wrap gap-2" aria-label="Thumbnails" data-decision-thumbs=""><!> <!></ul>'),vr=l("<!> <!> <!> <!>",1);function pr(p,t){Ae(t,!0);const i=N(()=>t.card.evidence),a=N(()=>Xt()?null:e(i).board),g=N(()=>e(i).previewTask??(e(i).preview?pt(e(i).preview):null)),w=N(()=>e(a)?pt(e(a)):null);Qe(()=>{if(e(g))return Ke.watch(e(g))}),Qe(()=>{if(e(w))return Ke.watch(e(w))});const f=N(()=>e(g)?Ke.checks[e(g)]:void 0),G=N(()=>e(w)?Ke.checks[e(w)]:void 0),x=N(()=>e(f)?.state==="down"),K=N(()=>e(G)?.state==="down"),re=N(()=>e(f)?.url??e(i).preview),_=W=>W?URL.parse(W)?.host??W:"",E=N(()=>t.card.kind==="preview"&&!!e(i).preview),R=N(()=>e(i).screenshots??[]),Y=N(()=>!e(E)&&!!e(g)&&!e(x));let q=pe(null),T=pe(null);const Z=W=>j(q,{from:W.currentTarget.getBoundingClientRect()},!0);var ie=vr(),ee=me(ie);{var C=W=>{var H=lr(),B=d(H);{var O=F=>{var Q=rr(),te=d(Q);{var oe=r=>{Be(r,{get taskId(){return e(i).previewTask},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})},c=r=>{Be(r,{get url(){return e(i).preview},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})};v(te,r=>{e(i).previewTask?r(oe):r(c,-1)})}o(Q),s(F,Q)};v(B,F=>{e(E)&&e(g)&&F(O)})}var I=n(B,2),b=n(d(I),2);{var y=F=>{var Q=Fe(),te=me(Q);{var oe=r=>{var m=nr(),k=d(m);ft(k,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(m),s(r,m)},c=r=>{var m=sr(),k=me(m),A=d(k);xt(A,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(k);var u=n(k,2);{var L=V=>{var de=or(),be=d(de,!0),ue=n(be);ot(ue,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(de),h(_e=>{M(de,"href",e(re)),M(de,"title",e(re)),D(be,_e)},[()=>_(e(i).preview)]),s(V,de)};v(u,V=>{e(re)&&V(L)})}se("click",k,Z),s(r,m)};v(te,r=>{e(x)?r(oe):r(c,-1)})}s(F,Q)};v(b,F=>{e(i).preview&&F(y)})}var z=n(b,2);{var P=F=>{var Q=Fe(),te=me(Q);{var oe=r=>{var m=ir(),k=d(m);ft(k,{class:"size-3.5 shrink-0","aria-hidden":"true"}),ve(),o(m),s(r,m)},c=r=>{var m=dr(),k=d(m);Bt(k,{class:"size-3.5 shrink-0","aria-hidden":"true"});var A=n(k,2);ot(A,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(m),h(()=>{M(m,"href",e(a)),M(m,"title",e(a))}),s(r,m)};v(te,r=>{e(K)?r(oe):r(c,-1)})}s(F,Q)};v(z,F=>{e(a)&&F(P)})}o(I),o(H),s(W,H)};v(ee,W=>{(e(i).preview||e(a))&&W(C)})}var U=n(ee,2);{var fe=W=>{var H=ur(),B=d(H);{var O=b=>{var y=cr(),z=d(y);{var P=r=>{Be(r,{get taskId(){return e(i).previewTask},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})},F=r=>{Be(r,{get url(){return e(i).preview},compact:!0,toolbar:!1,onopen:()=>j(q,{from:null},!0)})};v(z,r=>{e(i).previewTask?r(P):r(F,-1)})}var Q=n(z,2),te=d(Q);xt(te,{class:"size-3 shrink-0","aria-hidden":"true"});var oe=n(te),c=X(oe);o(Q),o(y),h(r=>D(c,`Preview · ${r??""}`),[()=>_(e(i).preview)]),s(b,y)};v(B,b=>{e(Y)&&b(O)})}var I=n(B,2);ze(I,19,()=>e(R),b=>b.url,(b,y,z)=>{var P=mr(),F=d(P),Q=X(F);o(P),h(()=>{M(F,"title",`Enlarge ${e(y).name??""}`),M(Q,"src",e(y).url),M(Q,"alt",e(y).name)}),se("click",F,()=>j(T,e(z),!0)),s(b,P)}),o(H),s(W,H)};v(U,W=>{(e(Y)||e(R).length)&&W(fe)})}var ne=n(U,2);Ut(ne,{get shots(){return e(R)},get index(){return e(T)},set index(W){j(T,W,!0)}});var he=n(ne,2);{var ge=W=>{{let H=N(()=>e(q)?.from??null);Gt(W,{get taskId(){return e(i).previewTask},get title(){return t.card.taskTitle},get url(){return e(i).preview},get from(){return e(H)},onclose:()=>j(q,null)})}};v(he,W=>{e(q)&&e(i).preview&&W(ge)})}s(p,ie),Ce()}Ne(["click"]);var fr=l('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground">Open in a new tab<!></a>'),xr=l('<p class="text-danger" role="alert"> </p>'),hr=l('<p class="text-muted-foreground">Reading it…</p>'),gr=l('<div class="chat-md"></div>'),br=l("<span> </span>"),_r=l('<pre class="font-mono text-xs leading-relaxed whitespace-pre-wrap" data-patch=""></pre>'),kr=l('<div class="flex items-center gap-2 border-b px-4 py-2.5 text-sm"><span class="min-w-0 flex-1"><span class="block truncate font-medium"> </span> <span class="block truncate font-mono text-xs text-muted-foreground"> </span></span> <!> <button type="button" class="flex size-9 cursor-pointer items-center justify-center rounded hover:bg-accent" aria-label="Close"><!></button></div> <div class="min-h-0 flex-1 overflow-y-auto px-4 py-3 text-sm sm:px-6"><!></div>',1),wr=l('<dialog class="m-auto flex max-h-[90vh] w-[min(94vw,56rem)] flex-col overflow-hidden rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60 [&:not([open])]:hidden" data-doc-modal=""><!></dialog>');function yr(p,t){Ae(t,!0);let i=Ie(t,"doc",15,null),a=pe(null),g=pe(null);const w=N(()=>i()?i().path.split("/").pop()??i().path:""),f=N(()=>!!i()&&Zt.test(i().path));Qe(()=>{e(a)&&(i()&&!e(a).open?e(a).showModal():!i()&&e(a).open&&e(a).close())}),Qe(()=>{const _=i()?.url;!_||e(g)?.url===_||(j(g,{url:_,text:null,error:null},!0),fetch(_).then(async E=>{if(!E.ok)throw new Error;const R=await E.text();e(g)?.url===_&&j(g,{url:_,text:R,error:null},!0)}).catch(()=>{e(g)?.url===_&&j(g,{url:_,text:null,error:"It could not be read."},!0)}))});const G=_=>_.startsWith("+")&&!_.startsWith("+++")?"text-success":_.startsWith("-")&&!_.startsWith("---")?"text-danger":_.startsWith("@@")?"text-sea":"";var x=wr(),K=d(x);{var re=_=>{var E=kr(),R=me(E),Y=d(R),q=d(Y),T=X(q,!0),Z=n(q,2),ie=X(Z,!0);o(Y);var ee=n(Y,2);{var C=O=>{var I=fr(),b=n(d(I));ot(b,{class:"size-3.5","aria-hidden":"true"}),o(I),h(y=>M(I,"href",y),[()=>Jt(i().path)]),s(O,I)};v(ee,O=>{e(f)&&O(C)})}var U=n(ee,2),fe=d(U);it(fe,{class:"size-4"}),o(U),o(R);var ne=n(R,2),he=d(ne);{var ge=O=>{var I=xr(),b=X(I,!0);h(()=>D(b,e(g).error)),s(O,I)},W=O=>{var I=hr();s(O,I)},H=O=>{var I=gr();Ht(I,()=>Qt(e(g).text,{docLinks:!0}),!0),o(I),s(O,I)},B=O=>{var I=_r();ze(I,21,()=>e(g).text.split(`
|
|
3
|
-
`),Lt,(b,y)=>{var z=br(),P=X(z,!0);h(F=>{ce(z,1,F),D(P,`${e(y)}
|
|
4
|
-
`)},[()=>Le(G(e(y)))]),s(b,z)}),o(I),s(O,I)};v(he,O=>{e(g)?.error?O(ge):!e(g)||e(g).text===null?O(W,1):e(f)?O(H,2):O(B,-1)})}o(ne),h(()=>{D(T,e(w)),D(ie,i().path)}),se("click",U,()=>e(a)?.close()),s(_,E)};v(K,_=>{i()&&_(re)})}o(x),Vt(x,_=>j(a,_),()=>e(a)),h(()=>M(x,"aria-label",e(w)||"Document")),Ve("close",x,()=>i(null)),se("click",x,_=>_.target===e(a)&&e(a)?.close()),s(p,x),Ce()}Ne(["click"]);var zr=l('<a title="The task this decision came from" data-decision-origin=""><!>From <span> </span></a>'),Dr=l('<button type="button" aria-haspopup="dialog"><!> <span> </span></button>'),Mr=l('<span data-decision-doc="missing"><!> <span> </span> (not found)</span>'),Tr=l('<div class="mt-2.5 flex flex-wrap items-center gap-1.5" data-decision-links=""><a title="Open the task" data-decision-task=""><!>Task <span> </span></a> <!> <!></div> <!> <!>',1);function hn(p,t){Ae(t,!0);const i=N(()=>t.card.evidence.docs??[]),a=N(()=>t.card.secondMate?t.card.secondMate.taskId??t.card.secondMate.id:t.card.taskId);let g=pe(null);const w={report:"Report",doc:"Doc",patch:"Patch"},f=C=>C.kind==="report"?C.path:C.path.split("/").pop()??C.path,G="inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11",x="min-w-0 truncate font-mono text-[0.75rem] text-muted-foreground";var K=Tr(),re=me(K),_=d(re);ce(_,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 border-brass/60 font-medium");var E=d(_);oa(E,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var R=n(E,2);ce(R,1,Le(x));var Y=X(R,!0);o(_);var q=n(_,2);{var T=C=>{var U=zr();ce(U,1,Le(G));var fe=d(U);$t(fe,{class:"size-3.5 shrink-0","aria-hidden":"true"});var ne=n(fe,2);ce(ne,1,Le(x));var he=X(ne,!0);o(U),h(ge=>{M(U,"href",`/tasks/${ge??""}`),D(he,t.card.origin)},[()=>encodeURIComponent(t.card.origin)]),s(C,U)};v(q,C=>{t.card.origin&&C(T)})}var Z=n(q,2);ze(Z,17,()=>e(i),C=>C.path,(C,U)=>{const fe=N(()=>e(U).kind==="patch"?ra:wt);var ne=Fe(),he=me(ne);{var ge=H=>{var B=Dr();ce(B,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 cursor-pointer");var O=d(B);vt(O,()=>e(fe),(z,P)=>{P(z,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var I=n(O),b=n(I);ce(b,1,Le(x));var y=X(b,!0);o(B),h(z=>{M(B,"title",`Read ${e(U).path??""}`),M(B,"data-decision-doc",e(U).kind),D(I,`${w[e(U).kind]??""} `),D(y,z)},[()=>f(e(U))]),se("click",B,()=>j(g,e(U),!0)),s(H,B)},W=H=>{var B=Mr();ce(B,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 text-muted-foreground hover:bg-background");var O=d(B);vt(O,()=>e(fe),(z,P)=>{P(z,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var I=n(O),b=n(I);ce(b,1,Le(x));var y=X(b,!0);ve(),o(B),h(z=>{D(I,`${w[e(U).kind]??""} `),D(y,z)},[()=>f(e(U))]),s(H,B)};v(he,H=>{e(U).url?H(ge):H(W,-1)})}s(C,ne)}),o(re);var ie=n(re,2);pr(ie,{get card(){return t.card}});var ee=n(ie,2);yr(ee,{get doc(){return e(g)},set doc(C){j(g,C,!0)}}),h(C=>{M(_,"href",C),D(Y,e(a))},[()=>Pt(t.card)]),s(p,K),Ce()}Ne(["click"]);var Ir=l('<div class="mt-3 grid max-w-[40rem] gap-1.5" data-decision-records=""></div>');function gn(p,t){Ae(t,!0);const i=N(()=>Kt.mentioned([...(t.card.evidence.docs??[]).filter(f=>f.kind==="report").map(f=>f.path),t.card.secondMate?"":`data/${t.card.taskId}/report.md`,t.card.origin?`data/${t.card.origin}/report.md`:"",t.card.question].join(`
|
|
5
|
-
`)).slice(0,3));var a=Fe(),g=me(a);{var w=f=>{var G=Ir();ze(G,21,()=>e(i),x=>x.kind==="record"?x.record.key:x.kind==="library"?x.doc.key:x.prototype.id,(x,K)=>{ea(x,{get doc(){return e(K)}})}),o(G),s(f,G)};v(g,f=>{e(i).length&&f(w)})}s(p,a),Ce()}export{sn as A,gn as D,dn as U,xa as a,fn as b,hn as c,xn as d,cn as e,ln as f,mn as g,un as h,Pe as i,pn as j,vn as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{d as J,e as Pe,i as e,k as te,p as Be,q as Fe,h as _,s as v,r as w,t as x,a as l,b as Ue,j as P,aA as Ke,o as X,x as _e,f as G,c as u,n as we}from"./Jk-ASPRO.js";import{d as We,s as q,a as se}from"./DTApYZoW.js";import{i as m}from"./BEVJas-l.js";import{k as Ye}from"./CsFoEe5t.js";import{s as ee,a as k,c as Ve,j as be}from"./DNP6oCAK.js";import{b as Le,M as $e}from"./BbLERgY7.js";import{b as Xe}from"./DLfKkHEy.js";import{s as qe,r as Ge,p as B}from"./DQWg__9S.js";import{c as Je,r as Oe}from"./V9uGi6jc.js";import{a as le,f as Qe}from"./BdjCJ4uL.js";import{C as Ze}from"./fE4moRZ8.js";import{R as Ie}from"./BgsPzvvM.js";import{E as xe}from"./gEZHG5dd.js";import{M as et}from"./BK_MXWSk.js";import{I as tt}from"./DE0e4nJ8.js";var at=new Set(["$$slots","$$events","$$legacy"]);function Ae(n,t){let a=Ge(t,at);const o={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};tt(n,qe(()=>a,{get icon(){return o}}))}const rt=15e3,nt=n=>`url:${n}`,it=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,ot=5e3;class st{#e=J(Pe({}));get checks(){return e(this.#e)}set checks(t){te(this.#e,t,!0)}#t=J(Pe({}));get failed(){return e(this.#t)}set failed(t){te(this.#t,t,!0)}watching=new Map;running=new Map;unlisten=null;stopped(t){return this.checks[t]?.state==="down"}watch(t){const a=this.watching.get(t);a?a.count++:(this.watching.set(t,{count:1,timer:null}),this.refresh(t)),this.listen();let o=!1;return()=>{if(o)return;o=!0;const y=this.watching.get(t);!y||--y.count>0||(y.timer&&clearTimeout(y.timer),this.watching.delete(t),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(t){const a=this.running.get(t);if(a)return a;const o=this.load(t).finally(()=>{this.running.delete(t),this.schedule(t)});return this.running.set(t,o),o}clear(){for(const t of this.watching.values())t.timer&&clearTimeout(t.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(t){try{const a=await fetch(it(t));if(!a.ok)throw new Error(String(a.status));this.checks[t]=await a.json(),this.failed[t]=!1}catch{this.failed[t]=!0}}schedule(t){const a=this.watching.get(t);if(!a)return;a.timer&&clearTimeout(a.timer);const o=this.checks[t]?.state==="live"?rt:ot;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(t)},o)}listen(){if(this.unlisten)return;const t=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",t),document.addEventListener("visibilitychange",t),this.unlisten=()=>{window.removeEventListener("focus",t),document.removeEventListener("visibilitychange",t)}}}const ce=new st,Zt=500,ae=n=>n.replace(/\s+/g," ").trim(),lt=(n,t)=>n.length>t?n.slice(0,t-1).trimEnd()+"…":n;function ke(n){const t=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return t==="middle"&&!a?"the middle":`the ${t}${a?` ${a}`:""}`}const ct={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function dt(n,t,a){const o=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(o&&o.tagName!=="HTML"&&o.tagName!=="BODY"){const y=o.tagName.toLowerCase(),E=o.getAttribute("role")==="button"?"button":ct[y]??"part of the page",T=lt(ae(o.value||o.getAttribute("aria-label")||o.getAttribute("alt")||o.textContent||""),60);return{kind:"element",label:T?`the “${T}” ${E}`:`a ${E} near ${ke(t)}`,detail:`<${y}>${T?` “${T}”`:""}, near ${ke(t)} of the page`}}return{kind:"spot",label:`a spot near ${ke(t)} of the page`,detail:`${Math.round(t.x*100)}% across and ${Math.round(t.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const ut=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,ht=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,vt="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.",pt=n=>n.flatMap((t,a)=>[`${a+1}. ${ae(t.text)}`,...t.points&&ae(t.points)?[` Points at: ${ae(t.points)}`]:[]]);function It(n,t,a){return[`Preview feedback for ${n.id} (${ae(n.title)}), sent together from the Preview tab (${t}):`,...pt(a.map(o=>({text:o.text,points:o.points?.label??null}))),"",vt].join(`
|
|
2
|
-
`)}function ea(n){const t=n.replace(/\r\n?/g,`
|
|
3
|
-
`).split(`
|
|
4
|
-
`),a=ut.exec(t[0]??""),o=a?null:ht.exec(t[0]??""),y=a??o;if(!y)return null;const E=[];for(const T of t.slice(1)){const F=/^\d+\. (.+)$/.exec(T);if(F){E.push({text:F[1],points:null});continue}const re=/^ {3}Points at: (.+)$/.exec(T);re&&E.length&&(E[E.length-1].points=re[1])}return E.length?{taskId:y[1],title:y[2],url:a?a[3]:null,plugin:o?{id:o[4],name:o[3],subject:o[5]??null}:null,items:E}:null}var ft=u('<span class="inline-flex shrink-0 items-center gap-1" data-preview-translated=""><!><span class="max-md:sr-only"> </span></span>'),mt=u('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),gt=u('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),_t=u('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),wt=u('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!> <!></div>'),bt=u('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),xt=u('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),kt=u("<!> <!>",1),yt=u('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),zt=u('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),Ct=u('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),Mt=u('<span class="block text-xs"> </span>'),Et=u('<a target="_blank" rel="noreferrer" class="relative z-10 mt-1 inline-flex items-center gap-1 text-xs text-sea hover:underline" data-preview-newtab="">Open in new tab<!></a>'),Pt=u('<a class="relative z-10 mt-1 inline-block text-xs text-sea hover:underline" data-preview-report="">Open the report</a>'),Lt=u('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!> <!> <!></p></div>'),$t=u('<p class="text-sm"> </p>'),Ot=u('<a target="_blank" rel="noreferrer" class="mt-2 inline-flex items-center gap-1 text-sm text-sea hover:underline" data-preview-newtab="">Open in new tab<!></a>'),At=u('<a class="mt-2 inline-block text-sm text-sea hover:underline" data-preview-report="">Open the report</a>'),Ht=u('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p> <!> <!>',1),St=u('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),Tt=u("<div><!> <div><!></div></div>");function ta(n,t){Be(t,!0);let a=B(t,"taskId",3,null),o=B(t,"url",3,null),y=B(t,"compact",3,!1),E=B(t,"fill",3,!1),T=B(t,"desktop",3,!1),F=B(t,"toolbar",3,!0),re=B(t,"pointing",3,!1),de=B(t,"pin",3,null),ue=J(null);function He(p){const d=p.currentTarget.getBoundingClientRect(),L=p.clientX-d.left,S=p.clientY-d.top;let C=null;const R=e(pe)?e(U):1;try{C=e(ue)?.contentDocument?.elementFromPoint(L/R,S/R)??null}catch{C=null}const N={x:d.width?L/d.width:0,y:d.height?S/d.height:0};t.onpoint?.(dt(C,N,{w:Math.round(d.width),h:Math.round(d.height)}),N)}const ne={w:1280,h:800};let ye=J(0),he=J(0),ze=J(0);const ie=P(()=>a()??nt(o()??""));Fe(()=>ce.watch(e(ie)));const g=P(()=>ce.checks[e(ie)]??null),ve=P(()=>!!ce.failed[e(ie)]),D=P(()=>e(g)?.state==="live"),j=P(()=>e(g)?.url??null),z=P(()=>e(j)&&e(g)?le.view(e(j)):null),Ce=P(()=>e(z)?Qe(e(z),location.origin):""),U=P(()=>e(he)?e(he)/ne.w:0),pe=P(()=>E()&&T()&&e(U)>0&&e(U)<1);function Me(){Ke(ye),ce.refresh(e(ie))}var Se={reload:Me},Q=Tt(),Ee=_(Q);{var Te=p=>{var d=wt(),L=_(d),S=X(L,!0),C=v(L,2);{var R=c=>{var s=ft(),i=_(s);Ze(i,{class:"size-3.5","aria-hidden":"true"});var r=v(i),b=X(r,!0);w(s),x($=>{k(s,"title",$),q(b,le.remote?"via Wheelhouse Cloud":"translated")},[()=>le.where(e(z))]),l(c,s)};m(C,c=>{e(z)&&e(j)&&e(z)!==e(j)&&le.translating&&c(R)})}var N=v(C,2);{var I=c=>{var s=mt(),i=_(s);Ie(i,{class:"size-3.5"}),w(s),x(()=>{k(s,"aria-label",e(D)?"Reload the preview":"Check the preview again"),k(s,"title",e(D)?"Reload":"Check again")}),se("click",s,Me),l(c,s)};m(N,c=>{(e(D)||e(g)?.state==="blocked"||e(g)?.state==="down")&&c(I)})}var A=v(N,2);{var M=c=>{var s=gt(),i=v(_(s));xe(i,{class:"size-3.5","aria-hidden":"true"}),w(s),x(()=>k(s,"href",e(z))),l(c,s)};m(A,c=>{(e(D)||e(g)?.state==="blocked")&&c(M)})}var h=v(A,2);{var H=c=>{var s=_t(),i=_(s);$e(i,{class:"size-3.5","aria-hidden":"true"}),we(),w(s),se("click",s,function(...r){t.onfullscreen?.apply(this,r)}),l(c,s)};m(h,c=>{t.onfullscreen&&e(D)&&c(H)})}w(d),x(()=>{k(L,"title",e(j)??void 0),q(S,e(j)??"Live preview")}),l(p,d)};m(Ee,p=>{F()&&p(Te)})}var Z=v(Ee,2),Re=_(Z);{var Ne=p=>{var d=_e(),L=G(d);Ye(L,()=>`${e(z)} ${e(ye)}`,S=>{var C=_e(),R=G(C);{var N=A=>{var M=kt(),h=G(M);{var H=i=>{var r=bt();x(()=>{k(r,"src",e(z)),k(r,"title",`Live preview of ${e(j)??""}`),k(r,"sandbox",e(Ce)),r.inert=!!t.onopen,ee(r,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${t.onopen?"pointer-events-none":""}`),be(r,`width:${ne.w}px;height:${ne.h}px;transform:scale(${e(U)??""})`)}),l(i,r)};m(h,i=>{e(U)&&i(H)})}var c=v(h,2);{var s=i=>{var r=xt(),b=_(r),$=_(b);$e($,{class:"size-3.5","aria-hidden":"true"}),we(),w(b),w(r),se("click",r,function(...K){t.onopen?.apply(this,K)}),l(i,r)};m(c,i=>{t.onopen&&i(s)})}l(A,M)},I=A=>{var M=Ct(),h=G(M);Xe(h,i=>te(ue,i),()=>e(ue));var H=v(h,2);{var c=i=>{var r=yt(),b=_(r),$=_(b);et($,{class:"size-4","aria-hidden":"true"}),we(),w(b),w(r),se("click",r,He),l(i,r)},s=i=>{var r=zt();x(()=>be(r,`left:${de().x*100}%;top:${de().y*100}%`)),l(i,r)};m(H,i=>{re()?i(c):de()&&i(s,1)})}x(()=>{k(h,"src",e(z)),k(h,"title",`Live preview of ${e(j)??""}`),k(h,"sandbox",e(Ce)),ee(h,1,Ve(e(pe)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),be(h,e(pe)?`width:${ne.w}px;height:${e(ze)/e(U)}px;transform:scale(${e(U)})`:void 0)}),l(A,M)};m(R,A=>{y()?A(N):A(I,-1)})}l(S,C)}),l(p,d)},De=p=>{const d=P(()=>!e(g)&&!e(ve)),L=P(()=>e(d)?"Checking the preview…":e(ve)?"Could not check the preview":e(g)?.state==="down"?"Preview stopped":e(g)?.state==="blocked"?"Preview cannot be embedded":e(g)?.state==="refused"?"Preview not shown here":"No live preview reported"),S=P(()=>e(d)?"":e(ve)?"Wheelhouse did not answer; it will try again.":e(g)?.state==="blocked"?`${e(g).reason} Open it in a new tab instead.`:e(g)?.reason??""),C=P(()=>e(g)?.state==="down"&&a()?Je.recordFor(a()):null);var R=_e(),N=G(R);{var I=M=>{var h=Lt(),H=_(h);{var c=f=>{Ae(f,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};m(H,f=>{e(d)||f(c)})}var s=v(H,2),i=_(s),r=X(i,!0),b=v(i,2);{var $=f=>{var O=Mt(),W=X(O,!0);x(()=>q(W,e(S))),l(f,O)};m(b,f=>{e(S)&&f($)})}var K=v(b,2);{var fe=f=>{var O=Et(),W=v(_(O));xe(W,{class:"size-3","aria-hidden":"true"}),w(O),x(()=>k(O,"href",e(z))),l(f,O)};m(K,f=>{e(g)?.state==="blocked"&&e(z)&&!F()&&f(fe)})}var oe=v(K,2);{var me=f=>{var O=Pt();x(W=>k(O,"href",W),[()=>Oe(e(C).key)]),l(f,O)};m(oe,f=>{e(C)&&f(me)})}w(s),w(h),x(()=>{ee(i,1,`font-medium ${e(d)?"":"text-foreground"}`),q(r,e(L))}),l(M,h)},A=M=>{var h=St(),H=_(h),c=_(H);{var s=r=>{var b=$t(),$=X(b,!0);x(()=>q($,e(L))),l(r,b)},i=r=>{var b=Ht(),$=G(b);Ae($,{class:"mx-auto size-6","aria-hidden":"true"});var K=v($,2),fe=X(K,!0),oe=v(K,2),me=X(oe,!0),f=v(oe,2);{var O=Y=>{var V=Ot(),ge=v(_(V));xe(ge,{class:"size-3.5","aria-hidden":"true"}),w(V),x(()=>k(V,"href",e(z))),l(Y,V)};m(f,Y=>{e(g)?.state==="blocked"&&e(z)&&!F()&&Y(O)})}var W=v(f,2);{var je=Y=>{var V=At();x(ge=>k(V,"href",ge),[()=>Oe(e(C).key)]),l(Y,V)};m(W,Y=>{e(C)&&Y(je)})}x(()=>{q(fe,e(L)),q(me,e(S))}),l(r,b)};m(c,r=>{e(d)?r(s):r(i,-1)})}w(H),w(h),l(M,h)};m(N,M=>{y()?M(I):M(A,-1)})}l(p,R)};m(Re,p=>{e(D)&&e(z)?p(Ne):p(De,-1)})}return w(Z),w(Q),x(()=>{ee(Q,1,`min-w-0 ${E()?"flex h-full flex-col":""}`),k(Q,"data-live-preview",e(g)?.state??"checking"),ee(Z,1,`group relative w-full overflow-hidden bg-muted/40 ${F()?"mt-1.5 rounded-lg border":""} ${y()?e(D)?"aspect-[16/10]":"":E()?"min-h-0 flex-1":e(D)?"h-[70vh] min-h-80":"h-40"}`)}),Le(Z,"clientWidth",p=>te(he,p)),Le(Z,"clientHeight",p=>te(ze,p)),l(n,Q),Ue(Se)}We(["click"]);export{ta as L,Ae as M,Zt as a,It as b,ea as c,ce as p,nt as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
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"./QOxfJswt.js";import{a as P,c as Q}from"./BqTq4oc1.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as k,s as y}from"./BqTq4oc1.js";import{h as S,r as C}from"./BUYzAikv.js";import{e as M,a as $}from"./nqsqhzVw.js";const d=":firstmate",c="all",m=n=>n.secondMate?.id??d;function I(n,a){if(n.secondMate)return n.secondMate.id;const s=a.find(i=>i.id===n.taskId);return s?m(s):d}function O(n){if(n.length<2)return"";const a=n[0].match(/[-_.][^-_.]+$/)?.[0];return a&&n.every(s=>s.endsWith(a)&&s.length>a.length)?a:""}function W(n,a=[]){const s=[...new Set(a.map(t=>t.crew))].filter(t=>t!==d&&!n.some(l=>l.id===t)),i=O([...n.map(t=>t.id),...s]),r=t=>i?t.slice(0,-i.length):t;return[{id:d,label:"Firstmate",short:"Firstmate",mate:null},...n.map(t=>({id:t.id,label:t.id,short:r(t.id),mate:t})),...s.map(t=>({id:t,label:t,short:r(t),mate:null}))]}const Y=(n,a)=>n&&a.some(s=>s.id===n)?n:c,T=(n,a)=>n===c||n===a;function x(n){const a=n.passage.steps[n.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"danger",tone:"danger"}:n.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:n.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:n.status==="lost"||n.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:n.attention?.owner==="captain"?n.attention.kind==="review"?n.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:n.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:n.addressingReview?{label:k(n)??"Changes requested",icon:n.busy?"sailing":"anchored",tone:n.busy?"busy":"muted"}:n.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:n.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:n.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:y(n)?{label:`Checks: ${n.pipeline.label}`,icon:"lighthouse",tone:n.busy?"busy":"muted"}:n.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const A={label:"Your call",icon:"flag",tone:"sea"};function _(n,a){const s=n?Date.parse(n):NaN;if(Number.isNaN(s))return"";const i=Math.max(0,(a-s)/1e3);if(i<60)return"now";const r=Math.round(i/60);if(r<60)return`${r}m`;const t=Math.round(r/60);return t<24?`${t}h`:`${Math.round(t/24)}d`}const o=(n,a)=>({kind:"task",key:`task:${n.id}`,task:n,text:a,crew:m(n),at:n.mergedAt??n.activity?.at??n.since});function q(n,a,s,i=null){const r=e=>!i||e===i,t=S(n,a),l=(s?.shown??[]).filter(e=>M(e)&&!$(e)&&r(e.projectId)),f=e=>e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,p=new Set((s?.all??[]).filter(e=>e.kind==="hold").map(f)),b=new Set(l.filter(e=>e.kind==="merge").map(f)),u=new Set(t.stepFailed.map(e=>e.id)),g=t.stepFailed.filter(e=>!t.needsYou.includes(e)),w=t.needsYou.filter(e=>!(e.attention?.kind==="decision"&&p.has(e.id))&&!(e.attention?.kind==="review"&&b.has(e.id))),h=e=>e.attention?.kind==="decision"&&e.attention.text||e.shortTitle;return{h:t,needs:[...l.map(e=>({kind:"decision",key:`decision:${e.id}`,card:e,text:e.title,crew:I(e,n),at:e.askedAt})),...g.map(e=>o(e,e.shortTitle)),...w.map(e=>o(e,h(e)))],withFirstmate:t.waitingOnFirstmate.filter(e=>!u.has(e.id)).map(e=>o(e,h(e))),under:C(t).filter(e=>!u.has(e.id)).map(e=>o(e,e.shortTitle)),next:t.queued.map(e=>o(e,e.shortTitle)),landed:t.landedRecent.filter(e=>!u.has(e.id)).map(e=>o(e,e.shortTitle))}}function E(n,a,s){return a.filter(i=>T(s,i.id)).map(i=>({crew:i,lines:n.filter(r=>r.crew===i.id)})).filter(i=>i.lines.length||s!==c)}export{c as A,A as D,d as O,Y as a,E as b,W as c,q as d,T as i,x as l,_ as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
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"./BqTq4oc1.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{t as m,a as d,c as u,p as I,f as J,i as e,s as $,b as K,j as v,o as W,h as F,r as x,x as ae}from"./Jk-ASPRO.js";import{s as M}from"./DTApYZoW.js";import{i as _}from"./BEVJas-l.js";import{s as b,e as Y,a as y,j as q}from"./DNP6oCAK.js";import{t as re}from"./DE0e4nJ8.js";import{p as N}from"./DQWg__9S.js";import{l as oe}from"./BqTq4oc1.js";import{p as se}from"./Z0GxSwEl.js";import{t as ne,d as ie,a as de}from"./DrX7Uhja.js";import{S as le}from"./voMZUjSQ.js";var ue=u('<span aria-hidden="true"></span>');function pe(p,s){let n=N(s,"class",3,"");var a=ue();m(()=>b(a,1,`pointer-events-none absolute inset-0 rounded-full opacity-40 motion-safe:animate-ping ${n()??""}`)),d(p,a)}var ce=u('<p class="mb-1.5 text-xs font-medium text-muted-foreground" data-run-label=""> </p>'),G=u("<span></span>"),me=u("<span><!></span>"),fe=u('<span class="relative z-10 mt-[2px] size-2 rounded-full border border-dashed border-muted-foreground/50 bg-card"></span>'),ve=u('<li class="relative flex min-w-0 flex-col items-center"><!> <!> <span> </span></li>'),ge=u('<ol class="grid"></ol>'),he=u('<li class="min-w-0"><div></div> <p> </p></li>'),be=u('<ol class="grid gap-2"></ol>'),xe=u("<!> <!>",1);function Ee(p,s){I(s,!0);let n=N(s,"size",3,"card");const a=v(()=>s.task.passage),k=v(()=>oe(s.task)),z=v(()=>de(s.task)),j=v(()=>`${e(k)?`Run ${e(k).n}, `:""}Step ${e(a).current+1} of ${e(a).steps.length}: ${e(a).steps[e(a).current]?.label??""}${e(a).steps[e(a).current]?.failed?", failed":""}${s.task.busy?", in progress":""}`),w=r=>r?"bg-danger":ie[e(z)],R=r=>r?"text-danger":ne[e(z)];var f=xe(),S=J(f);{var C=r=>{var o=ce(),c=W(o);m(()=>M(c,`Run ${e(k).n??""}`)),d(r,o)};_(S,r=>{e(k)&&r(C)})}var E=$(S,2);{var A=r=>{var o=ge();Y(o,23,()=>e(a).steps,c=>c.key,(c,t,g)=>{var h=ve(),T=F(h);{var H=i=>{var l=G();m(()=>b(l,1,`absolute top-[5px] right-1/2 left-[-50%] ${e(g)<=e(a).current?"h-0.5 bg-foreground/50":"h-0 border-t border-dotted border-input"}`)),d(i,l)};_(T,i=>{e(g)>0&&i(H)})}var L=$(T,2);{var Q=i=>{var l=me(),Z=F(l);{var ee=B=>{{let te=v(()=>w(e(t).failed));pe(B,{get class(){return e(te)}})}};_(Z,B=>{s.task.busy&&B(ee)})}x(l),m(B=>b(l,1,`relative z-10 size-3 rounded-full ring-[3px] ring-card ${B??""}`),[()=>w(e(t).failed)]),re(1,l,()=>se),d(i,l)},U=i=>{var l=fe();d(i,l)},V=i=>{var l=G();m(()=>b(l,1,`relative z-10 mt-[2px] size-2 rounded-full ${e(t).state==="done"?"bg-foreground/50":"border border-border bg-card"}`)),d(i,l)};_(L,i=>{e(t).state==="current"?i(Q):e(t).state==="skipped"?i(U,1):i(V,-1)})}var O=$(L,2),X=W(O,!0);x(h),m(i=>{y(h,"title",e(t).note??void 0),b(O,1,`mt-1.5 max-w-full truncate text-xs leading-none ${i??""}`),M(X,e(t).short)},[()=>e(t).state==="current"?`font-semibold ${R(e(t).failed)}`:e(t).state==="done"?"text-muted-foreground":e(t).state==="skipped"?"text-muted-foreground italic line-through":"text-muted-foreground italic"]),d(c,h)}),x(o),m(()=>{q(o,`grid-template-columns: repeat(${e(a).steps.length??""}, minmax(0, 1fr))`),y(o,"aria-label",e(j))}),d(r,o)},D=r=>{var o=be();Y(o,21,()=>e(a).steps,c=>c.key,(c,t)=>{var g=he(),h=F(g),T=$(h,2),H=W(T);x(g),m(L=>{y(g,"title",e(t).note??void 0),b(h,1,`h-1.5 rounded-full transition-colors duration-500 ${L??""}`),b(T,1,`mt-2 truncate text-xs leading-tight ${e(t).state==="current"?`font-medium ${e(t).failed?"text-danger":"text-foreground"}`:e(t).state==="done"?"text-muted-foreground":"text-muted-foreground italic"} ${e(t).state==="skipped"?"line-through":""}`),M(H,`${e(t).label??""}${e(t).failed?" failed":""}`)},[()=>e(t).state==="done"?"bg-foreground/60":e(t).state==="current"?w(e(t).failed):e(t).state==="skipped"?"border border-dashed border-border":"bg-border"]),d(c,g)}),x(o),m(()=>{q(o,`grid-template-columns: repeat(${e(a).steps.length??""}, minmax(0, 1fr))`),y(o,"aria-label",e(j))}),d(r,o)};_(E,r=>{n()==="card"?r(A):r(D,-1)})}d(p,f),K()}const _e=/^fy-([a-z0-9][a-z0-9-]{0,62})$/;function P(p){return p&&_e.exec(p)?.[1]||null}function Le(p){const s=P(p);return s?`via Fleetyard · ${s}`:`on ${p??"another host"}`}globalThis.process?.platform;var ke=u('<span class="font-normal opacity-70" data-second-mate-host=""> </span>'),$e=u('<span class="inline-flex max-w-full min-w-0 items-center gap-1 rounded-sm bg-brass/10 px-1.5 text-xs leading-[1.15rem] font-medium text-brass"><!><span class="truncate"> <!></span></span>');function We(p,s){I(s,!0);const n=v(()=>s.task.secondMate??null),a=v(()=>P(e(n)?.host)),k=v(()=>e(a)?`${e(a)}, through Fleetyard`:e(n)?.host??"another host");var z=ae(),j=J(z);{var w=R=>{var f=$e(),S=F(f);le(S,{class:"size-3 shrink-0","aria-hidden":"true"});var C=$(S),E=F(C,!0),A=$(E);{var D=r=>{var o=ke(),c=W(o,!0);m(()=>M(c,` · ${e(a)??e(n).host}`)),d(r,o)};_(A,r=>{e(n).where==="remote"&&e(n).host&&r(D)})}x(C),x(f),m(()=>{y(f,"title",e(n).where==="remote"?`Runs on second mate ${e(n).id}, on ${e(k)}`:`Runs on second mate ${e(n).id}, on this computer`),y(f,"data-second-mate-task",e(n).id),M(E,e(n).id)}),d(R,f)};_(j,R=>{e(n)&&R(w)})}d(p,z),K()}export{pe as B,Ee as S,We as W,Le as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as ee}from"./QOxfJswt.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,a as l,c as u,p as se,x as L,f as W,i,o as D,b as oe}from"./Jk-ASPRO.js";import{s as z}from"./DTApYZoW.js";import{i as g}from"./BEVJas-l.js";import{s as A,e as H,c as J,b as re,d as ie,r as ne,a as le}from"./DNP6oCAK.js";import{L as Y}from"./D73wi9-q.js";import{C as B}from"./c9k4nDgn.js";import{b as pe}from"./CNxxt--f.js";import{p as G}from"./DQWg__9S.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ne=()=>d("/api/plugins/updates",null),Oe=e=>d("/api/plugins/updates",e),Te=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),Ae=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Fe=(e,a)=>d("/api/plugins/inspect",a,e),Le=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),De=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function He(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const Je=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Ye=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Be=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
|
|
2
|
-
change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Ge(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var q=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(q):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var U=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(U)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ke=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true"> *</span>'),fe=u('<span class="text-muted-foreground"> (optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Me(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),q=h(S,!0),E=f(q);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var U=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),C=W(m);H(C,17,()=>i(r).options,y=>y.value,(y,F)=>{var j=_e(),$=D(j,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(j.value=(j.__value=T)??"")}),l(y,j)}),l(c,m)},Z=c=>{var m=he(),C=W(m);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(U,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(U,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(q,i(r).title)),l(R,_)}),l(e,w),oe()}export{Ge as C,Me as S,Ke as a,He as b,Je as c,ve as d,Fe as e,Oe as f,Ye as g,We as h,Le as i,Be as l,Te as m,Ne as p,Ae as r,De as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as F}from"./BUYzAikv.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"./xTuQT2it.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"./QOxfJswt.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,i as n,k as i,e as f}from"./Jk-ASPRO.js";import{p as d}from"./xTuQT2it.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};
|