@chrisjowen/wheelhouse 0.22.5 → 0.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{BIDYlDeR.js → 6LK584eW.js} +1 -1
- package/build/client/_app/immutable/chunks/6LK584eW.js.br +0 -0
- package/build/client/_app/immutable/chunks/6LK584eW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DdD2DUSn.js → 9-_TZern.js} +1 -1
- package/build/client/_app/immutable/chunks/9-_TZern.js.br +2 -0
- package/build/client/_app/immutable/chunks/9-_TZern.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B_9oGok_.js → B4BCO8_v.js} +1 -1
- package/build/client/_app/immutable/chunks/B4BCO8_v.js.br +0 -0
- package/build/client/_app/immutable/chunks/B4BCO8_v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CCNfPCjE.js → BCm9P2vn.js} +1 -1
- package/build/client/_app/immutable/chunks/BCm9P2vn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BCm9P2vn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cz6s8vAU.js → BPRVAIy6.js} +1 -1
- package/build/client/_app/immutable/chunks/BPRVAIy6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPRVAIy6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D3vMdNpQ.js → BjKSCYOc.js} +1 -1
- package/build/client/_app/immutable/chunks/BjKSCYOc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjKSCYOc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C0XRIeH0.js → BmJn9UH9.js} +1 -1
- package/build/client/_app/immutable/chunks/BmJn9UH9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmJn9UH9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{tVK81Wo7.js → BormTmQ8.js} +1 -1
- package/build/client/_app/immutable/chunks/BormTmQ8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BormTmQ8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D_t5aTvb.js → BtuWQ3NL.js} +1 -1
- package/build/client/_app/immutable/chunks/BtuWQ3NL.js.br +0 -0
- package/build/client/_app/immutable/chunks/BtuWQ3NL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{nb8rTQbZ.js → BxEo-3qj.js} +1 -1
- package/build/client/_app/immutable/chunks/BxEo-3qj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BxEo-3qj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DKmmKKWI.js → By5LN09n.js} +1 -1
- package/build/client/_app/immutable/chunks/By5LN09n.js.br +0 -0
- package/build/client/_app/immutable/chunks/By5LN09n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{HxCbb4z3.js → C0iS9LEC.js} +1 -1
- package/build/client/_app/immutable/chunks/C0iS9LEC.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0iS9LEC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B1Ason0h.js → C2pvsFSz.js} +1 -1
- package/build/client/_app/immutable/chunks/C2pvsFSz.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2pvsFSz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{06NYrole.js → CDKs55ee.js} +1 -1
- package/build/client/_app/immutable/chunks/CDKs55ee.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDKs55ee.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BPodyZX-.js → CF48ZaJf.js} +1 -1
- package/build/client/_app/immutable/chunks/CF48ZaJf.js.br +0 -0
- package/build/client/_app/immutable/chunks/CF48ZaJf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{S3dTIgXO.js → CN-QAmsr.js} +1 -1
- package/build/client/_app/immutable/chunks/CN-QAmsr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CN-QAmsr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bk_vkVPR.js → CbiqPRp4.js} +1 -1
- package/build/client/_app/immutable/chunks/CbiqPRp4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbiqPRp4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BewcaM3i.js → Cid61cQS.js} +2 -2
- package/build/client/_app/immutable/chunks/Cid61cQS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cid61cQS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{EiS0rhjr.js → Cy13iexy.js} +1 -1
- package/build/client/_app/immutable/chunks/Cy13iexy.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cy13iexy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CJ_zP9aP.js → D3axFSng.js} +1 -1
- package/build/client/_app/immutable/chunks/D3axFSng.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3axFSng.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DKlxq08T.js → DjVT8Vdk.js} +1 -1
- package/build/client/_app/immutable/chunks/DjVT8Vdk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjVT8Vdk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DwbTjpdU.js → DmHLj4sk.js} +1 -1
- package/build/client/_app/immutable/chunks/DmHLj4sk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmHLj4sk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkYzvlzG.js → Dy0QCcYi.js} +1 -1
- package/build/client/_app/immutable/chunks/Dy0QCcYi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy0QCcYi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CvnA42KE.js → IiFQttgl.js} +1 -1
- package/build/client/_app/immutable/chunks/IiFQttgl.js.br +0 -0
- package/build/client/_app/immutable/chunks/IiFQttgl.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.BYCz6Sud.js → app.BzwpipVo.js} +2 -2
- package/build/client/_app/immutable/entry/app.BzwpipVo.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BzwpipVo.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CD_kBgvT.js +1 -0
- package/build/client/_app/immutable/entry/start.CD_kBgvT.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CD_kBgvT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.B-iFwXkB.js → 0.Dhq3WtUH.js} +1 -1
- package/build/client/_app/immutable/nodes/0.Dhq3WtUH.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Dhq3WtUH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BmQ5L6gl.js → 1.yHMjTNFd.js} +1 -1
- package/build/client/_app/immutable/nodes/1.yHMjTNFd.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.yHMjTNFd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.xV6yNabZ.js → 10.66I7WPUt.js} +1 -1
- package/build/client/_app/immutable/nodes/10.66I7WPUt.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.66I7WPUt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.GVCOI3ma.js → 11.CXZNAZjz.js} +1 -1
- package/build/client/_app/immutable/nodes/11.CXZNAZjz.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CXZNAZjz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.DhYFOVoP.js → 12.BWkGQW68.js} +1 -1
- package/build/client/_app/immutable/nodes/12.BWkGQW68.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BWkGQW68.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.B-vfxaQx.js → 13.BCSIdGf1.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BCSIdGf1.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BCSIdGf1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.Bd1B9WvF.js → 14.C4w338BK.js} +1 -1
- package/build/client/_app/immutable/nodes/14.C4w338BK.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C4w338BK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.oS-QEFZo.js → 15.GzfNuiIx.js} +1 -1
- package/build/client/_app/immutable/nodes/15.GzfNuiIx.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.GzfNuiIx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.DgiO8TOd.js → 16.BY0OGPl3.js} +1 -1
- package/build/client/_app/immutable/nodes/16.BY0OGPl3.js.br +0 -0
- package/build/client/_app/immutable/nodes/{16.DgiO8TOd.js.gz → 16.BY0OGPl3.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{17.5qy13_B4.js → 17.CAads_mj.js} +1 -1
- package/build/client/_app/immutable/nodes/17.CAads_mj.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CAads_mj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{18.CA4e4G5Q.js → 18.CQ5rMFpj.js} +1 -1
- package/build/client/_app/immutable/nodes/18.CQ5rMFpj.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.CQ5rMFpj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.e4b8xXj0.js → 19.DoJhF8cr.js} +1 -1
- package/build/client/_app/immutable/nodes/19.DoJhF8cr.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DoJhF8cr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.Bf1fGTeR.js → 2.D4BBcUZD.js} +1 -1
- package/build/client/_app/immutable/nodes/2.D4BBcUZD.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D4BBcUZD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DN5K9vD4.js → 20.CK_5DmRX.js} +1 -1
- package/build/client/_app/immutable/nodes/20.CK_5DmRX.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CK_5DmRX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.C643Epvv.js → 21.tAgxJC5p.js} +1 -1
- package/build/client/_app/immutable/nodes/21.tAgxJC5p.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.tAgxJC5p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.B_2zPEiy.js → 22.D5HIwciL.js} +1 -1
- package/build/client/_app/immutable/nodes/22.D5HIwciL.js.br +0 -0
- package/build/client/_app/immutable/nodes/{22.B_2zPEiy.js.gz → 22.D5HIwciL.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{24.COBGvV9n.js → 24.DglV_zOB.js} +1 -1
- package/build/client/_app/immutable/nodes/24.DglV_zOB.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DglV_zOB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.DJr6tC_E.js → 26.bNd_Dtqo.js} +1 -1
- package/build/client/_app/immutable/nodes/26.bNd_Dtqo.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.bNd_Dtqo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.D9XQZDvO.js → 27.BfZYpgpu.js} +1 -1
- package/build/client/_app/immutable/nodes/27.BfZYpgpu.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.BfZYpgpu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.Ak-I9CMX.js → 28.CvG4tqfv.js} +1 -1
- package/build/client/_app/immutable/nodes/28.CvG4tqfv.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CvG4tqfv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.CMBRS4HZ.js → 29.vBXAqAaG.js} +1 -1
- package/build/client/_app/immutable/nodes/29.vBXAqAaG.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.vBXAqAaG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.B46fsCV_.js → 3.DwPoOq5S.js} +1 -1
- package/build/client/_app/immutable/nodes/3.DwPoOq5S.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DwPoOq5S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.DWvHkTqn.js → 30.zNvkyZ-K.js} +1 -1
- package/build/client/_app/immutable/nodes/30.zNvkyZ-K.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.zNvkyZ-K.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{31.BPODDW08.js → 31.BGV4-1As.js} +1 -1
- package/build/client/_app/immutable/nodes/31.BGV4-1As.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BGV4-1As.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{32.Cwe4Ng6s.js → 32.eV1sEYs0.js} +1 -1
- package/build/client/_app/immutable/nodes/32.eV1sEYs0.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.eV1sEYs0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{33.DboRymFK.js → 33.DLGSDg3O.js} +1 -1
- package/build/client/_app/immutable/nodes/33.DLGSDg3O.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DLGSDg3O.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{34.CORslYSI.js → 34.DXqmQc83.js} +1 -1
- package/build/client/_app/immutable/nodes/34.DXqmQc83.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.DXqmQc83.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{35.BmBrCN-g.js → 35.CZ_gU3oF.js} +1 -1
- package/build/client/_app/immutable/nodes/35.CZ_gU3oF.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.CZ_gU3oF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{36.DsRWjCSa.js → 36.CkCw-RFR.js} +1 -1
- package/build/client/_app/immutable/nodes/36.CkCw-RFR.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.CkCw-RFR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{37.-Qs0XcuC.js → 37.DHXxzca8.js} +1 -1
- package/build/client/_app/immutable/nodes/37.DHXxzca8.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.DHXxzca8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{38.BSCKABwI.js → 38.DFBa_FHA.js} +1 -1
- package/build/client/_app/immutable/nodes/38.DFBa_FHA.js.br +0 -0
- package/build/client/_app/immutable/nodes/38.DFBa_FHA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CI9I4ed-.js → 4.BRBsBcEd.js} +1 -1
- package/build/client/_app/immutable/nodes/4.BRBsBcEd.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BRBsBcEd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{40.DyhgbEK2.js → 40.9Zdbx_6A.js} +1 -1
- package/build/client/_app/immutable/nodes/40.9Zdbx_6A.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.9Zdbx_6A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.CHhQpmXm.js → 5.xQMET0O9.js} +1 -1
- package/build/client/_app/immutable/nodes/5.xQMET0O9.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.xQMET0O9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.B6d3XJVy.js → 8.pCIGTPiW.js} +1 -1
- package/build/client/_app/immutable/nodes/8.pCIGTPiW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.pCIGTPiW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.yaUsGssm.js → 9.COijf-kc.js} +1 -1
- package/build/client/_app/immutable/nodes/9.COijf-kc.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.COijf-kc.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/{detail.js-BrB0UkaI.js → detail.js--FlHG9nh.js} +8 -10
- package/build/server/chunks/chunks/{feedback.js-DSX1PUXP.js → feedback.js-LJ309BvN.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-MfZofyr0.js → internal.js-6RTOSiHV.js} +3 -3
- package/build/server/chunks/chunks/{marketplace-service.js-B6gAYcuZ.js → marketplace-service.js-CQxN7Svk.js} +2 -2
- package/build/server/chunks/chunks/{package.js-4pIo8smV.js → package.js-CAv03PEq.js} +2 -2
- package/build/server/chunks/chunks/{page.js-D2DE-6NV.js → page.js-fCVZHlMb.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-DEFfeY1x.js → previewhelper2.js-C5bTVzlM.js} +3 -3
- package/build/server/chunks/chunks/{runtime.js-CSA1gOSd.js → runtime.js-cZr90O_e.js} +494 -69
- package/build/server/chunks/chunks/{scribe.js-Bhgm7aZy.js → scribe.js-BJCmTnho.js} +3 -3
- package/build/server/chunks/chunks/{service.js-BzM58BD7.js → service.js-BdmWPXK6.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-CjNLOWOe.js → service2.js-j4SgZ6pg.js} +2 -2
- package/build/server/chunks/chunks/{service3.js-CgCeuMLG.js → service3.js-BoYBMTwq.js} +2 -2
- package/build/server/chunks/chunks/{settings.js-Biwk3M0_.js → settings.js-jH4CFZJv.js} +2 -2
- package/build/server/chunks/chunks/{starter.js-8S1GJfCc.js → starter.js-BwCMR4Yw.js} +3 -3
- package/build/server/chunks/chunks/{view.js-BZcChHcc.js → view.js-70mnbUnS.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-GyVuUHkg.js → _server.ts.js-B9MguflG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-BBporNkc.js → _server.ts.js-Bj_eLVr7.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CLAvkLT3.js → _server.ts.js-B2_NQ-wr.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-DztuoCF3.js → _server.ts.js-3e4TPgLb.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-B_s3t4J-.js → _server.ts.js-6oES5M1e.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-TpgGKa9I.js → _server.ts.js-e5JeydQY.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-Cftwdzil.js → _server.ts.js-RD3-qvyf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-Dpj1nCHm.js → _server.ts.js-DFJ94uPq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/{_server.ts.js-Da5F6sTW.js → _server.ts.js-C4JHr1M8.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/{_server.ts.js-Dmn95WRm.js → _server.ts.js-CyBA8db_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/{_server.ts.js-Cf87-Xs3.js → _server.ts.js-BWpUYoln.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-rkSDvZZM.js → _server.ts.js-Cxb4EbQ_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DzPuEB0T.js → _server.ts.js-CMig3jjk.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-izvB4uBU.js → _server.ts.js-Cvx9TvOG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-Bsr1n3gW.js → _server.ts.js-D7vS1eV6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-B82sy8QF.js → _server.ts.js-B-R__uGD.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-4k0RLAj6.js → _server.ts.js-uEkhCIEP.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-BmfRS22F.js → _server.ts.js-CGVZFZvK.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-Doqh3FD9.js → _server.ts.js-B1505ThG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-DoMPaWSk.js → _server.ts.js-CrF2g5aj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Cuu6wc12.js → _server.ts.js-DCDHAG_C.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-Dl0wGHIL.js → _server.ts.js-CHHQnXqo.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-BxMNnSrL.js → _server.ts.js-L3f-eNa_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-BhPO24DG.js → _server.ts.js-D0kPEZPG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B_qpNDWM.js → _server.ts.js-Csxn1EN6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/talk/{_server.ts.js-XVTDVcHV.js → _server.ts.js-DmcjNfMk.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-DqFYlKJs.js → _server.ts.js-CDTuaU9t.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/_id_/end/{_server.ts.js-nWqO2LYp.js → _server.ts.js-D2hKWyxM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/{_server.ts.js-DjmZf8qV.js → _server.ts.js-B9kNt8rx.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/scouts/{_server.ts.js-CvYa0tFL.js → _server.ts.js-PBAb7AW4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/live/settings/{_server.ts.js-nTY8J_ix.js → _server.ts.js-BSw9Px9H.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-C-VE6_-n.js → _server.ts.js-DMXEdfLj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-BwLW4TfC.js → _server.ts.js-BzYcm4Kd.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DtiNODOI.js → _server.ts.js-BDYLddcX.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-Bl2FK6OM.js → _server.ts.js-BEknaQwW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-BO1Gxnex.js → _server.ts.js-CDIsr7Bf.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CdYFdDSE.js → _server.ts.js-Bo_4pQ4c.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-B63PT5xo.js → _server.ts.js-BoDzPayJ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-B_4X5skm.js → _server.ts.js-CnkWrBd-.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-BLqWN6P-.js → _server.ts.js-DXZ91cN3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-C5AdZFHE.js → _server.ts.js-BGPoZWuy.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-gOW1miHe.js → _server.ts.js-DWywW_DR.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-B819rWFV.js → _server.ts.js-DybUChTZ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CyhbVeVM.js → _server.ts.js-Dn2QySbr.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-BedrXewk.js → _server.ts.js-C_6UckpC.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Bal3HS7-.js → _server.ts.js-DvmesxRx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-CC9fYE8T.js → _server.ts.js-C9TNCKGa.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-UAQ6VD4Y.js → _server.ts.js-CRLll35o.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-DS_sj7E3.js → _server.ts.js-Za4yf4A2.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DYocPexz.js → _server.ts.js-CyiDAbW0.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DHlVWaLz.js → _server.ts.js-BewTImD8.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BW0k3RQV.js → _server.ts.js-C0AHChZa.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-i6vcjolT.js → _server.ts.js-0qXL2fkF.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/second-mate-setup/{_server.ts.js-O7oEc3c6.js → _server.ts.js-BFUQnApt.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/{_server.ts.js-B3ywJOQa.js → _server.ts.js--6vKvPZA.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-DU1gjPgg.js → _server.ts.js-COKRc-h1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-CcCr1-1m.js → _server.ts.js-D1ukAp8f.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-DRpReO79.js → _server.ts.js-NtSLzN6r.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-8YxzzHOY.js → _server.ts.js-B9CJeJck.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/{_server.ts.js-CJr29kSQ.js → _server.ts.js-B17swRmT.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/beacon/{_server.ts.js-DjNRcKvR.js → _server.ts.js-BYr3apJw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/soundings/settings/{_server.ts.js-CHuvhZXi.js → _server.ts.js-Bq_-6JVh.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-CBEa0vpI.js → _server.ts.js-R2q0sQMS.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-01RWnOK9.js → _server.ts.js-DrLOGsAH.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-C3prpay7.js → _server.ts.js-Bac3l6bL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-C7jEYiQ4.js → _server.ts.js-AuUJ4BeS.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/{_server.ts.js-DJCmZU-X.js → _server.ts.js-BnbcsVj4.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DBwGhbNs.js → _server.ts.js-CPaNxkVb.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-BVvuQ9jF.js → _server.ts.js-Bi-Fob6v.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-Bj6HhGQ5.js → _server.ts.js-CMvfqA3Q.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-HLDB_nm5.js → _server.ts.js-DgbjBBHe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/voice/{_server.ts.js-COkw_Z8F.js → _server.ts.js-CDJw-qb6.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/voice/hear/{_server.ts.js-DZKCMDL2.js → _server.ts.js-fE4l8QwX.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/voice/speak/{_server.ts.js-Bivugwcb.js → _server.ts.js-Cx1QMpz2.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wh-events/{_server.ts.js-Op7g75aQ.js → _server.ts.js-yTrmGKho.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BQ4xSd7C.js → _server.ts.js-13rG1MwQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-CfVdgj-s.js → _server.ts.js-C4Xfqrra.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CYehJDKe.js → _server.ts.js-DW8kSHPw.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/live/{_server.ts.js-DJucy-1l.js → _server.ts.js-DS9-M-b4.js} +5 -5
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-CV7FQXS6.js → _server.ts.js-DP98TWeq.js} +3 -3
- package/build/server/chunks/entries/{hooks.server.js-D0ehnSJd.js → hooks.server.js-BM8E0gpv.js} +5 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-2cytddk_.js → _layout.server.ts.js-CluxBPd9.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DOF_Ah2E.js → _page.server.ts.js-D2QMdfL0.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-9tHgmunh.js → _page.server.ts.js-DyAbQkMO.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BzH-jp7S.js → _page.server.ts.js-BJITFeO4.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DXuQcPIW.js → _page.server.ts.js-C3LD1BT_.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-BsmJgoUo.js → _page.server.ts.js-DpsIf7Pv.js} +2 -2
- package/build/server/chunks/entries/pages/health/{_page.server.ts.js-B_vk2cP9.js → _page.server.ts.js-Cwk3L0w7.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CjDL6PVC.js → _page.server.ts.js-CxyAZYbW.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-CxKpLKAM.js → _page.server.ts.js-BNu_Il1B.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-BZs_w9b2.js → _page.server.ts.js-6mMa95U9.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-B96oRoTl.js → _page.server.ts.js-BI85_WI4.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-CjItTz4B.js → _page.server.ts.js-BY5F4iRs.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-JJ4hbpWK.js → _page.server.ts.js-DCcrph6L.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-hDqIHoY7.js → _page.server.ts.js-DurqJs4i.js} +2 -2
- package/build/server/chunks/entries/pages/settings/chat/{_page.server.ts.js-DP5T1GAq.js → _page.server.ts.js-C_tT_XcY.js} +2 -2
- package/build/server/chunks/entries/pages/settings/discussion/{_page.server.ts.js-D5UC5P8F.js → _page.server.ts.js-BrxRYmPf.js} +2 -2
- package/build/server/chunks/entries/pages/settings/events/{_page.server.ts.js-D4DcjlCl.js → _page.server.ts.js-BQUO52Oz.js} +2 -2
- package/build/server/chunks/entries/pages/settings/firstmate/{_page.server.ts.js-CUQ6Gem_.js → _page.server.ts.js-DZOcknQr.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-D05BzKbn.js → _page.server.ts.js-C0iO80FL.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-C2ToGRtI.js → _page.server.ts.js-DnrtuT-P.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-D-JYNevo.js → _page.server.ts.js-BtSlrNLU.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-DrzKfWat.js → _page.server.ts.js-BJxcdTwX.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-79kZF-NB.js → _page.server.ts.js-CJ7ZIGSV.js} +2 -2
- package/build/server/chunks/entries/pages/settings/voice/{_page.server.ts.js-BWkdTOrW.js → _page.server.ts.js-3Rr1IkEr.js} +3 -3
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-CCJC2dcu.js → _page.server.ts.js-DVkUjB0_.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-JCWJl67i.js → _page.server.ts.js-CMfNanSa.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-D0LndSQy.js → _page.server.ts.js-DtSw_Q54.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-BlEDpmhL.js → _page.server.ts.js-QALRGJUr.js} +2 -2
- package/build/server/chunks/{handler-DytYaiGI.js → handler-Bvp0qt9e.js} +3 -3
- package/build/server/chunks/{index.js-Jh_pPZbK.js → index.js-7mpQXqzC.js} +2 -2
- package/build/server/chunks/{manifest.js-Cn1M53MQ.js → manifest.js-T_WNty6C.js} +120 -120
- package/build/server/chunks/nodes/{0.js-DNqsRRHY.js → 0.js-Dy6gwdSF.js} +6 -6
- package/build/server/chunks/nodes/{1.js-CPxe0KZ3.js → 1.js-De9euts4.js} +2 -2
- package/build/server/chunks/nodes/{10.js-d3vN624D.js → 10.js-DS7ATdRs.js} +5 -5
- package/build/server/chunks/nodes/{11.js-BtsUx6ke.js → 11.js-B3_Apgy1.js} +5 -5
- package/build/server/chunks/nodes/{12.js-DxL39Qjj.js → 12.js-CpSnWUfO.js} +2 -2
- package/build/server/chunks/nodes/{13.js-C7VhBhnH.js → 13.js-BuTqnKfr.js} +2 -2
- package/build/server/chunks/nodes/{14.js-ZFebNYw5.js → 14.js-CiScnvpz.js} +2 -2
- package/build/server/chunks/nodes/{15.js-mNjztx2T.js → 15.js-T3bIsgPK.js} +5 -5
- package/build/server/chunks/nodes/{16.js-BTLgtaFt.js → 16.js-CaIcfdKC.js} +5 -5
- package/build/server/chunks/nodes/{17.js-CEDuEbx7.js → 17.js-DYL2SoDa.js} +5 -5
- package/build/server/chunks/nodes/{18.js-96SVz1gH.js → 18.js-oe_eNXyA.js} +6 -6
- package/build/server/chunks/nodes/{19.js-Omjmy9AZ.js → 19.js-Dk6q4s4J.js} +6 -6
- package/build/server/chunks/nodes/{2.js-Db2B1FYj.js → 2.js-BmQDwSDo.js} +5 -5
- package/build/server/chunks/nodes/{20.js-EyCWuHPf.js → 20.js-LLD77cdY.js} +7 -7
- package/build/server/chunks/nodes/{21.js-CTkHtkoc.js → 21.js-CUhS1eNZ.js} +2 -2
- package/build/server/chunks/nodes/{22.js-CYAXW5aK.js → 22.js-AuZ09WRs.js} +2 -2
- package/build/server/chunks/nodes/{24.js-HGkHnKVG.js → 24.js-FQB_iX08.js} +5 -5
- package/build/server/chunks/nodes/{26.js-DZf54c-0.js → 26.js-JUUNJp7P.js} +5 -5
- package/build/server/chunks/nodes/{27.js-DwkxV1x4.js → 27.js-DXQ8W67z.js} +5 -5
- package/build/server/chunks/nodes/{28.js-DuXcmNIU.js → 28.js-Ddn4hART.js} +2 -2
- package/build/server/chunks/nodes/{29.js-CYHEfauI.js → 29.js-BhptZFCg.js} +5 -5
- package/build/server/chunks/nodes/{3.js-BAdhthz5.js → 3.js-5DSpCS2k.js} +2 -2
- package/build/server/chunks/nodes/{30.js-B8V8CgQ-.js → 30.js-BAH4T6wQ.js} +7 -7
- package/build/server/chunks/nodes/{31.js-CjeByTQG.js → 31.js-BAIITJxI.js} +2 -2
- package/build/server/chunks/nodes/{32.js-Jsr5lOrC.js → 32.js-CGMbisgI.js} +5 -5
- package/build/server/chunks/nodes/{33.js-DVzVyRZ8.js → 33.js-1locOzP7.js} +5 -5
- package/build/server/chunks/nodes/{34.js-oqztczhy.js → 34.js-rMPJs5gg.js} +6 -6
- package/build/server/chunks/nodes/{35.js-SAYpUfiI.js → 35.js-CV7e0chM.js} +4 -4
- package/build/server/chunks/nodes/{36.js-BdjfjrY6.js → 36.js-CVSr0Bet.js} +6 -6
- package/build/server/chunks/nodes/{37.js-DJFffCB0.js → 37.js-D9Nm1p6U.js} +6 -6
- package/build/server/chunks/nodes/{38.js-B2zxZsxe.js → 38.js-CJ7LvNbT.js} +6 -6
- package/build/server/chunks/nodes/{39.js-BvypnsKw.js → 39.js-Bua06boj.js} +5 -5
- package/build/server/chunks/nodes/{4.js-BPwKXJOs.js → 4.js-DBns7Efd.js} +5 -5
- package/build/server/chunks/nodes/{40.js-Bs2yBOvW.js → 40.js-DNpfaIg1.js} +5 -5
- package/build/server/chunks/nodes/{5.js-CbXHUtl3.js → 5.js-CeB93n7z.js} +5 -5
- package/build/server/chunks/nodes/{7.js-CEoI55pt.js → 7.js-CTTfkWcF.js} +4 -4
- package/build/server/chunks/nodes/{8.js-imgk-qU4.js → 8.js-q9hSu722.js} +2 -2
- package/build/server/chunks/nodes/{9.js-lm6Gq6_5.js → 9.js-BLtytIdN.js} +5 -5
- 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/skills/manage-wheelhouse/references/operations.md +1 -1
- package/build/client/_app/immutable/chunks/06NYrole.js.br +0 -0
- package/build/client/_app/immutable/chunks/06NYrole.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1Ason0h.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1Ason0h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BIDYlDeR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BIDYlDeR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPodyZX-.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPodyZX-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_9oGok_.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_9oGok_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BewcaM3i.js.br +0 -0
- package/build/client/_app/immutable/chunks/BewcaM3i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bk_vkVPR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk_vkVPR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0XRIeH0.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0XRIeH0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCNfPCjE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCNfPCjE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJ_zP9aP.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJ_zP9aP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvnA42KE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvnA42KE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cz6s8vAU.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cz6s8vAU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3vMdNpQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3vMdNpQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKlxq08T.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKlxq08T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKmmKKWI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKmmKKWI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_t5aTvb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_t5aTvb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdD2DUSn.js.br +0 -3
- package/build/client/_app/immutable/chunks/DdD2DUSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkYzvlzG.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkYzvlzG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwbTjpdU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwbTjpdU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EiS0rhjr.js.br +0 -0
- package/build/client/_app/immutable/chunks/EiS0rhjr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HxCbb4z3.js.br +0 -0
- package/build/client/_app/immutable/chunks/HxCbb4z3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/S3dTIgXO.js.br +0 -0
- package/build/client/_app/immutable/chunks/S3dTIgXO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nb8rTQbZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/nb8rTQbZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tVK81Wo7.js.br +0 -0
- package/build/client/_app/immutable/chunks/tVK81Wo7.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BYCz6Sud.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BYCz6Sud.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js +0 -1
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BhFFxrCg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.B-iFwXkB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B-iFwXkB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BmQ5L6gl.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BmQ5L6gl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.xV6yNabZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.xV6yNabZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.GVCOI3ma.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.GVCOI3ma.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DhYFOVoP.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DhYFOVoP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.B-vfxaQx.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.B-vfxaQx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Bd1B9WvF.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Bd1B9WvF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.oS-QEFZo.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.oS-QEFZo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.DgiO8TOd.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.5qy13_B4.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.5qy13_B4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.CA4e4G5Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.CA4e4G5Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.e4b8xXj0.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.e4b8xXj0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Bf1fGTeR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Bf1fGTeR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DN5K9vD4.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DN5K9vD4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.C643Epvv.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.C643Epvv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.B_2zPEiy.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.COBGvV9n.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.COBGvV9n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.DJr6tC_E.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DJr6tC_E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.D9XQZDvO.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.D9XQZDvO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.Ak-I9CMX.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ak-I9CMX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CMBRS4HZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CMBRS4HZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B46fsCV_.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B46fsCV_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DWvHkTqn.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DWvHkTqn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BPODDW08.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BPODDW08.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Cwe4Ng6s.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Cwe4Ng6s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DboRymFK.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DboRymFK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.CORslYSI.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.CORslYSI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.BmBrCN-g.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.BmBrCN-g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/36.DsRWjCSa.js.br +0 -0
- package/build/client/_app/immutable/nodes/36.DsRWjCSa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/37.-Qs0XcuC.js.br +0 -0
- package/build/client/_app/immutable/nodes/37.-Qs0XcuC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/38.BSCKABwI.js.br +0 -1
- package/build/client/_app/immutable/nodes/38.BSCKABwI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CI9I4ed-.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CI9I4ed-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/40.DyhgbEK2.js.br +0 -0
- package/build/client/_app/immutable/nodes/40.DyhgbEK2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CHhQpmXm.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CHhQpmXm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.B6d3XJVy.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.B6d3XJVy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.yaUsGssm.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.yaUsGssm.js.gz +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{d as me,S as ue}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{d as me,S as ue}from"./By5LN09n.js";import{p as fe,e as c,s as a,o as n,r as f,g as D,t as u,a as v,b as _e,h as ce,f as g,n as ge,c as l}from"./CEfkcOME.js";import{s as i}from"./CPPNfCxh.js";import{i as _}from"./D4ikcNuh.js";import{s as xe,e as we}from"./BMjXQSgN.js";import{p as G}from"./D42BPZCD.js";import{T as he}from"./CiB1IASV.js";const k=m=>m.installed?m.settings.filter(e=>e.current===void 0):m.settings,Ne=m=>Object.fromEntries(k(m).map(e=>[e.key,me(e.current??e.default)])),Be=(m,e)=>k(m).find(x=>x.required&&!e[x.key]?.trim())??null,De=m=>Object.fromEntries(Object.entries(m).filter(([,e])=>e.trim()!==""));var pe=l('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),be=l('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),ye=l('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),je=l('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),ke=l('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),Ae=l('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),Ie=l('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),Se=l('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),Oe=l('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),We=l("<li> </li>"),Re=l('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),Te=l('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Ge(m,e){fe(e,!0);let x=G(e,"answers",15),A=G(e,"busy",19,()=>[]);const I=ce(()=>k(e.preview)),S=t=>t.slice(0,12);var h=Te(),p=c(h),b=c(p),O=c(b),H=a(O),J=n(H);f(b);var W=a(b,2);{var L=t=>{var r=pe(),d=n(r,!0);u(()=>i(d,e.preview.description)),v(t,r)};_(W,t=>{e.preview.description&&t(L)})}var R=a(W,2),T=a(c(R),2),M=n(T),E=a(T,2);{var Q=t=>{var r=be(),d=a(g(r),2),s=n(d);u(o=>i(s,`${e.preview.installed.version??""} · ${o??""}`),[()=>S(e.preview.installed.commit)]),v(t,r)};_(E,t=>{e.preview.installed&&t(Q)})}var y=a(E,4),F=c(y),V=a(F);{var X=t=>{var r=ye(),d=a(c(r));f(r),u(()=>xe(d,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),v(t,r)};_(V,t=>{e.preview.installed&&t(X)})}f(y);var P=a(y,2);{var Y=t=>{var r=je(),d=a(g(r),2),s=n(d,!0);u(()=>i(s,e.preview.author)),v(t,r)};_(P,t=>{e.preview.author&&t(Y)})}var U=a(P,4),Z=n(U),q=a(U,2);{var $=t=>{var r=ke(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.services.join(", ")]),v(t,r)};_(q,t=>{e.preview.services.length&&t($)})}var z=a(q,2);{var ee=t=>{var r=Ae(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.addresses.join("; ")]),v(t,r)};_(z,t=>{e.preview.addresses?.length&&t(ee)})}var C=a(z,2);{var te=t=>{var r=Ie(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.capabilities.join("; ")]),v(t,r)};_(C,t=>{e.preview.capabilities?.length&&t(te)})}var K=a(C,2);{var re=t=>{var r=Se(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.roles.join("; ")]),v(t,r)};_(K,t=>{e.preview.roles?.length&&t(re)})}var ae=a(K,4),de=n(ae,!0);f(R),f(p);var N=a(p,2);{var se=t=>{var r=Oe(),d=c(r),s=n(d,!0),o=a(d,2);ue(o,{get settings(){return D(I)},get answers(){return x()},set answers(w){x(w)}}),ge(2),f(r),u(()=>i(s,e.preview.installed?"Its new settings":"Its settings")),v(t,r)};_(N,t=>{D(I).length&&t(se)})}var j=a(N,2),B=c(j);he(B,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var ie=a(B,2),ne=n(ie);f(j);var oe=a(j,2);{var ve=t=>{var r=Re(),d=a(c(r));we(d,20,A,s=>s,(s,o)=>{var w=We(),le=n(w,!0);u(()=>i(le,o)),v(s,w)}),f(d),f(r),v(t,r)};_(oe,t=>{A().length&&t(ve)})}f(h),u((t,r)=>{i(O,`${e.preview.name??""} `),i(J,`${e.preview.id??""} ${e.preview.version??""}`),i(M,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),i(F,`${t??""} `),i(Z,`${r??""}${e.preview.ui?"; a UI bundle":""}`),i(de,e.preview.on),i(ne,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
|
|
2
2
|
sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>S(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),v(m,h),_e()}export{Ge as P,De as f,Ne as i,Be as m};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./
|
|
1
|
+
import{p as r}from"./CbiqPRp4.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{ag as Ue,p as be,y as Z,f as i,a as r,b as xe,g as e,e as se,q as Ve,r as oe,h as y,c as S,i as G,j as Ee,s as d,n as L,A as T,m as a,t as de,o as Be}from"./CEfkcOME.js";import{d as Je,s as ue,e as Ke,a as Me}from"./CPPNfCxh.js";import{i as H}from"./D4ikcNuh.js";import{c as h}from"./CGbw525c.js";import{j as Qe,r as Ce,d as Se,k as ze}from"./BMjXQSgN.js";import{b as Le}from"./B6yYMcjx.js";import{p as j,r as Re,s as fe}from"./D42BPZCD.js";import{p as Xe}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{ag as Ue,p as be,y as Z,f as i,a as r,b as xe,g as e,e as se,q as Ve,r as oe,h as y,c as S,i as G,j as Ee,s as d,n as L,A as T,m as a,t as de,o as Be}from"./CEfkcOME.js";import{d as Je,s as ue,e as Ke,a as Me}from"./CPPNfCxh.js";import{i as H}from"./D4ikcNuh.js";import{c as h}from"./CGbw525c.js";import{j as Qe,r as Ce,d as Se,k as ze}from"./BMjXQSgN.js";import{b as Le}from"./B6yYMcjx.js";import{p as j,r as Re,s as fe}from"./D42BPZCD.js";import{p as Xe}from"./9-_TZern.js";import{D as Te}from"./Sv3hh1sg.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./BxKmcvUJ.js";import{s as je}from"./s1S1BAXN.js";import{c as st,d as ot,b as $e,m as lt}from"./DRPGxn7H.js";import{B as Q}from"./D4Okmn3b.js";import{C as nt,e as it,b as dt,i as ut}from"./By5LN09n.js";import{P as ft,i as pt,f as mt,m as vt}from"./6LK584eW.js";import{P as gt}from"./B0iegdDx.js";import{L as ct}from"./BMEfZRmb.js";import{T as _t}from"./CiB1IASV.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const q=Ue();be(o,!0);let N=j(o,"id",19,()=>st(q)),U=j(o,"ref",15,null),O=j(o,"disabled",3,!1),t=Re(o,ht);const $=ot.create({id:$e(()=>N()),ref:$e(()=>U(),g=>U(g)),disabled:$e(()=>!!O())}),B=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var R=g=>{var k=Z(),V=i(k);je(V,()=>o.child,()=>({props:e(B)})),r(g,k)},le=g=>{var k=$t();Qe(k,()=>({...e(B)}));var V=se(k);je(V,()=>o.children??Ve),oe(k),r(g,k)};H(f,g=>{o.child?g(R):g(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let q=j(o,"ref",15,null),N=j(o,"type",3,"button"),U=Re(o,xt);var O=Z(),t=i(O);h(t,()=>bt,($,B)=>{B($,fe({"data-slot":"dialog-trigger",get type(){return N()}},()=>U,{get ref(){return q()},set ref(u){q(u)}}))}),r(X,O),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Oe=S("<!> <!> <!>",1),At=S("<p> </p>");function Kt(X,o){be(o,!0);let q=j(o,"busy",19,()=>[]),N=j(o,"suggested",3,null),U=j(o,"label",3,"Install plugin"),O=G(!1),t=G("form"),$=G(""),B=G(""),u=G(null),f=G(null),R=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),g=y(()=>e(f)?vt(e(f),e(R)):null),k=()=>Xe.data.sessionToken,V="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const C=await it({repo:e($).trim(),ref:e(B).trim()||null},k());if(!C.ok){a(u,C.error,!0),a(t,"form");return}a(f,C.value,!0),a(R,pt(C.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(g))return;a(t,"saving"),a(u,null);const Y=dt(),C=await ut(e(f),mt(e(R)),k());if(!C.ok){a(u,C.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,C)=>{C(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(B,""),we()),E&&e(t)==="form"&&N()&&!e($)&&a($,N())},get open(){return e(O)},set open(E){a(O,E,!0)},children:(E,Bt)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);gt(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,U())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(c,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(W,n)=>{L();var m=T("Install a plugin from GitHub");r(W,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(W,n)=>{var m=Z(),A=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
2
|
Nothing runs until you install it.`);r(v,z)};H(A,v=>{e(t)==="review"?v(_):v(w,-1)})}r(W,m)},$$slots:{default:!0}})}),r(c,x)},$$slots:{default:!0}})});var ne=d(re,2);{var ve=b=>{var P=Dt(),c=i(P),D=se(c),x=d(se(D),2);Ce(x),Se(x,1,ze(V)),L(2),oe(D);var I=d(D,2),s=d(se(I),2);Ce(s),Se(s,1,ze(V)),L(2),oe(I);var l=d(I,2);{var p=n=>{var m=kt(),A=se(m);_t(A,{class:"mt-0.5 size-3.5 shrink-0"});var _=d(A,1,!0);oe(m),de(()=>ue(_,e(u))),r(n,m)};H(l,n=>{e(u)&&n(p)})}oe(c);var W=d(c,2);h(W,()=>he,(n,m)=>{m(n,{children:(A,_)=>{var w=ae(),v=i(w);{const F=(J,K)=>{Q(J,fe(()=>(K?.()).props,{variant:"ghost",children:(ce,Ae)=>{L();var _e=T("Cancel");r(ce,_e)},$$slots:{default:!0}}))};h(v,()=>Te,(J,K)=>{K(J,{child:F,$$slots:{child:!0}})})}var z=d(v,2);{let F=y(()=>!e(le)||e(t)==="looking");Q(z,{type:"submit",form:"install-plugin-form",get disabled(){return e(F)},children:(J,K)=>{var ge=Z(),ce=i(ge);{var Ae=M=>{var ie=Pt(),Ne=i(ie);ct(Ne,{class:"animate-spin"}),L(),r(M,ie)},_e=M=>{var ie=T("Look it up");r(M,ie)};H(ce,M=>{e(t)==="looking"?M(Ae):M(_e,-1)})}r(J,ge)},$$slots:{default:!0}})}r(A,w)},$$slots:{default:!0}})}),Ke("submit",c,We),Me("input",x,()=>a(u,null)),Le(x,()=>e($),n=>a($,n)),Le(s,()=>e(B),n=>a(B,n)),r(b,P)},Ze=b=>{var P=Oe(),c=i(P);ft(c,{get preview(){return e(f)},get busy(){return q()},get answers(){return e(R)},set answers(s){a(R,s,!0)}});var D=d(c,2);{var x=s=>{var l=It(),p=Be(l,!0);de(()=>ue(p,e(u))),r(s,l)};H(D,s=>{e(u)&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=ae(),m=i(n);Q(m,{variant:"ghost",onclick:we,children:(_,w)=>{L();var v=T("Back");r(_,v)},$$slots:{default:!0}});var A=d(m,2);{let _=y(()=>!!e(g)),w=y(()=>e(g)?`${e(g).title} is needed`:void 0);Q(A,{onclick:Fe,get disabled(){return e(_)},get title(){return e(w)},children:(v,z)=>{L();var F=T("Install and restart");r(v,F)},$$slots:{default:!0}})}r(p,n)},$$slots:{default:!0}})}),r(b,P)},qe=b=>{var P=Oe(),c=i(P);{let s=y(()=>e(f).id),l=y(()=>e(f).commit.slice(0,7)),p=y(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");nt(c,{get label(){return`Install ${e(s)??""} at ${e(l)??""}`},get phase(){return e(p)}})}var D=d(c,2);{var x=s=>{var l=At(),p=Be(l);de(()=>ue(p,`${e(f).name??""}
|
|
3
3
|
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(s,l)};H(D,s=>{e(t)==="done"&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,W)=>{var n=Z(),m=i(n);{const A=(_,w)=>{let v=()=>(w?.()).props;{let z=y(()=>e(t)==="saving"||e(t)==="restarting");Q(_,fe(v,{get disabled(){return e(z)},children:(F,J)=>{L();var K=T("Done");r(F,K)},$$slots:{default:!0}}))}};h(m,()=>Te,(_,w)=>{w(_,{child:A,$$slots:{child:!0}})})}r(p,n)},$$slots:{default:!0}})}),r(b,P)};H(ne,b=>{e(t)==="form"||e(t)==="looking"?b(ve):e(t)==="review"&&e(f)?b(Ze,1):e(f)&&b(qe,2)})}r(De,me)},$$slots:{default:!0}})})}r(E,ke)},$$slots:{default:!0}})}),r(X,ye),xe()}Je(["input"]);export{Kt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as R,k as C,a0 as _,E as F,b8 as q,i as l,g as c,m as u,j as v}from"./CEfkcOME.js";import"./DsnmJJEf.js";import{s as $,r as b}from"./D42BPZCD.js";import{I as S}from"./DBuj1e9B.js";import{p as O}from"./
|
|
1
|
+
import{l as R,k as C,a0 as _,E as F,b8 as q,i as l,g as c,m as u,j as v}from"./CEfkcOME.js";import"./DsnmJJEf.js";import{s as $,r as b}from"./D42BPZCD.js";import{I as S}from"./DBuj1e9B.js";import{p as O}from"./9-_TZern.js";import{s as N}from"./CuYc7d4s.js";import{S as P}from"./BXN538J3.js";function ot(o,t,e){R(()=>{var s=C(()=>t(o,e?.())||{});if(e&&s?.update){var i=!1,n={};_(()=>{var r=e();F(r),i&&q(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var A=new Set(["$$slots","$$events","$$legacy"]);function at(o,t){let e=b(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"}]]};S(o,$(()=>e,{get icon(){return s}}))}var B=new Set(["$$slots","$$events","$$legacy"]);function ht(o,t){let e=b(t,B);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"}]]};S(o,$(()=>e,{get icon(){return s}}))}var U=new Set(["$$slots","$$events","$$legacy"]);function lt(o,t){let e=b(t,U);const s={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};S(o,$(()=>e,{get icon(){return s}}))}var L=new Set(["$$slots","$$events","$$legacy"]);function ct(o,t){let e=b(t,L);const s={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};S(o,$(()=>e,{get icon(){return s}}))}const ut=["must","should","could","none"],j={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},W=8e3,m=o=>o.replace(/\s+/g," ").trim();function k(o){const t=Math.max(0,Math.round(o/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(o,t)=>`${o} ${t}${o===1?"":"s"}`,H=/\b(this|here|that one|these)\b/i;function z(o,t,e,s,i){const n=o.filter(a=>(a.type==="click"||a.type==="input"||a.type==="choose"||a.type==="mark")&&a.t>=e-W&&a.t<=s).pop()??null,r=n?.type!=="mark"&&H.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function x(o,t){const e=s=>o.find(i=>i.id===s)?.label??"";return[...o.map(s=>({t:s.t,s:`${s.id} ${k(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${k(s.t0)}–${k(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 Q(o){const t=o.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function K(o,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:o,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 G=o=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(o.trim());function J(o,t){return{summary:o.length?`The captain reviewed ${t.title} for ${k(t.duration)} and raised ${w(o.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:o.map(e=>({title:Q(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function V(o,t,e,s,i){const n=[`Preview feedback for ${o.id} (${m(o.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${k(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${m(s.summary)}`];return s.lines.forEach((r,a)=>{n.push(`${a+1}. [${j[r.severity]}] ${m(r.title)}. ${m(r.detail)}`),r.where&&n.push(` Points at: ${m(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${m(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
2
|
`)}const dt=()=>O.data.features?.livereview===!0,pt=(o,t=location.pathname+location.search)=>`/tasks/${encodeURIComponent(o)}/live?back=${encodeURIComponent(t)}`,Y=260,X=450;function M(){const o=globalThis;return o.SpeechRecognition??o.webkitSpeechRecognition??null}const y=o=>{const t=URL.parse(o??"");return t?t.pathname+t.hash||"/":o||"/"};class gt{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)}#d=l({});get shots(){return c(this.#d)}set shots(t){u(this.#d,t)}#p=l(v([]));get fresh(){return c(this.#p)}set fresh(t){u(this.#p,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)}#$=l(!1);get replyBusy(){return c(this.#$)}set replyBusy(t){u(this.#$,t,!0)}#b=l(!1);get speaking(){return c(this.#b)}set speaking(t){u(this.#b,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)}canHear=M()!==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;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",[P]: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 a=new Image;a.onload=()=>{const d=document.createElement("canvas");d.width=a.width,d.height=a.height;const h=d.getContext("2d");if(!h)return r(e.image);h.drawImage(a,0,0);const p=a.width/(e.vw||a.width),f=e.el?.rect;if(f&&f.w>0){const g=6*p,[I,T,D,E]=[f.x*p-g,f.y*p-g,f.w*p+g*2,f.h*p+g*2];h.fillStyle="rgba(11,17,24,.38)",h.beginPath(),h.rect(0,0,d.width,d.height),h.roundRect(I,T,D,E,6*p),h.fill("evenodd"),h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*p),h.beginPath(),h.roundRect(I,T,D,E,6*p),h.stroke()}else if(e.point){const g=a.width/(e.point.vw||e.vw||a.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(d.toDataURL("image/jpeg",.85))},a.onerror=()=>r(null),a.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=M();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 a=n.resultIndex;a<n.results.length;a++){const d=n.results[a];d.isFinal?(i.finals+=(i.finals?" ":"")+d[0].transcript.trim(),this.locked&&this.rec===s&&(i.interim="",i.t1=this.t(),this.finish(i),i=this.newHearing(),this.cur=i)):r+=d[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,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;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=z(this.events,t,e,s,i),a={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(a),this.convo.push({who:"captain",text:t,t:e,uid:a.id}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(a)}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:x(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:x(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;const e=globalThis.speechSynthesis;if(!this.speak||!e){setTimeout(()=>{this.scribeSays===t&&(this.scribeSays=null)},Math.max(4e3,t.split(" ").length*380));return}e.cancel();const s=new SpeechSynthesisUtterance(t),i=e.getVoices().filter(n=>/^en/i.test(n.lang));s.voice=i.find(n=>/Google UK English Female|Daniel|Serena|Kate|Samantha|Google US English/.test(n.name))??i[0]??null,s.rate=1.04,s.onstart=()=>this.speaking=!0,s.onend=s.onerror=()=>{this.speaking=!1,setTimeout(()=>{!this.speaking&&this.scribeSays===t&&(this.scribeSays=null)},1200)},e.speak(s)}hush(){globalThis.speechSynthesis?.cancel(),this.speaking=!1,this.scribeSays=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=>`${k(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)&&G(h.text))).map((h,p)=>K(`q${p+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(J(n,{title:this.title,duration:t}),"notes",t);if(r.tidying=this.remarks.length>0,this.pack=r,!r.tidying)return;const a=await this.call({action:"pack",timeline:x(this.events,this.remarks),notes:n}),d=this.pack;!d||d.sent||d.sending||(d.tidying=!1,a.ok&&a.value.issues?.length?d.edited?d.better=a.value:this.pack=this.view(a.value,"scribe",t):d.tidyFailed=a.ok?"no points":a.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 V({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:k(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:a})=>({who:n,text:r,at:k(a)}))},shots:e});if(!s.ok)return t.sending=!1,t.error=s.error,!1;const i=await N(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{at as C,gt as L,ht as M,ut as S,lt as a,ct as b,ot as c,pt as d,dt as l,k as m,w as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{o as zt}from"./B42VotjV.js";import{p as ut,i as V,j as Dt,u as wt,f as ae,e as y,o as E,s as o,g as e,r as u,t as w,a as r,b as vt,h as re,m as s,n as Se,A as be,c as i,q as He,y as We,k as Lt,v as Ot,w as It}from"./CEfkcOME.js";import{d as Wt,s as h,e as kt,a as rt,l as Ft}from"./CPPNfCxh.js";import{i as $}from"./D4ikcNuh.js";import{k as Ut}from"./D5xbT1cY.js";import{c as Ht}from"./CGbw525c.js";import{r as xt,s as ie,e as $e,f as Ke,c as Vt,a as qt,d as De,k as Kt,h as Bt}from"./BMjXQSgN.js";import{s as Pt,r as At,p as at}from"./D42BPZCD.js";import{a as Jt}from"./WRwU91GU.js";import{b as Zt}from"./B6yYMcjx.js";import{p as ct}from"./DdD2DUSn.js";import{S as jt}from"./BXN538J3.js";import{s as _t,a as Gt,S as Yt}from"./C14pDzYB.js";import{B as Me}from"./D4Okmn3b.js";import{L as Xt}from"./Cb5RrIpk.js";import{K as St}from"./56FYNR0s.js";import{C as Qt}from"./iInrZOCY.js";import{I as Nt}from"./DBuj1e9B.js";import{E as er}from"./CUX8nq8d.js";import{b as yt}from"./DKCbih8n.js";import{a as bt,P as tr}from"./D3vMdNpQ.js";import{s as rr}from"./CuYc7d4s.js";import{l as Mt,e as ar}from"./C9b5_KhQ.js";import{L as Rt}from"./BMEfZRmb.js";import{P as nr}from"./C0oq3sur.js";import{C as or}from"./DjjMMxuF.js";import{C as sr}from"./BftdAJED.js";import{X as ir}from"./C6E-ekUK.js";import{C as lr}from"./BkDaGfWb.js";import{C as dr}from"./L6sq18qu.js";import{E as cr}from"./BexGUSY7.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
|
|
1
|
+
import"./DsnmJJEf.js";import{o as zt}from"./B42VotjV.js";import{p as ut,i as V,j as Dt,u as wt,f as ae,e as y,o as E,s as o,g as e,r as u,t as w,a as r,b as vt,h as re,m as s,n as Se,A as be,c as i,q as He,y as We,k as Lt,v as Ot,w as It}from"./CEfkcOME.js";import{d as Wt,s as h,e as kt,a as rt,l as Ft}from"./CPPNfCxh.js";import{i as $}from"./D4ikcNuh.js";import{k as Ut}from"./D5xbT1cY.js";import{c as Ht}from"./CGbw525c.js";import{r as xt,s as ie,e as $e,f as Ke,c as Vt,a as qt,d as De,k as Kt,h as Bt}from"./BMjXQSgN.js";import{s as Pt,r as At,p as at}from"./D42BPZCD.js";import{a as Jt}from"./WRwU91GU.js";import{b as Zt}from"./B6yYMcjx.js";import{p as ct}from"./9-_TZern.js";import{S as jt}from"./BXN538J3.js";import{s as _t,a as Gt,S as Yt}from"./C14pDzYB.js";import{B as Me}from"./D4Okmn3b.js";import{L as Xt}from"./Cb5RrIpk.js";import{K as St}from"./56FYNR0s.js";import{C as Qt}from"./iInrZOCY.js";import{I as Nt}from"./DBuj1e9B.js";import{E as er}from"./CUX8nq8d.js";import{b as yt}from"./DKCbih8n.js";import{a as bt,P as tr}from"./BjKSCYOc.js";import{s as rr}from"./CuYc7d4s.js";import{l as Mt,e as ar}from"./C9b5_KhQ.js";import{L as Rt}from"./BMEfZRmb.js";import{P as nr}from"./C0oq3sur.js";import{C as or}from"./DjjMMxuF.js";import{C as sr}from"./BftdAJED.js";import{X as ir}from"./C6E-ekUK.js";import{C as lr}from"./BkDaGfWb.js";import{C as dr}from"./L6sq18qu.js";import{E as cr}from"./BexGUSY7.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
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
3
|
|
|
4
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),Rn=(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 rr(`From the “${t.title}” app (${t.plugin} plugin):
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{i as d,g as i,m as u,p as N,u as S,k as y,f as R,s as C,t as j,a as E,b as W,h as I,o as F,c as x}from"./CEfkcOME.js";import{s as H}from"./CPPNfCxh.js";import{i as D}from"./D4ikcNuh.js";import{s as M}from"./BMjXQSgN.js";import{b as q}from"./DKCbih8n.js";import{p as _}from"./D42BPZCD.js";import{p as J}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{i as d,g as i,m as u,p as N,u as S,k as y,f as R,s as C,t as j,a as E,b as W,h as I,o as F,c as x}from"./CEfkcOME.js";import{s as H}from"./CPPNfCxh.js";import{i as D}from"./D4ikcNuh.js";import{s as M}from"./BMjXQSgN.js";import{b as q}from"./DKCbih8n.js";import{p as _}from"./D42BPZCD.js";import{p as J}from"./9-_TZern.js";import{S as w}from"./BXN538J3.js";import{r as A}from"./tpeuVjMv.js";const B=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),z=e=>Number.isInteger(e)&&e>=1&&e<=65535;function V(e){const t=e.indexOf("{port}"),n=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(n<0||t<n)}function $(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!B.has(t.hostname.toLowerCase()))return null;const n=Number(t.port||(t.protocol==="https:"?443:80));return z(n)?n:null}function O(e,t){const n=$(e);if(n===null||t.reserved?.includes(n))return e;const o=new URL(e);return`${t.pattern.replace("{port}",String(n)).replace(/\/+$/,"")}${o.pathname}${o.search}${o.hash}`}const P=new Set(["127.0.0.1","localhost"]);function bt(e,t){const n="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let o=!0;try{o=new URL(e).origin===t}catch{}return o?n:`${n} allow-same-origin`}const G=e=>Number.isInteger(e)&&e>=1&&e<=65535;function K(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!P.has(t.hostname.toLowerCase()))return null;const n=t.port?Number(t.port):80;return G(n)?n:null}function Q(e,t,n){const o=t?K(e):null;if(o===null||!t)return e;const s=n.port||(n.protocol==="https:"?"443":"80");if(P.has(n.hostname.toLowerCase())&&String(o)===s)return e;const a=new URL(e),r=t.replace("{port}",String(o));return`${n.protocol}//${r}${n.port?`:${n.port}`:""}${a.pathname}${a.search}${a.hash}`}class X{#t=d(null);get to(){return i(this.#t)}set to(t){u(this.#t,t,!0)}#e=d(null);get remote(){return i(this.#e)}set remote(t){u(this.#e,t,!0)}#n=d(null);get hosted(){return i(this.#n)}set hosted(t){u(this.#n,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?A(t,this.remote,location.origin):this.hosted?O(t,this.hosted):this.to?Q(t,this.to,location):t}sandbox(t){return this.remote?A(t,this.remote,location.origin):this.hosted&&V(this.hosted.pattern)?O(t,{pattern:this.hosted.pattern}):t}}const b=new X;function wt(e){const t=o=>{if(!b.active)return;const s=o.composedPath().find(r=>r instanceof HTMLAnchorElement&&r.hasAttribute("href"));if(!s)return;const a=b.view(s.href);a!==s.href&&(s.href=a)},n=["click","auxclick","contextmenu","dragstart"];for(const o of n)e.addEventListener(o,t,!0);return()=>{for(const o of n)e.removeEventListener(o,t,!0)}}async function Y(e,t,n,o=`wh-${crypto.randomUUID()}`){try{const s=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":o,[w]:n},body:JSON.stringify(t)});if(s.ok){const r=await s.json().catch(()=>null);return r?.message?.delivery==="failed"?{ok:!1,error:r.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:s.status===202}}return{ok:!1,error:(await s.json().catch(()=>null))?.message??`Wheelhouse answered ${s.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Z(e,t,n){try{const o=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[w]:n},body:JSON.stringify(t)}),s=await o.json().catch(()=>null);return o.ok&&Array.isArray(s?.points)?{ok:!0,points:s.points}:{ok:!1,error:s?.message??`Wheelhouse answered ${o.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const tt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function et(e){try{const t=await fetch(`/api/services?${tt(e)}`);return t.ok?await t.json():null}catch{return null}}async function nt(e,t,n=null){const o=window.open("","_blank");try{o?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let s=null;try{const r=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[w]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});s=r.ok?await r.json():{...await r.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${r.status}).`}}catch{s=null}const a=s?.state==="running"?n??s.url:null;if(a){const r=b.view(a);o?o.location.href=r:window.open(r,"_blank")}else o?.close();return s}const rt=5e3,k=new Map;function ot(e,t){let n=k.get(e);return n||(n=t(e).catch(o=>{throw k.delete(e),o}),k.set(e,n)),n}const L=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function st(e,t){const n=e.pluginId,o=(a,r)=>{if(typeof a!="string"||!a)throw new TypeError("Name a service.");const c=r===void 0?e.projectId:r;return{plugin:n,service:a,project:typeof c=="string"&&c?c:null}},s=a=>{const r=typeof a=="object"&&a!==null?a:{},c=typeof r.task=="string"&&r.task?r.task:e.taskId??null;return c?{taskId:c,subject:typeof r.subject=="string"?r.subject:null,items:Array.isArray(r.items)?r.items:[]}:null};return Object.freeze({pluginId:n,service:async(a,r={})=>t.status(o(a,r.project)),launch:async(a,r={})=>t.launch(o(a,r.project),t.token(),typeof r.open=="string"?r.open:null),sendFeedback:async a=>{if(!(t.clicked??L)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const r=s(a);return r?t.feedback(n,r,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async a=>{if(!(t.clicked??L)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const r=s(a);return r?t.summarise(n,r,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function at(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await ot(t.ui,t.importer??(s=>import(s)))}catch(s){throw new Error(`its UI bundle did not load (${s instanceof Error?s.message:String(s)})`)}let o;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((s,a)=>{o=setTimeout(()=>a(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??rt)})])}finally{clearTimeout(o)}}const n=document.createElement(t.tag);return t.host&&(n.host=t.host),n.entry=t.entry,n.data=t.data,e.append(n),n}var it=x('<p class="text-sm text-muted-foreground"> </p>'),ct=x('<div class="contents"></div> <!>',1);function vt(e,t){N(t,!0);let n=_(t,"preview",3,void 0),o=_(t,"quiet",3,!1);const s=I(()=>"element"in t.entry.render?t.entry.render.element:""),a=I(()=>t.entry.ui??null);let r=d(null),c=d(null),m=d(null);S(()=>{if(!i(r)||!i(s))return;const l=i(r);let h=!1,p=null;return u(m,null),at(l,{tag:i(s),ui:i(a),data:y(()=>t.data),entry:y(()=>t.entry),host:st(y(()=>t.entry),{status:et,launch:nt,feedback:Y,summarise:Z,token:()=>J.data.sessionToken??""}),importer:t.importer}).then(f=>{p=f,h?f.remove():u(c,f,!0)},f=>{h||u(m,f.message,!0)}),()=>{h=!0,p?.remove(),u(c,null)}}),S(()=>{i(c)&&(n()!==void 0&&(i(c).preview=n()),i(c).entry=t.entry,i(c).data=t.data)});var v=ct(),g=R(v);q(g,l=>u(r,l),()=>i(r));var T=C(g,2);{var U=l=>{var h=it(),p=F(h);j(()=>H(p,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${i(m)??""}.`)),E(l,h)};D(T,l=>{i(m)&&!o()&&l(U)})}j(()=>M(g,"data-plugin-element",i(s))),E(e,v),W()}export{vt as P,b as a,P as b,bt as f,wt as r};
|
|
Binary file
|
|
Binary file
|