@hot-updater/console 1.2.0-rc.5 → 1.2.0-rc.50
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/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-6aptbS4G.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelPicker-DPR-7lqV.js +1 -0
- package/.output/public/assets/CompositeItem-UhIlCBg4.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-LQ8ejbsd.js +1 -0
- package/.output/public/assets/FoldedRows-1NvB9gAS.js +1 -0
- package/.output/public/assets/HashValueDisplay-DTSMSH9O.js +1 -0
- package/.output/public/assets/InsightsPageHeader-ypKKV3rL.js +1 -0
- package/.output/public/assets/IosInstall-BRuSakxm.js +1 -0
- package/.output/public/assets/NativeBuildsNav-ChBahvFN.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
- package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
- package/.output/public/assets/RelativeTime-m-FKh1Jb.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DF4EeZIJ.js +1 -0
- package/.output/public/assets/RowReason-BvIxbpPP.js +1 -0
- package/.output/public/assets/SandboxBadge-DPmJn40v.js +1 -0
- package/.output/public/assets/TargetDisplay-Ctuz3qIp.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
- package/.output/public/assets/api-znPyglTl.js +1 -0
- package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
- package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
- package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
- package/.output/public/assets/badge-zMibJGR5.js +1 -0
- package/.output/public/assets/card-BAs80yql.js +1 -0
- package/.output/public/assets/check-C3VCvMOV.js +1 -0
- package/.output/public/assets/chevron-down-BkoJHAll.js +1 -0
- package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
- package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-yj-e3ahf.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
- package/.output/public/assets/dist-BEmib-ZM.js +1 -0
- package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
- package/.output/public/assets/empty-C5GqArX9.js +1 -0
- package/.output/public/assets/field-DInLQ5oV.js +1 -0
- package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
- package/.output/public/assets/history-Ci4dhphE.js +1 -0
- package/.output/public/assets/index-oTXLdUR-.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-BL6Z8zFv.js +42 -0
- package/.output/public/assets/insights-BMjBMtJU.js +2 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-C4Dmm34n.js +1 -0
- package/.output/public/assets/insights-search-B4NkHGeC.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Br_CW9s9.js +2 -0
- package/.output/public/assets/insights_.distribution-C4E-JuVI.js +1 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/installations-Cjx0648C.js +1 -0
- package/.output/public/assets/installations-m1v6oE-2.js +2 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
- package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
- package/.output/public/assets/native-builds-B0zJ4wjg.js +1 -0
- package/.output/public/assets/native-builds-BC0sjxPC.js +2 -0
- package/.output/public/assets/native-builds-B_pQ4D5H.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CSyC7YAA.js +1 -0
- package/.output/public/assets/native-builds_._buildId-GPlkI_2m.js +2 -0
- package/.output/public/assets/native-builds_.devices-Cox001IR.js +2 -0
- package/.output/public/assets/native-builds_.devices-DAW19hcQ.js +1 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BCQHNGRY.js +1 -0
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-CDlB7JK8.js +6 -0
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-C7Pv3Cfg.js +1 -0
- package/.output/public/assets/routes-JJGRGqsf.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-iSWTEY9t.js +1 -0
- package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
- package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
- package/.output/public/assets/styles-D5kpHu-Z.css +2 -0
- package/.output/public/assets/switch-ByNYRVTN.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-Byfy8Qls.js +1 -0
- package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/public/assets/useCompositeListItem-BEDqZ9Ni.js +1 -0
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
- package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-BsXXRtkN.mjs → __23tanstack-start-server-fn-resolver-DY-niJR4.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +50 -28
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/-native-builds-search-D10dMZzL.mjs +62 -0
- package/.output/server/_ssr/{BundleIdDisplay-CFz1sCQl.mjs → BundleIdDisplay-CGdSiouM.mjs} +3 -3
- package/.output/server/_ssr/ChannelPicker-J5HfKxSS.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CGHVL37b.mjs → ConsoleFeatureUnavailable-C52o4oew.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DdJyaBZ5.mjs → EventDetails-CDLSkVNA.mjs} +9 -9
- package/.output/server/_ssr/FoldedRows-CrRYEVkd.mjs +152 -0
- package/.output/server/_ssr/HashValueDisplay-BrT2wgxk.mjs +65 -0
- package/.output/server/_ssr/{InsightsPageHeader-KtHEf8Q0.mjs → InsightsPageHeader-DVrudLMJ.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-DcKlZU_q.mjs +767 -0
- package/.output/server/_ssr/NativeBuildsNav-BC1WIQ1W.mjs +39 -0
- package/.output/server/_ssr/{NotFoundPage-DZB6K98c.mjs → NotFoundPage-CEhZtcst.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-Dj9BKV3l.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-Dgbh4UPb.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-BYEDUW1d.mjs} +20 -4
- package/.output/server/_ssr/RowReason-BweNBWkA.mjs +59 -0
- package/.output/server/_ssr/SandboxBadge-O8-kbXAw.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-D3JAXwcF.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-CDr-Nsoo.mjs → alert-dialog-CxEcyUb6.mjs} +4 -4
- package/.output/server/_ssr/{api-DGWwi1WN.mjs → api-IIqxWeDx.mjs} +186 -39
- package/.output/server/_ssr/{api-keys-e_eDCNr2.mjs → api-keys-CYefExfc.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-BXiXUAm9.mjs → api-keys-rpc-qkGQ3Sp3.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-BBb3xSox.mjs → api-keys-wFak2vKN.mjs} +14 -11
- package/.output/server/_ssr/{api-rpc-CLreF5Vr.mjs → api-rpc-3NKc545A.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-Bbf80tQK.mjs → auth-rpc-PCSJzNJf.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-DGwe3eds.mjs → auth.server-NGj7G3bq.mjs} +1334 -279
- package/.output/server/_ssr/{badge-BXk5c2yv.mjs → badge-CxSJ-pjU.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-BDXDcrk_.mjs +49 -0
- package/.output/server/_ssr/{config.server-BIBSZpZE.mjs → config.server-CwUGPk-F.mjs} +4 -4
- package/.output/server/_ssr/{console-access-Cwha8dww.mjs → console-access-BOt-Xxd7.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-Bk24XYA5.mjs → console-features-api-Dw_Tktev.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-5WFiUFxb.mjs → console-features-rpc-D8VFHwYj.mjs} +4 -4
- package/.output/server/_ssr/constants-D-2jpCiJ.mjs +11 -0
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BZMFl5QV.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-BG-juN_g.mjs → dialog-CJ4zMagm.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-DF3o-H8c.mjs → empty-DYy36pwa.mjs} +3 -3
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-5zvNofJH.mjs → field-MI8oNc5n.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-rcPxMqYq.mjs → input-group-Bf7wHa21.mjs} +3 -3
- package/.output/server/_ssr/{insights-BwEiSUUy.mjs → insights-CKTR62Ox.mjs} +5 -5
- package/.output/server/_ssr/{insights-BDa6T_cj.mjs → insights-CbGG5htV.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-BESfPrTq.mjs → insights-api-CqjIxe1A.mjs} +5 -5
- package/.output/server/_ssr/{insights-Din0R0k-.mjs → insights-b3XeQlzF.mjs} +62 -203
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-BD3vjHse.mjs → insights-failures-rpc-fmWHkLhL.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-sVwplV7s.mjs → insights-recovery-rpc-BpwoS9XL.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-BdtBheBi.mjs → insights-rpc-qwXzuBUQ.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-BAaycSRp.mjs → insights-search-B_8PizlM.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Bo5p-cuB.mjs → insights-usage-rpc-Cbg82l2g.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DCkLNAlG.mjs → insights-usage-rpc-D8lgk1Sk.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-D4QQxZmG.mjs → insights_.distribution--XTBM-oT.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-DoO2NDvS.mjs → insights_.distribution-DTaKryjw.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-5sgau7rB.mjs → insights_.distribution-Ed2vqrwP.mjs} +5 -5
- package/.output/server/_ssr/{installations-W6DXZ5Tp.mjs → installations-Ce_9dNq0.mjs} +2 -2
- package/.output/server/_ssr/{installations-C4MwFvp6.mjs → installations-DyfuFp3L.mjs} +13 -13
- package/.output/server/_ssr/{installations-CZZsFoXb.mjs → installations-W8W7AYwn.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-5kZM1bgU.mjs +149 -0
- package/.output/server/_ssr/iosDeviceCookie-BTfPOUhS.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-BAoo32s_.mjs +176 -0
- package/.output/server/_ssr/iosDevices-DuNmS3td.mjs +132 -0
- package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-0tXDLTsd.mjs +1517 -0
- package/.output/server/_ssr/{native-builds-BhBltXq2.mjs → native-builds-1s5DIHa2.mjs} +3 -3
- package/.output/server/_ssr/native-builds-DEyFHKDa.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/native-builds_._buildId-ElCXKaXI.mjs +1194 -0
- package/.output/server/_ssr/{native-builds_._buildId-B5QgMg7D.mjs → native-builds_._buildId-mJ8i0pL8.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-DNWZLCra.mjs +858 -0
- package/.output/server/_ssr/native-builds_.devices-Dz8b48Fo.mjs +10 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-D8Se_CCi.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DemC_4Zc.mjs +256 -0
- package/.output/server/_ssr/nativeBuilds-BFSeuC75.mjs +306 -0
- package/.output/server/_ssr/plistText-BORUpyEb.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-C3sNbafy.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-T00z1y9o.mjs → release-adoption-rpc-1mKibOdV.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CuL3ptgg.mjs} +5 -4
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-bTCPTVky.mjs → remote-config-C_HNYPZ_.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-Wjia3haX.mjs → remote-config-D2Cohnwn.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-D6YMPi4J.mjs → remote-config-q9fegj-G.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-7Zvra2dm.mjs → remote-config-rpc-6hfHFrO6.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-CLK13IPD.mjs → router-DODxASKG.mjs} +137 -64
- package/.output/server/_ssr/{routes-CbdYptnV.mjs → routes-BJjTUNSe.mjs} +489 -474
- package/.output/server/_ssr/{routes-h_nOUmOr.mjs → routes-C-nYThl0.mjs} +50 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-yB9ioGZE.mjs → schema-migration-rpc-C31JquTn.mjs} +5 -5
- package/.output/server/_ssr/{select-BdzEzz-x.mjs → select-CjACvu9s.mjs} +12 -10
- package/.output/server/_ssr/{server-CddZkHk2.mjs → server-Dyw2qgSR.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-DabmjV5E.mjs → sidebar-DQkRAO_e.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
- package/.output/server/_ssr/{switch-84dzb1yG.mjs → switch-DZJSRVl3.mjs} +4 -4
- package/.output/server/_ssr/{table-DP978C4F.mjs → table-BA-6GQFs.mjs} +2 -2
- package/.output/server/_ssr/tabs-CtB3PIts.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DcCONz23.mjs} +8 -5
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-Bfv6fYk6.mjs +229 -0
- package/.output/server/index.mjs +487 -375
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/DataTable.tsx +363 -0
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/HashValueDisplay.tsx +27 -8
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +63 -0
- package/src/components/TargetDisplay.tsx +95 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
- package/src/components/features/bundles/BundleMetadata.tsx +22 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +10 -69
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
- package/src/components/features/insights/ReleaseActivity.tsx +6 -2
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +36 -10
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
- package/src/components/features/native-builds/CommitLink.tsx +3 -2
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +378 -93
- package/src/components/features/native-builds/IosDevicesPage.tsx +1145 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +123 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +36 -9
- package/src/components/features/native-builds/NativeBuildsNav.tsx +45 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
- package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +28 -19
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
- package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +6 -3
- package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
- package/src/components/features/native-builds/playTracks.ts +7 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/button.tsx +11 -2
- package/src/components/ui/combobox.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +15 -7
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +3 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +125 -35
- package/src/lib/api.ts +171 -16
- package/src/lib/constants.ts +18 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +304 -0
- package/src/lib/ios-devices-rpc.ts +215 -0
- package/src/lib/native-builds.ts +261 -20
- package/src/lib/schema-migration-rpc.ts +1 -1
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +221 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +232 -0
- package/src/lib/server/iosDevices.ts +232 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +513 -0
- package/src/lib/server/nativeBuilds.ts +327 -59
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/lib/server/updateFailures.ts +6 -1
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +61 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +657 -577
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
- package/.output/public/assets/dist-CPlO6ko9.js +0 -1
- package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
- package/.output/public/assets/field-D-2-mnNh.js +0 -1
- package/.output/public/assets/history-DqHlgSuV.js +0 -1
- package/.output/public/assets/index-CqP5HPV6.js +0 -10
- package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-B674P5Z5.js +0 -2
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/plus-BReVKct-.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/search-BCel4Oy6.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
- package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/switch-BpdiHL_t.js +0 -1
- package/.output/public/assets/table-Bpy3SvSo.js +0 -1
- package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
- package/.output/public/assets/useCompositeListItem-JmyDfo3-.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
- package/.output/server/_ssr/HashValueDisplay-B85-LoBW.mjs +0 -55
- package/.output/server/_ssr/RolloutPercentageBadge-CKFY5OIh.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CNukW8xF.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-CoOxssXa.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-CysSVBT5.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
- package/.output/server/_ssr/tabs-kQRMEiQT.mjs +0 -45
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- package/src/lib/server/nativeBuildQr.ts +0 -73
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
|
@@ -11,8 +11,17 @@ import type { ReleaseCatalogDescriptor } from "@hot-updater/protocol";
|
|
|
11
11
|
import {
|
|
12
12
|
nativeBuildCatalogScopeKey,
|
|
13
13
|
nativeBuildChannel,
|
|
14
|
+
nativeBuildPathKey,
|
|
14
15
|
nativeBuildScope,
|
|
15
16
|
} from "../native-builds";
|
|
17
|
+
import {
|
|
18
|
+
FOLDED_PAGE_CHUNK,
|
|
19
|
+
FOLDED_PAGE_READ_BUDGET,
|
|
20
|
+
type FoldedPage,
|
|
21
|
+
foldedPage,
|
|
22
|
+
type ReadBudget,
|
|
23
|
+
readFold,
|
|
24
|
+
} from "./foldedPage";
|
|
16
25
|
|
|
17
26
|
export interface KeysetPageInput {
|
|
18
27
|
/** Rows older than this key: the next page. */
|
|
@@ -36,7 +45,7 @@ export interface KeysetPage<T> {
|
|
|
36
45
|
* page, oldest first (then reversed) for the previous one. `next` is set
|
|
37
46
|
* for a full page, so the last page may lead to an empty one.
|
|
38
47
|
*/
|
|
39
|
-
async function keysetPage<T>(
|
|
48
|
+
export async function keysetPage<T>(
|
|
40
49
|
read: (input: KeysetInput) => Promise<readonly T[]>,
|
|
41
50
|
keyOf: (row: T) => string,
|
|
42
51
|
{ before, after, limit }: KeysetPageInput,
|
|
@@ -63,32 +72,6 @@ async function keysetPage<T>(
|
|
|
63
72
|
};
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
export interface NativeBuildListInput extends KeysetPageInput {
|
|
67
|
-
/** Only the builds that embed this channel ID. */
|
|
68
|
-
readonly channelId?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type NativeBuildListResult = KeysetPage<NativeBuildRow>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* One page of native builds, newest first: one read of the registry's ID
|
|
75
|
-
* index, or of its channel index for one channel's builds.
|
|
76
|
-
*/
|
|
77
|
-
export function listNativeBuilds(
|
|
78
|
-
core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
|
|
79
|
-
{ channelId, ...page }: NativeBuildListInput,
|
|
80
|
-
): Promise<NativeBuildListResult> {
|
|
81
|
-
return keysetPage(
|
|
82
|
-
(input) =>
|
|
83
|
-
core.listNativeBuilds({
|
|
84
|
-
...input,
|
|
85
|
-
...(channelId === undefined ? {} : { channelId }),
|
|
86
|
-
}),
|
|
87
|
-
({ id }) => id,
|
|
88
|
-
page,
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
75
|
/** A patch from a build's built-in bundle: the bundle it updates to, and its size. */
|
|
93
76
|
export interface NativeBuildPatch {
|
|
94
77
|
readonly bundleId: string;
|
|
@@ -132,10 +115,15 @@ export interface NativeBuildDetail {
|
|
|
132
115
|
/** How many bundles patch from the built-in bundle, or null when its row is gone. */
|
|
133
116
|
readonly builtInBundle: { readonly childCount: number } | null;
|
|
134
117
|
/**
|
|
135
|
-
* The newest build of the build's scope
|
|
136
|
-
*
|
|
118
|
+
* The newest build of the build's scope: this build or a later one. Null for
|
|
119
|
+
* a sandbox build, whose scope has no patch base.
|
|
137
120
|
*/
|
|
138
121
|
readonly newestInScope: NativeBuildRow | null;
|
|
122
|
+
/**
|
|
123
|
+
* The build marked as the store build in the scope. New deploys patch from it,
|
|
124
|
+
* or with no mark from the newest build. Null for a sandbox build.
|
|
125
|
+
*/
|
|
126
|
+
readonly storeBuildInScope: NativeBuildRow | null;
|
|
139
127
|
/**
|
|
140
128
|
* The releases the update check serves an install of this build now,
|
|
141
129
|
* newest first: the scope's catalog, at the build's app version, down to
|
|
@@ -144,12 +132,19 @@ export interface NativeBuildDetail {
|
|
|
144
132
|
readonly servedNow: readonly ReleaseCatalogDescriptor[];
|
|
145
133
|
/** The newest page of patches from the built-in bundle. */
|
|
146
134
|
readonly patches: NativeBuildPatchPage;
|
|
135
|
+
/**
|
|
136
|
+
* The newest build of the other install target of a sandbox iOS build's
|
|
137
|
+
* native code, its Simulator `.app` or its ad hoc `.ipa`, or null.
|
|
138
|
+
*/
|
|
139
|
+
readonly sibling: NativeBuildRow | null;
|
|
147
140
|
}
|
|
148
141
|
|
|
149
142
|
/**
|
|
150
|
-
* Everything a native build's page shows, in
|
|
151
|
-
*
|
|
152
|
-
*
|
|
143
|
+
* Everything a native build's page shows, in six reads at most: the build,
|
|
144
|
+
* then its built-in bundle, its scope's newest build and its mark, which a
|
|
145
|
+
* marked build's own row answers and a sandbox build skips, its scope's
|
|
146
|
+
* catalog, and one page of patches from it. A sandbox iOS build reads one
|
|
147
|
+
* more, its other install target. Null for an unknown ID.
|
|
153
148
|
*/
|
|
154
149
|
export async function getNativeBuildDetail(
|
|
155
150
|
core: Pick<
|
|
@@ -159,20 +154,34 @@ export async function getNativeBuildDetail(
|
|
|
159
154
|
| "findNativeBuild"
|
|
160
155
|
| "getReleaseCatalogRow"
|
|
161
156
|
| "listPatchesFromBase"
|
|
157
|
+
| "findNativeBuildSibling"
|
|
162
158
|
>,
|
|
163
159
|
id: string,
|
|
164
160
|
): Promise<NativeBuildDetail | null> {
|
|
165
161
|
const build = await core.getNativeBuild(id);
|
|
166
162
|
if (build === null) return null;
|
|
167
163
|
const catalogScopeKey = nativeBuildCatalogScopeKey(build);
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
const scope = nativeBuildScope(build);
|
|
165
|
+
// A sandbox build's built-in bundle is no patch base, so its page names
|
|
166
|
+
// none and reads none.
|
|
167
|
+
const [builtIn, newestInScope, storeBuildInScope, catalog, patches, sibling] =
|
|
168
|
+
await Promise.all([
|
|
169
|
+
core.getBundle(build.min_bundle_id),
|
|
170
|
+
build.is_sandbox ? null : core.findNativeBuild(scope),
|
|
171
|
+
build.is_sandbox
|
|
172
|
+
? null
|
|
173
|
+
: build.is_store_build
|
|
174
|
+
? build
|
|
175
|
+
: core.findNativeBuild(scope, { storeBuild: true }),
|
|
176
|
+
core.getReleaseCatalogRow(catalogScopeKey),
|
|
177
|
+
listNativeBuildPatches(core, build.min_bundle_id, {
|
|
178
|
+
limit: NATIVE_BUILD_PATCH_PAGE_SIZE,
|
|
179
|
+
}),
|
|
180
|
+
// Only a sandbox iOS build has another install target.
|
|
181
|
+
build.is_sandbox && build.platform === "ios"
|
|
182
|
+
? core.findNativeBuildSibling(build)
|
|
183
|
+
: null,
|
|
184
|
+
]);
|
|
176
185
|
const servedNow =
|
|
177
186
|
catalog === null || catalog.is_tombstone
|
|
178
187
|
? []
|
|
@@ -191,8 +200,10 @@ export async function getNativeBuildDetail(
|
|
|
191
200
|
catalogScopeKey,
|
|
192
201
|
builtInBundle: builtIn === null ? null : { childCount: builtIn.childCount },
|
|
193
202
|
newestInScope,
|
|
203
|
+
storeBuildInScope,
|
|
194
204
|
servedNow,
|
|
195
205
|
patches,
|
|
206
|
+
sibling,
|
|
196
207
|
};
|
|
197
208
|
}
|
|
198
209
|
|
|
@@ -207,6 +218,22 @@ const storageFor = (storage: StorageAdapter, storageUri: string) =>
|
|
|
207
218
|
const isPublicUrl = (storageUri: string) =>
|
|
208
219
|
["http", "https"].includes(protocolOf(storageUri));
|
|
209
220
|
|
|
221
|
+
/**
|
|
222
|
+
* The URL a build's artifact downloads from without the console's sign-in: the
|
|
223
|
+
* storage's download URL, which may expire. Null when the storage gives none.
|
|
224
|
+
*/
|
|
225
|
+
export async function nativeBuildArtifactUrl(
|
|
226
|
+
build: Pick<NativeBuildRow, "artifact_storage_uri">,
|
|
227
|
+
storage: StorageAdapter,
|
|
228
|
+
): Promise<string | null> {
|
|
229
|
+
const storageUri = build.artifact_storage_uri;
|
|
230
|
+
const adapter = storageFor(storage, storageUri);
|
|
231
|
+
if (adapter?.getDownloadUrl !== undefined) {
|
|
232
|
+
return (await adapter.getDownloadUrl({ storageUri })).url;
|
|
233
|
+
}
|
|
234
|
+
return adapter === undefined && isPublicUrl(storageUri) ? storageUri : null;
|
|
235
|
+
}
|
|
236
|
+
|
|
210
237
|
/**
|
|
211
238
|
* The URL a phone downloads a native build's artifact from, without the
|
|
212
239
|
* console's sign-in: the storage's download URL, which may expire. Null
|
|
@@ -223,20 +250,50 @@ export async function resolveNativeBuildDownloadUrl(
|
|
|
223
250
|
},
|
|
224
251
|
): Promise<string | null> {
|
|
225
252
|
const build = await core.getNativeBuild(id);
|
|
226
|
-
|
|
227
|
-
const storageUri = build.artifact_storage_uri;
|
|
228
|
-
const adapter = storageFor(storage, storageUri);
|
|
229
|
-
if (adapter?.getDownloadUrl !== undefined) {
|
|
230
|
-
return (await adapter.getDownloadUrl({ storageUri })).url;
|
|
231
|
-
}
|
|
232
|
-
return adapter === undefined && isPublicUrl(storageUri) ? storageUri : null;
|
|
253
|
+
return build === null ? null : nativeBuildArtifactUrl(build, storage);
|
|
233
254
|
}
|
|
234
255
|
|
|
256
|
+
/**
|
|
257
|
+
* What Android's browser offers to install. An upload stores it, so a redirect
|
|
258
|
+
* to the storage serves it too; a streamed download sets it, for a storage
|
|
259
|
+
* whose `get` keeps no type.
|
|
260
|
+
*/
|
|
261
|
+
const APK_CONTENT_TYPE = "application/vnd.android.package-archive";
|
|
262
|
+
|
|
263
|
+
const noStoreRedirect = (url: string) =>
|
|
264
|
+
new Response(null, {
|
|
265
|
+
headers: { "cache-control": "private, no-store", location: url },
|
|
266
|
+
status: 302,
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The URL a browser or script can fetch the object from by itself, or null
|
|
271
|
+
* when the storage gives none, or gives one only it can read. When the
|
|
272
|
+
* storage can't serve the object any other way, its failure stands.
|
|
273
|
+
*/
|
|
274
|
+
const publicDownloadUrl = async (
|
|
275
|
+
adapter: StorageAdapter,
|
|
276
|
+
storageUri: string,
|
|
277
|
+
): Promise<string | null> => {
|
|
278
|
+
if (adapter.getDownloadUrl === undefined) return null;
|
|
279
|
+
try {
|
|
280
|
+
const { url } = await adapter.getDownloadUrl({ storageUri });
|
|
281
|
+
return /^https?:\/\//iu.test(url) ? url : null;
|
|
282
|
+
} catch (error) {
|
|
283
|
+
if (adapter.get === undefined) throw error;
|
|
284
|
+
console.warn(
|
|
285
|
+
`Streaming a native build through the console: ${adapter.name} gave no download URL.`,
|
|
286
|
+
error,
|
|
287
|
+
);
|
|
288
|
+
return null;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
235
292
|
/**
|
|
236
293
|
* Downloads a native build's artifact: a redirect to the storage's download
|
|
237
|
-
* URL, or the
|
|
238
|
-
*
|
|
239
|
-
* never expires.
|
|
294
|
+
* URL, or, when the storage gives no URL a browser can fetch, the object
|
|
295
|
+
* streamed through the console, whose host then serves every byte. The
|
|
296
|
+
* redirect is resolved on each request, so the console's link never expires.
|
|
240
297
|
*/
|
|
241
298
|
export async function downloadNativeBuild(
|
|
242
299
|
id: string,
|
|
@@ -253,13 +310,8 @@ export async function downloadNativeBuild(
|
|
|
253
310
|
|
|
254
311
|
const storageUri = build.artifact_storage_uri;
|
|
255
312
|
const adapter = storageFor(storage, storageUri);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
return new Response(null, {
|
|
259
|
-
headers: { "cache-control": "private, no-store", location: url },
|
|
260
|
-
status: 302,
|
|
261
|
-
});
|
|
262
|
-
}
|
|
313
|
+
const url = adapter && (await publicDownloadUrl(adapter, storageUri));
|
|
314
|
+
if (url) return noStoreRedirect(url);
|
|
263
315
|
if (adapter?.get !== undefined) {
|
|
264
316
|
const { response } = await adapter.get({ storageUri });
|
|
265
317
|
if (!response) {
|
|
@@ -268,9 +320,13 @@ export async function downloadNativeBuild(
|
|
|
268
320
|
const fileName = decodeURIComponent(storageUri.split("/").at(-1) ?? "");
|
|
269
321
|
const headers = new Headers(response.headers);
|
|
270
322
|
headers.set("cache-control", "private, no-store");
|
|
323
|
+
if (build.artifact_kind === "apk") {
|
|
324
|
+
headers.set("content-type", APK_CONTENT_TYPE);
|
|
325
|
+
}
|
|
271
326
|
headers.set(
|
|
272
327
|
"content-disposition",
|
|
273
|
-
`
|
|
328
|
+
// `filename` for the clients that don't read `filename*`, such as curl.
|
|
329
|
+
`attachment; filename="${fileName.replace(/[^\w.-]/gu, "_")}"; filename*=UTF-8''${encodeURIComponent(fileName)}`,
|
|
274
330
|
);
|
|
275
331
|
return new Response(response.body, {
|
|
276
332
|
headers,
|
|
@@ -279,10 +335,222 @@ export async function downloadNativeBuild(
|
|
|
279
335
|
});
|
|
280
336
|
}
|
|
281
337
|
if (adapter === undefined && isPublicUrl(storageUri)) {
|
|
282
|
-
return
|
|
338
|
+
return noStoreRedirect(storageUri);
|
|
283
339
|
}
|
|
284
340
|
return new Response(
|
|
285
341
|
`No storage adapter for protocol: ${protocolOf(storageUri)}`,
|
|
286
342
|
{ status: 503 },
|
|
287
343
|
);
|
|
288
344
|
}
|
|
345
|
+
|
|
346
|
+
/** A page of native builds that leads with each distribution path's newest. */
|
|
347
|
+
export type NativeBuildFoldedPage = FoldedPage<NativeBuildRow>;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The most rows one page or fold reads looking above its own rows for a
|
|
351
|
+
* newer build on a path, of its read budget, so its own rows keep the rest.
|
|
352
|
+
*/
|
|
353
|
+
const SIBLING_READ_CAP = 100;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Finds the nearest build newer than each of some builds on its
|
|
357
|
+
* distribution path, by each channel's own index, read upward from where
|
|
358
|
+
* its caller starts and kept, so each channel's rows are read once. The
|
|
359
|
+
* channels are read side by side. Newer is the registry's order: a greater
|
|
360
|
+
* ID. A path is the channel, platform, sandbox flag and distribution
|
|
361
|
+
* (`nativeBuildPathKey`), worked out from the row, so a build registered at
|
|
362
|
+
* any time is found. It spends `budget`, at most `SIBLING_READ_CAP` rows in
|
|
363
|
+
* all, shared out among the channels: a build it can't find a newer one for
|
|
364
|
+
* within that has none it knows of.
|
|
365
|
+
*/
|
|
366
|
+
const newerOnPathFinder = (
|
|
367
|
+
core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
|
|
368
|
+
) => {
|
|
369
|
+
const channels = new Map<
|
|
370
|
+
string,
|
|
371
|
+
{ from: string; rows: NativeBuildRow[]; last?: string; ended: boolean }
|
|
372
|
+
>();
|
|
373
|
+
let spent = 0;
|
|
374
|
+
const lookUp = async (
|
|
375
|
+
build: NativeBuildRow,
|
|
376
|
+
from: string,
|
|
377
|
+
share: ReadBudget,
|
|
378
|
+
): Promise<NativeBuildRow | undefined> => {
|
|
379
|
+
let channel = channels.get(build.channel_id);
|
|
380
|
+
if (channel === undefined || from < channel.from) {
|
|
381
|
+
channel = { from, rows: [], ended: false };
|
|
382
|
+
channels.set(build.channel_id, channel);
|
|
383
|
+
}
|
|
384
|
+
const key = nativeBuildPathKey(build);
|
|
385
|
+
for (;;) {
|
|
386
|
+
// Oldest first, so the first match is the nearest newer build.
|
|
387
|
+
const newer = channel.rows.find(
|
|
388
|
+
(row) => row.id > build.id && nativeBuildPathKey(row) === key,
|
|
389
|
+
);
|
|
390
|
+
if (newer !== undefined) return newer;
|
|
391
|
+
const limit = Math.min(FOLDED_PAGE_CHUNK, share.left);
|
|
392
|
+
if (channel.ended || limit <= 0) return undefined;
|
|
393
|
+
const rows = await core.listNativeBuilds({
|
|
394
|
+
channelId: build.channel_id,
|
|
395
|
+
order: "asc",
|
|
396
|
+
after: channel.last ?? channel.from,
|
|
397
|
+
limit,
|
|
398
|
+
});
|
|
399
|
+
share.left -= rows.length;
|
|
400
|
+
channel.rows.push(...rows);
|
|
401
|
+
channel.last = rows.at(-1)?.id ?? channel.last;
|
|
402
|
+
if (rows.length < limit) channel.ended = true;
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
return async (
|
|
406
|
+
builds: readonly NativeBuildRow[],
|
|
407
|
+
from: string,
|
|
408
|
+
budget: ReadBudget,
|
|
409
|
+
): Promise<ReadonlyMap<string, NativeBuildRow | undefined>> => {
|
|
410
|
+
const byChannel = new Map<string, NativeBuildRow[]>();
|
|
411
|
+
for (const build of builds) {
|
|
412
|
+
byChannel.set(build.channel_id, [
|
|
413
|
+
...(byChannel.get(build.channel_id) ?? []),
|
|
414
|
+
build,
|
|
415
|
+
]);
|
|
416
|
+
}
|
|
417
|
+
const allowance = Math.max(
|
|
418
|
+
0,
|
|
419
|
+
Math.min(budget.left, SIBLING_READ_CAP - spent),
|
|
420
|
+
);
|
|
421
|
+
const share = Math.floor(allowance / Math.max(byChannel.size, 1));
|
|
422
|
+
const found = new Map<string, NativeBuildRow | undefined>();
|
|
423
|
+
const used = await Promise.all(
|
|
424
|
+
[...byChannel.values()].map(async (channelBuilds) => {
|
|
425
|
+
const left: ReadBudget = { left: share };
|
|
426
|
+
for (const build of channelBuilds) {
|
|
427
|
+
found.set(build.id, await lookUp(build, from, left));
|
|
428
|
+
}
|
|
429
|
+
return share - left.left;
|
|
430
|
+
}),
|
|
431
|
+
);
|
|
432
|
+
const total = used.reduce((sum, rows) => sum + rows, 0);
|
|
433
|
+
budget.left -= total;
|
|
434
|
+
spent += total;
|
|
435
|
+
return found;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* One page of native builds, newest first, that leads with the newest build
|
|
441
|
+
* of each distribution path, and the store build: every other build folds
|
|
442
|
+
* into the runs between them. It reads the registry's ID index, or its
|
|
443
|
+
* channel index, a chunk at a time, and on a later page each path's newer
|
|
444
|
+
* builds above the page in its channel's index, at most
|
|
445
|
+
* `FOLDED_PAGE_READ_BUDGET` rows in all.
|
|
446
|
+
*/
|
|
447
|
+
export function listNativeBuildFolds(
|
|
448
|
+
core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
|
|
449
|
+
{
|
|
450
|
+
channelId,
|
|
451
|
+
before,
|
|
452
|
+
after,
|
|
453
|
+
}: {
|
|
454
|
+
readonly channelId?: string;
|
|
455
|
+
readonly before?: string;
|
|
456
|
+
readonly after?: string;
|
|
457
|
+
},
|
|
458
|
+
): Promise<NativeBuildFoldedPage> {
|
|
459
|
+
const findNewer = newerOnPathFinder(core);
|
|
460
|
+
// The newest build of each path this page has read, newest first.
|
|
461
|
+
const seen = new Map<string, NativeBuildRow>();
|
|
462
|
+
return foldedPage({
|
|
463
|
+
read: (input) =>
|
|
464
|
+
core.listNativeBuilds({
|
|
465
|
+
...input,
|
|
466
|
+
...(channelId === undefined ? {} : { channelId }),
|
|
467
|
+
}),
|
|
468
|
+
classify: async (builds, { budget, order, newerThan }) => {
|
|
469
|
+
const ordinary = new Set<string>();
|
|
470
|
+
if (order === "asc") {
|
|
471
|
+
// Oldest first, each build looks above itself.
|
|
472
|
+
const newer = await findNewer(builds, builds[0]!.id, budget);
|
|
473
|
+
for (const build of builds) {
|
|
474
|
+
if (build.is_store_build || newer.get(build.id) === undefined) {
|
|
475
|
+
ordinary.add(build.id);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return ordinary;
|
|
479
|
+
}
|
|
480
|
+
// Newest first, a path's first build on the page looks above the
|
|
481
|
+
// page, and the rest have it as their newer build.
|
|
482
|
+
const firsts: NativeBuildRow[] = [];
|
|
483
|
+
const keys = new Set(seen.keys());
|
|
484
|
+
for (const build of builds) {
|
|
485
|
+
const key = nativeBuildPathKey(build);
|
|
486
|
+
if (!keys.has(key)) {
|
|
487
|
+
keys.add(key);
|
|
488
|
+
firsts.push(build);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
const above =
|
|
492
|
+
newerThan === undefined
|
|
493
|
+
? new Map<string, NativeBuildRow | undefined>()
|
|
494
|
+
: await findNewer(firsts, newerThan, budget);
|
|
495
|
+
for (const build of builds) {
|
|
496
|
+
const key = nativeBuildPathKey(build);
|
|
497
|
+
const newer = seen.get(key) ?? above.get(build.id);
|
|
498
|
+
if (!seen.has(key)) seen.set(key, build);
|
|
499
|
+
if (build.is_store_build || newer === undefined) {
|
|
500
|
+
ordinary.add(build.id);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return ordinary;
|
|
504
|
+
},
|
|
505
|
+
...(before === undefined ? {} : { before }),
|
|
506
|
+
...(after === undefined ? {} : { after }),
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/** One chunk of a fold's builds, each with the newer build on its path. */
|
|
511
|
+
export interface NativeBuildFoldChunk {
|
|
512
|
+
readonly rows: readonly NativeBuildRow[];
|
|
513
|
+
/** The nearest newer build on each row's path, by row ID, where one was found. */
|
|
514
|
+
readonly newer: Readonly<Record<string, NativeBuildRow>>;
|
|
515
|
+
readonly next?: string;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* One chunk of a fold's builds, as `listNativeBuildFolds` folded them: the
|
|
520
|
+
* builds under `from` down to `to`, and each one's nearest newer build,
|
|
521
|
+
* read from its channel's index upward within the read budget.
|
|
522
|
+
*/
|
|
523
|
+
export async function readNativeBuildFold(
|
|
524
|
+
core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
|
|
525
|
+
{
|
|
526
|
+
channelId,
|
|
527
|
+
...fold
|
|
528
|
+
}: {
|
|
529
|
+
readonly channelId?: string;
|
|
530
|
+
readonly from?: string;
|
|
531
|
+
readonly to: string;
|
|
532
|
+
readonly after?: string;
|
|
533
|
+
},
|
|
534
|
+
): Promise<NativeBuildFoldChunk> {
|
|
535
|
+
const chunk = await readFold({
|
|
536
|
+
read: (input) =>
|
|
537
|
+
core.listNativeBuilds({
|
|
538
|
+
...input,
|
|
539
|
+
...(channelId === undefined ? {} : { channelId }),
|
|
540
|
+
}),
|
|
541
|
+
...fold,
|
|
542
|
+
});
|
|
543
|
+
const budget: ReadBudget = {
|
|
544
|
+
left: FOLDED_PAGE_READ_BUDGET - chunk.rows.length,
|
|
545
|
+
};
|
|
546
|
+
const oldest = chunk.rows.at(-1)?.id;
|
|
547
|
+
const found =
|
|
548
|
+
oldest === undefined
|
|
549
|
+
? new Map<string, NativeBuildRow | undefined>()
|
|
550
|
+
: await newerOnPathFinder(core)(chunk.rows, oldest, budget);
|
|
551
|
+
const newer: Record<string, NativeBuildRow> = {};
|
|
552
|
+
for (const [id, row] of found) {
|
|
553
|
+
if (row !== undefined) newer[id] = row;
|
|
554
|
+
}
|
|
555
|
+
return { ...chunk, newer };
|
|
556
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const ESCAPES: Record<string, string> = {
|
|
2
|
+
"&": "&",
|
|
3
|
+
"<": "<",
|
|
4
|
+
">": ">",
|
|
5
|
+
'"': """,
|
|
6
|
+
"'": "'",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Text as an XML plist's `<string>` holds it. Control characters have no XML
|
|
11
|
+
* form at all, even escaped, so they go.
|
|
12
|
+
*/
|
|
13
|
+
export const escapePlistText = (text: string) =>
|
|
14
|
+
[...text]
|
|
15
|
+
.filter((character) => character >= " " || "\t\n\r".includes(character))
|
|
16
|
+
.map((character) => ESCAPES[character] ?? character)
|
|
17
|
+
.join("");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The console's address and path as a phone reached it, without a trailing
|
|
3
|
+
* slash, from a request to `routePath` under it. A proxy that ends TLS says so
|
|
4
|
+
* in `x-forwarded-proto`, which only upgrades the scheme: the answer goes back
|
|
5
|
+
* to whoever sent the header, and is never cached.
|
|
6
|
+
*/
|
|
7
|
+
export const publicConsoleBase = (request: Request, routePath: string) => {
|
|
8
|
+
const url = new URL(request.url);
|
|
9
|
+
const forwarded = request.headers
|
|
10
|
+
.get("x-forwarded-proto")
|
|
11
|
+
?.split(",")[0]
|
|
12
|
+
?.trim();
|
|
13
|
+
const base = url.pathname.endsWith(routePath)
|
|
14
|
+
? url.pathname.slice(0, -routePath.length)
|
|
15
|
+
: "";
|
|
16
|
+
return `${forwarded === "https" ? "https:" : url.protocol}//${url.host}${base}`;
|
|
17
|
+
};
|
|
@@ -42,7 +42,8 @@ const summed = <T extends { readonly events: number }>(
|
|
|
42
42
|
/**
|
|
43
43
|
* Both platforms' failures as one report. An installation runs on one
|
|
44
44
|
* platform, so its counts and installation estimates add up; the period is
|
|
45
|
-
* complete only where both are
|
|
45
|
+
* complete only where both are, and an hour either read only in part stays
|
|
46
|
+
* listed, so the merged failure counts read as lower bounds too.
|
|
46
47
|
*/
|
|
47
48
|
export function mergeUpdateFailures(
|
|
48
49
|
reports: readonly InsightsUpdateFailures[],
|
|
@@ -56,6 +57,9 @@ export function mergeUpdateFailures(
|
|
|
56
57
|
report.checks ? [report.checks] : [],
|
|
57
58
|
);
|
|
58
59
|
const breakdowns = reports.flatMap((report) => report.breakdown ?? []);
|
|
60
|
+
const cappedHours = [
|
|
61
|
+
...new Set(reports.flatMap((report) => report.cappedHours ?? [])),
|
|
62
|
+
].sort((left, right) => left - right);
|
|
59
63
|
return {
|
|
60
64
|
coverage:
|
|
61
65
|
latestSince !== null &&
|
|
@@ -105,6 +109,7 @@ export function mergeUpdateFailures(
|
|
|
105
109
|
),
|
|
106
110
|
}
|
|
107
111
|
: {}),
|
|
112
|
+
...(cappedHours.length === 0 ? {} : { cappedHours }),
|
|
108
113
|
};
|
|
109
114
|
}
|
|
110
115
|
|