@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.41
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-BFcW2mlI.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelBadge-BgVCJfJs.js +1 -0
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/CompositeItem-B7uxFM46.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/HashValueDisplay-DvwvQchI.js +1 -0
- package/.output/public/assets/InsightsPageHeader-BjUAikRe.js +1 -0
- package/.output/public/assets/IosInstall-B5IdjCP2.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BKdnlKMN.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-5ZP9WlQ6.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DCtG7c1o.js +1 -0
- package/.output/public/assets/RowReason-CXMCJ-Jc.js +1 -0
- package/.output/public/assets/SandboxBadge-PM92jCk6.js +1 -0
- package/.output/public/assets/TargetDisplay-DG_I3qln.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-eO-sq3Jd.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/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-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-C5gi7fdZ.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-Ck4fZq4M.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/insights-search-CZtvD-Vf.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Cws8lYLC.js +1 -0
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-Byojb0Rv.js +2 -0
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -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-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CXx2xjoI.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/preload-helper-CE9OukVC.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/remote-config-Dm1MCHDN.js +1 -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-9gxYg__u.js +1 -0
- package/.output/public/assets/routes-CUsayL0T.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-Bk52fOVX.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-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-BnpNC0zf.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-JmyDfo3-.js → useCompositeListItem-Cbk_weKW.js} +1 -1
- 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-X9YQcrQI.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.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 +34 -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-Bwt8tQzp.mjs +55 -0
- package/.output/server/_ssr/{BundleIdDisplay-BVrZXzTm.mjs → BundleIdDisplay-By3CbbRM.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-CDup7l56.mjs +23 -0
- package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-VbcnMnSs.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CnC2fHER.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-BuOanVZL.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-BAFhW7Q9.mjs +751 -0
- package/.output/server/_ssr/NativeBuildsNav-BoTu4aLF.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-Bz05xF5Q.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-DWshAW81.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-D5kDQVn1.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +20 -4
- package/.output/server/_ssr/RowReason-pVOWQ7t5.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-DFbUYwhO.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-BtE5vntq.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-tcfkkNUX.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-12_U0SQM.mjs} +14 -11
- package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-BxkfToWI.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-TSnLWB7e.mjs} +83 -35
- package/.output/server/_ssr/{api-CvwqILEx.mjs → api-xOHZxbzu.mjs} +174 -37
- package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-D3w54vsW.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-a2eP6q5P.mjs} +952 -186
- package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-DrfbN1n0.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-DEItjgKG.mjs +49 -0
- package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-K8dd4dRv.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-D-DHU4YH.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-FvbqhbTg.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-_31L0k1i.mjs} +4 -4
- package/.output/server/_ssr/constants-BjsJZqaU.mjs +10 -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-GmTPeUS4.mjs → dialog-SAl1vP74.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-CXWKv24M.mjs → empty-opJc9Fjw.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-lwIHAwLc.mjs → field-D6Y7zDZd.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-Dgr4DNbE.mjs → input-group-D2PvPRdm.mjs} +3 -3
- package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-Cro4cYp7.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-BPyvQert.mjs} +5 -5
- package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-dWeLneo1.mjs} +45 -191
- 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-Cxu3UtyB.mjs → insights-failures-rpc-D7M8-Et9.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-BZZ4U2Ll.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-Czi553oN.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-BXvUr-z6.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
- package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-vmCmvfXx.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-B5V_NbK4.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
- package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-B7w4LGJp.mjs} +4 -4
- package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-B84kSetd.mjs} +2 -2
- package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-bieZA3xt.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-DOQg4dpb.mjs +137 -0
- package/.output/server/_ssr/iosDeviceCookie-DhWNFpC6.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-jC8w4zEF.mjs +176 -0
- package/.output/server/_ssr/iosDevices-B4kQLURA.mjs +113 -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-D4ZISXRZ.mjs +1517 -0
- package/.output/server/_ssr/native-builds-BU9Njiwm.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-zpCsEYyA.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-BJ4R32fq.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-RHUotAYb.mjs +1148 -0
- package/.output/server/_ssr/native-builds_.devices-C0IlQkLv.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-D1Ke-Fc-.mjs +820 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-MCd5xUqP.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DcsqDS-O.mjs +253 -0
- package/.output/server/_ssr/nativeBuilds-CRa36wNn.mjs +287 -0
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-PLyiDnas.mjs → release-adoption-rpc-C4G_d8qK.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- 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-C5j4CfGa.mjs → remote-config-1QZ0HgEu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-CsbpqWAR.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-DkgBxBka.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-KjJA9DC-.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Dy3fmb8q.mjs} +137 -64
- package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-68rZQGee.mjs} +470 -474
- package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-Ug9uqzob.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-mZ_19Wt_.mjs → schema-migration-rpc-kntY9oPm.mjs} +4 -4
- package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-BOKFFr_G.mjs} +12 -10
- package/.output/server/_ssr/{server-y3KoaSil.mjs → server-DetMvRBJ.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-B46houn0.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-YrqCYfP-.mjs → switch-BMYzd71j.mjs} +4 -4
- package/.output/server/_ssr/{table-NHakBPSp.mjs → table-DWrYwJ_a.mjs} +2 -2
- package/.output/server/_ssr/tabs-DusHAcYy.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- 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-CD1q5k0m.mjs +228 -0
- package/.output/server/index.mjs +503 -391
- 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 +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +56 -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 +1 -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 +1 -0
- 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 +316 -91
- package/src/components/features/native-builds/IosDevicesPage.tsx +1100 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +30 -6
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -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 +160 -16
- package/src/lib/constants.ts +15 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +290 -0
- package/src/lib/ios-devices-rpc.ts +188 -0
- package/src/lib/native-builds.ts +261 -20
- 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 +193 -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 +502 -0
- package/src/lib/server/nativeBuilds.ts +314 -58
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +52 -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/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/RolloutPercentageBadge-CoBhJtv9.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CPg_Rn5E.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-BDcOlKnd.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-BjsdQO93.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-BgTTFotk.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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { getRequest } from "@tanstack/react-start/server";
|
|
2
|
+
|
|
3
|
+
import { sameSecret } from "./local-console";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* How long a signed download link works. A link holds its own expiry and the
|
|
7
|
+
* Console stores nothing, so a new one never ends an older one.
|
|
8
|
+
*/
|
|
9
|
+
export const NATIVE_BUILD_DOWNLOAD_LINK_TTL_MS = 30 * 24 * 60 * 60 * 1000;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The Console's secret, which a hosted Console already has for its sessions:
|
|
13
|
+
* a host's guide lists it. Links sign with a key derived from it, so a link
|
|
14
|
+
* is never a signature the sessions could take, and rotating it ends both.
|
|
15
|
+
*/
|
|
16
|
+
export const CONSOLE_SECRET_ENV = "BETTER_AUTH_SECRET";
|
|
17
|
+
|
|
18
|
+
/** The length the Console's deployment guide asks of the secret. */
|
|
19
|
+
const MIN_SECRET_LENGTH = 32;
|
|
20
|
+
|
|
21
|
+
/** Separates the links' key from every other use of the Console's secret. */
|
|
22
|
+
const KEY_CONTEXT = "hot-updater/console/signed-links/v1";
|
|
23
|
+
|
|
24
|
+
/** What a link grants, so a token for anything else never verifies as one. */
|
|
25
|
+
const DOWNLOAD_PURPOSE = "native-build-download";
|
|
26
|
+
|
|
27
|
+
/** `<expiry in Unix seconds>.<HMAC-SHA256, base64url>`. */
|
|
28
|
+
const TOKEN_PATTERN = /^(\d{1,12})\.([A-Za-z0-9_-]{43})$/u;
|
|
29
|
+
|
|
30
|
+
const encoder = new TextEncoder();
|
|
31
|
+
|
|
32
|
+
const hmac = async (key: BufferSource, message: string) =>
|
|
33
|
+
new Uint8Array(
|
|
34
|
+
await crypto.subtle.sign(
|
|
35
|
+
"HMAC",
|
|
36
|
+
await crypto.subtle.importKey(
|
|
37
|
+
"raw",
|
|
38
|
+
key,
|
|
39
|
+
{ name: "HMAC", hash: "SHA-256" },
|
|
40
|
+
false,
|
|
41
|
+
["sign"],
|
|
42
|
+
),
|
|
43
|
+
encoder.encode(message),
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
const base64Url = (bytes: Uint8Array) =>
|
|
48
|
+
btoa(String.fromCharCode(...bytes))
|
|
49
|
+
.replaceAll("+", "-")
|
|
50
|
+
.replaceAll("/", "_")
|
|
51
|
+
.replaceAll("=", "");
|
|
52
|
+
|
|
53
|
+
const signatureOf = async (
|
|
54
|
+
secret: string,
|
|
55
|
+
buildId: string,
|
|
56
|
+
expiresAtSeconds: string,
|
|
57
|
+
) =>
|
|
58
|
+
base64Url(
|
|
59
|
+
await hmac(
|
|
60
|
+
await hmac(encoder.encode(secret), KEY_CONTEXT),
|
|
61
|
+
`${DOWNLOAD_PURPOSE}\n${buildId}\n${expiresAtSeconds}`,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The Console's secret from the host's environment, or undefined without one
|
|
67
|
+
* long enough to sign with. A Worker's secrets come with the request.
|
|
68
|
+
*/
|
|
69
|
+
export const readConsoleSecret = (request: Request): string | undefined => {
|
|
70
|
+
const { runtime } = request as Request & {
|
|
71
|
+
readonly runtime?: {
|
|
72
|
+
readonly cloudflare?: { readonly env?: Record<string, unknown> };
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
const value =
|
|
76
|
+
runtime?.cloudflare?.env?.[CONSOLE_SECRET_ENV] ??
|
|
77
|
+
(typeof process === "undefined"
|
|
78
|
+
? undefined
|
|
79
|
+
: process.env[CONSOLE_SECRET_ENV]);
|
|
80
|
+
const secret = typeof value === "string" ? value.trim() : "";
|
|
81
|
+
return secret.length >= MIN_SECRET_LENGTH ? secret : undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** A token that lets its bearer download one build until `expiresAtMs`. */
|
|
85
|
+
export const createNativeBuildDownloadToken = async (
|
|
86
|
+
secret: string,
|
|
87
|
+
buildId: string,
|
|
88
|
+
expiresAtMs: number,
|
|
89
|
+
): Promise<string> => {
|
|
90
|
+
const expiresAtSeconds = String(Math.floor(expiresAtMs / 1000));
|
|
91
|
+
return `${expiresAtSeconds}.${await signatureOf(secret, buildId, expiresAtSeconds)}`;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Whether a token lets its bearer download `buildId` now. The expiry counts
|
|
96
|
+
* only under a signature that holds, so `expired` says nothing to a forger.
|
|
97
|
+
*/
|
|
98
|
+
export const verifyNativeBuildDownloadToken = async (
|
|
99
|
+
secret: string,
|
|
100
|
+
buildId: string,
|
|
101
|
+
token: string,
|
|
102
|
+
now: number = Date.now(),
|
|
103
|
+
): Promise<"valid" | "expired" | "invalid"> => {
|
|
104
|
+
const match = TOKEN_PATTERN.exec(token);
|
|
105
|
+
if (match === null) return "invalid";
|
|
106
|
+
const [, expiresAtSeconds, signature] = match as unknown as [
|
|
107
|
+
string,
|
|
108
|
+
string,
|
|
109
|
+
string,
|
|
110
|
+
];
|
|
111
|
+
// Compares base64url text rather than decoded bytes: a signature's last
|
|
112
|
+
// character carries unused bits, so a changed one could decode the same.
|
|
113
|
+
if (
|
|
114
|
+
!sameSecret(signature, await signatureOf(secret, buildId, expiresAtSeconds))
|
|
115
|
+
) {
|
|
116
|
+
return "invalid";
|
|
117
|
+
}
|
|
118
|
+
return now >= Number(expiresAtSeconds) * 1000 ? "expired" : "valid";
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const refusal = (message: string) =>
|
|
122
|
+
new Response(message, {
|
|
123
|
+
status: 403,
|
|
124
|
+
headers: {
|
|
125
|
+
"cache-control": "no-store",
|
|
126
|
+
"content-type": "text/plain; charset=utf-8",
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The 403 for a download link's token, or undefined when it lets its bearer
|
|
132
|
+
* download `buildId`. The answer never repeats the token.
|
|
133
|
+
*/
|
|
134
|
+
export const refuseNativeBuildDownloadToken = async (
|
|
135
|
+
request: Request,
|
|
136
|
+
buildId: string,
|
|
137
|
+
token: string,
|
|
138
|
+
): Promise<Response | undefined> => {
|
|
139
|
+
const secret = readConsoleSecret(request);
|
|
140
|
+
if (secret === undefined) {
|
|
141
|
+
return refusal(
|
|
142
|
+
`This Console can't check download links. Set ${CONSOLE_SECRET_ENV} on it.`,
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
switch (await verifyNativeBuildDownloadToken(secret, buildId, token)) {
|
|
146
|
+
case "valid":
|
|
147
|
+
return undefined;
|
|
148
|
+
case "expired":
|
|
149
|
+
return refusal(
|
|
150
|
+
"This download link has expired. Open the build's Console page for a new one.",
|
|
151
|
+
);
|
|
152
|
+
case "invalid":
|
|
153
|
+
return refusal(
|
|
154
|
+
"This download link isn't valid. Open the build's Console page for a new one.",
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export type NativeBuildDownloadLinkResult =
|
|
160
|
+
| {
|
|
161
|
+
readonly status: "issued";
|
|
162
|
+
/** The `t` query parameter of the build's download route. */
|
|
163
|
+
readonly token: string;
|
|
164
|
+
readonly expiresAt: string;
|
|
165
|
+
}
|
|
166
|
+
/** The local console's lock asks for its session on every route. */
|
|
167
|
+
| { readonly status: "local-console" }
|
|
168
|
+
| { readonly status: "no-secret"; readonly secretName: string };
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* A new signed download link's token, for a caller the Console already let
|
|
172
|
+
* in. It reads nothing and stores nothing.
|
|
173
|
+
*/
|
|
174
|
+
export const issueNativeBuildDownloadLink = async (
|
|
175
|
+
buildId: string,
|
|
176
|
+
request: Request = getRequest(),
|
|
177
|
+
now: number = Date.now(),
|
|
178
|
+
ttlMs: number = NATIVE_BUILD_DOWNLOAD_LINK_TTL_MS,
|
|
179
|
+
): Promise<NativeBuildDownloadLinkResult> => {
|
|
180
|
+
const { default: localConsoleGuard } =
|
|
181
|
+
await import("virtual:hot-updater-console/request-guard");
|
|
182
|
+
if (localConsoleGuard !== undefined) return { status: "local-console" };
|
|
183
|
+
const secret = readConsoleSecret(request);
|
|
184
|
+
if (secret === undefined) {
|
|
185
|
+
return { status: "no-secret", secretName: CONSOLE_SECRET_ENV };
|
|
186
|
+
}
|
|
187
|
+
const expiresAt = now + ttlMs;
|
|
188
|
+
return {
|
|
189
|
+
status: "issued",
|
|
190
|
+
token: await createNativeBuildDownloadToken(secret, buildId, expiresAt),
|
|
191
|
+
expiresAt: new Date(expiresAt).toISOString(),
|
|
192
|
+
};
|
|
193
|
+
};
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
HotUpdaterCoreApi,
|
|
3
|
+
IosDeviceRow,
|
|
4
|
+
NativeBuildRow,
|
|
5
|
+
StorageAdapter,
|
|
6
|
+
} from "@hot-updater/plugin-core";
|
|
7
|
+
import {
|
|
8
|
+
type ByteSource,
|
|
9
|
+
type IpaInstallInfo,
|
|
10
|
+
normalizeIosUdid,
|
|
11
|
+
readIpaInstallInfo,
|
|
12
|
+
} from "@hot-updater/protocol/native-artifact";
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM,
|
|
16
|
+
NATIVE_BUILD_INSTALL_LINK_TTL_MS,
|
|
17
|
+
nativeBuildDownloadPath,
|
|
18
|
+
nativeBuildManifestPath,
|
|
19
|
+
} from "../native-builds";
|
|
20
|
+
import { listIosDevices } from "./iosDevices";
|
|
21
|
+
import {
|
|
22
|
+
issueNativeBuildDownloadLink,
|
|
23
|
+
type NativeBuildDownloadLinkResult,
|
|
24
|
+
refuseNativeBuildDownloadToken,
|
|
25
|
+
} from "./nativeBuildDownloadLink";
|
|
26
|
+
import { nativeBuildArtifactUrl } from "./nativeBuilds";
|
|
27
|
+
import { escapePlistText } from "./plistText";
|
|
28
|
+
import { publicConsoleBase } from "./publicConsoleBase";
|
|
29
|
+
|
|
30
|
+
const KiB = 1024;
|
|
31
|
+
const MiB = 1024 * KiB;
|
|
32
|
+
/**
|
|
33
|
+
* What one request asks for at least: a zip entry's local header and, for
|
|
34
|
+
* something the size of a profile, its data, so reading one takes one request.
|
|
35
|
+
*/
|
|
36
|
+
const READ_AHEAD_BYTES = 64 * KiB;
|
|
37
|
+
/** How many requests' bytes stay at hand: the archive's tail, and its entries. */
|
|
38
|
+
const KEPT_BLOCKS = 4;
|
|
39
|
+
/** The most one IPA's reading downloads: a directory and a few small files. */
|
|
40
|
+
const MAX_BYTES = 16 * MiB;
|
|
41
|
+
/** The most requests one IPA's reading makes, past a dozen extensions' profiles. */
|
|
42
|
+
const MAX_REQUESTS = 24;
|
|
43
|
+
const REQUEST_TIMEOUT_MS = 15_000;
|
|
44
|
+
|
|
45
|
+
/** Why a remote artifact can't be read in parts. */
|
|
46
|
+
export class RangeSourceError extends Error {
|
|
47
|
+
override readonly name = "RangeSourceError";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The bytes of `url` by HTTP Range requests, without ever downloading the
|
|
52
|
+
* file: a server that answers a Range request with the whole file (200) is
|
|
53
|
+
* cut off at once, as is one that sends more than it was asked for. Reading
|
|
54
|
+
* stops at `MAX_BYTES` and `MAX_REQUESTS`.
|
|
55
|
+
*/
|
|
56
|
+
export const httpRangeSource = ({
|
|
57
|
+
url,
|
|
58
|
+
size,
|
|
59
|
+
fetch = globalThis.fetch,
|
|
60
|
+
}: {
|
|
61
|
+
readonly url: string;
|
|
62
|
+
/** The artifact's length, as its build's row records it. */
|
|
63
|
+
readonly size: number;
|
|
64
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
65
|
+
}): ByteSource => {
|
|
66
|
+
const blocks: { readonly start: number; readonly bytes: Uint8Array }[] = [];
|
|
67
|
+
let requests = 0;
|
|
68
|
+
let downloaded = 0;
|
|
69
|
+
|
|
70
|
+
const request = async (start: number, end: number): Promise<Uint8Array> => {
|
|
71
|
+
if (requests === MAX_REQUESTS) {
|
|
72
|
+
throw new RangeSourceError(
|
|
73
|
+
"Reading the artifact took too many requests.",
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
const length = end - start;
|
|
77
|
+
if (downloaded + length > MAX_BYTES) {
|
|
78
|
+
throw new RangeSourceError(
|
|
79
|
+
"Reading the artifact would download too much.",
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
requests += 1;
|
|
83
|
+
const response = await fetch(url, {
|
|
84
|
+
headers: {
|
|
85
|
+
range: `bytes=${start}-${end - 1}`,
|
|
86
|
+
"accept-encoding": "identity",
|
|
87
|
+
},
|
|
88
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
|
|
89
|
+
});
|
|
90
|
+
const contentRange = /^bytes (\d+)-(\d+)\/(\d+|\*)$/u.exec(
|
|
91
|
+
response.headers.get("content-range") ?? "",
|
|
92
|
+
);
|
|
93
|
+
if (
|
|
94
|
+
response.status !== 206 ||
|
|
95
|
+
Number(contentRange?.[1]) !== start ||
|
|
96
|
+
Number(contentRange?.[2]) !== end - 1 ||
|
|
97
|
+
(contentRange?.[3] !== "*" && Number(contentRange?.[3]) !== size) ||
|
|
98
|
+
response.body === null
|
|
99
|
+
) {
|
|
100
|
+
await response.body?.cancel().catch(() => {});
|
|
101
|
+
throw new RangeSourceError(
|
|
102
|
+
`The storage answered ${response.status} to a Range request.`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
const bytes = new Uint8Array(length);
|
|
106
|
+
const reader = response.body.getReader();
|
|
107
|
+
let written = 0;
|
|
108
|
+
try {
|
|
109
|
+
for (;;) {
|
|
110
|
+
const { done, value } = await reader.read();
|
|
111
|
+
if (done) break;
|
|
112
|
+
if (written + value.byteLength > length) {
|
|
113
|
+
throw new RangeSourceError(
|
|
114
|
+
"The storage sent more than it was asked.",
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
bytes.set(value, written);
|
|
118
|
+
written += value.byteLength;
|
|
119
|
+
}
|
|
120
|
+
} finally {
|
|
121
|
+
await reader.cancel().catch(() => {});
|
|
122
|
+
}
|
|
123
|
+
if (written !== length) {
|
|
124
|
+
throw new RangeSourceError("The storage sent less than it was asked.");
|
|
125
|
+
}
|
|
126
|
+
downloaded += length;
|
|
127
|
+
return bytes;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
size,
|
|
132
|
+
async read(offset, length) {
|
|
133
|
+
const end = Math.min(size, offset + length);
|
|
134
|
+
if (offset >= end) return new Uint8Array(0);
|
|
135
|
+
for (const block of blocks) {
|
|
136
|
+
if (block.start <= offset && end <= block.start + block.bytes.length) {
|
|
137
|
+
return block.bytes.subarray(offset - block.start, end - block.start);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const blockEnd = Math.min(size, Math.max(end, offset + READ_AHEAD_BYTES));
|
|
141
|
+
const bytes = await request(offset, blockEnd);
|
|
142
|
+
blocks.push({ start: offset, bytes });
|
|
143
|
+
// The first block is the archive's tail, which holds its directory.
|
|
144
|
+
if (blocks.length > KEPT_BLOCKS) blocks.splice(1, 1);
|
|
145
|
+
return bytes.subarray(0, end - offset);
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* What an IPA in storage installs as, or null when that can't be read in parts:
|
|
152
|
+
* a storage with no HTTPS download URL, one that ignores Range requests, or an
|
|
153
|
+
* artifact that isn't what it should be. It reads only the storage, and never
|
|
154
|
+
* logs the URL, which may be signed.
|
|
155
|
+
*/
|
|
156
|
+
export const readNativeBuildInstallInfo = async (
|
|
157
|
+
build: Pick<
|
|
158
|
+
NativeBuildRow,
|
|
159
|
+
"artifact_kind" | "artifact_storage_uri" | "byte_size"
|
|
160
|
+
>,
|
|
161
|
+
storage: StorageAdapter,
|
|
162
|
+
fetch: typeof globalThis.fetch = globalThis.fetch,
|
|
163
|
+
): Promise<IpaInstallInfo | null> => {
|
|
164
|
+
if (build.artifact_kind !== "ipa") return null;
|
|
165
|
+
try {
|
|
166
|
+
const url = await nativeBuildArtifactUrl(build, storage);
|
|
167
|
+
if (url === null || new URL(url).protocol !== "https:") return null;
|
|
168
|
+
return await readIpaInstallInfo(
|
|
169
|
+
httpRangeSource({ url, size: build.byte_size, fetch }),
|
|
170
|
+
);
|
|
171
|
+
} catch (error) {
|
|
172
|
+
console.warn(
|
|
173
|
+
`Installation details unavailable: ${error instanceof Error ? error.message : String(error)}`,
|
|
174
|
+
);
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export type NativeBuildInstallEligibility =
|
|
180
|
+
/** The IPA can't be read in parts, so nothing can be said or installed. */
|
|
181
|
+
| { readonly status: "unavailable" }
|
|
182
|
+
/** An App Store export, which installs through TestFlight only. */
|
|
183
|
+
| { readonly status: "store" }
|
|
184
|
+
| { readonly status: "expired"; readonly expiresAt: string }
|
|
185
|
+
| {
|
|
186
|
+
readonly status: "installable";
|
|
187
|
+
/** Whether the IPA lists the device: `unknown` without a UDID to look up. */
|
|
188
|
+
readonly device: "unknown" | "included" | "not-included";
|
|
189
|
+
/**
|
|
190
|
+
* The registry's row of a device the IPA doesn't list, or null when the
|
|
191
|
+
* registry doesn't know it: read only then.
|
|
192
|
+
*/
|
|
193
|
+
readonly registry: IosDeviceRow | null;
|
|
194
|
+
/**
|
|
195
|
+
* A newer build of this app on this channel whose IPA lists the device,
|
|
196
|
+
* which `registry.build_id` names, or null. The row keeps one build per
|
|
197
|
+
* device, the newest of any ad hoc scheme the CLI checked, so the build
|
|
198
|
+
* it names may be a sandbox's or another app's.
|
|
199
|
+
*/
|
|
200
|
+
readonly newerBuild: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the viewer approves devices, which decides the next step under
|
|
203
|
+
* Apple's refusal: asked only when `registry` carries one, else false.
|
|
204
|
+
*/
|
|
205
|
+
readonly canApprove: boolean;
|
|
206
|
+
readonly expiresAt: string | null;
|
|
207
|
+
/** The token of the Install button's manifest and download. */
|
|
208
|
+
readonly link: NativeBuildDownloadLinkResult;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const isExpired = ({ expiresAtMs }: IpaInstallInfo, now: number) =>
|
|
212
|
+
expiresAtMs !== null && expiresAtMs <= now;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The build a registered device's row names, when it is newer than `build`,
|
|
216
|
+
* of the same app (bundle ID, read from its IPA, and sandbox or not), on the
|
|
217
|
+
* same channel, or for a sandbox build, of the same sandbox scope on any
|
|
218
|
+
* channel, ad hoc, unexpired, and its IPA lists the device; null
|
|
219
|
+
* otherwise, and for a build gone or unreadable. Its row is read only for a
|
|
220
|
+
* registered device whose row names a newer build, and its IPA only when the
|
|
221
|
+
* row matches.
|
|
222
|
+
*/
|
|
223
|
+
const newerBuildListing = async (
|
|
224
|
+
build: NativeBuildRow,
|
|
225
|
+
info: IpaInstallInfo,
|
|
226
|
+
device: IosDeviceRow,
|
|
227
|
+
key: string,
|
|
228
|
+
{
|
|
229
|
+
core,
|
|
230
|
+
storage,
|
|
231
|
+
fetch,
|
|
232
|
+
now,
|
|
233
|
+
}: {
|
|
234
|
+
readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild">;
|
|
235
|
+
readonly storage: StorageAdapter;
|
|
236
|
+
readonly fetch: typeof globalThis.fetch;
|
|
237
|
+
readonly now: number;
|
|
238
|
+
},
|
|
239
|
+
): Promise<string | null> => {
|
|
240
|
+
const id = device.build_id;
|
|
241
|
+
if (device.status !== "registered" || id === null || id <= build.id) {
|
|
242
|
+
return null;
|
|
243
|
+
}
|
|
244
|
+
const newer = await core.getNativeBuild(id).catch(() => null);
|
|
245
|
+
if (
|
|
246
|
+
newer === null ||
|
|
247
|
+
newer.artifact_kind !== "ipa" ||
|
|
248
|
+
newer.platform !== build.platform ||
|
|
249
|
+
newer.is_sandbox !== build.is_sandbox ||
|
|
250
|
+
// A sandbox build's replacement may embed another pull request's
|
|
251
|
+
// channel: its scope, which names none, says it is the same app.
|
|
252
|
+
(build.is_sandbox
|
|
253
|
+
? newer.scope_key !== build.scope_key
|
|
254
|
+
: newer.channel_id !== build.channel_id) ||
|
|
255
|
+
// Null on an IPA registered before it was recorded: its profile decides.
|
|
256
|
+
(newer.export_method !== null && newer.export_method !== "ad-hoc")
|
|
257
|
+
) {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
const listing = await readNativeBuildInstallInfo(newer, storage, fetch);
|
|
261
|
+
return listing !== null &&
|
|
262
|
+
listing.bundleId === info.bundleId &&
|
|
263
|
+
listing.distribution === "ad-hoc" &&
|
|
264
|
+
listing.devices.includes(key) &&
|
|
265
|
+
!isExpired(listing, now)
|
|
266
|
+
? id
|
|
267
|
+
: null;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* What an iPhone can do with a build, for a caller the Console already let in:
|
|
272
|
+
* one read of the build's row, and the IPA's few parts from storage. App Store
|
|
273
|
+
* Connect isn't asked, so this says what the IPA's bytes allow, which is what
|
|
274
|
+
* iOS enforces; registering a device changes nothing until a new IPA has it.
|
|
275
|
+
*/
|
|
276
|
+
export const checkNativeBuildInstall = async (
|
|
277
|
+
id: string,
|
|
278
|
+
udid: string | undefined,
|
|
279
|
+
{
|
|
280
|
+
core,
|
|
281
|
+
storage,
|
|
282
|
+
}: {
|
|
283
|
+
readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild" | "findIosDevice">;
|
|
284
|
+
readonly storage: StorageAdapter;
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
request,
|
|
288
|
+
now = Date.now(),
|
|
289
|
+
fetch = globalThis.fetch,
|
|
290
|
+
canApprove = async () => false,
|
|
291
|
+
}: {
|
|
292
|
+
readonly request?: Request;
|
|
293
|
+
readonly now?: number;
|
|
294
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
295
|
+
/** Whether the viewer approves devices, asked only under Apple's refusal. */
|
|
296
|
+
readonly canApprove?: () => Promise<boolean>;
|
|
297
|
+
} = {},
|
|
298
|
+
): Promise<NativeBuildInstallEligibility> => {
|
|
299
|
+
const build = await core.getNativeBuild(id);
|
|
300
|
+
if (build === null) return { status: "unavailable" };
|
|
301
|
+
const info = await readNativeBuildInstallInfo(build, storage, fetch);
|
|
302
|
+
if (info === null) return { status: "unavailable" };
|
|
303
|
+
if (info.distribution === "store") return { status: "store" };
|
|
304
|
+
const expiresAt =
|
|
305
|
+
info.expiresAtMs === null ? null : new Date(info.expiresAtMs).toISOString();
|
|
306
|
+
if (expiresAt !== null && isExpired(info, now)) {
|
|
307
|
+
return { status: "expired", expiresAt };
|
|
308
|
+
}
|
|
309
|
+
const key = udid === undefined ? null : normalizeIosUdid(udid);
|
|
310
|
+
const device =
|
|
311
|
+
key === null
|
|
312
|
+
? "unknown"
|
|
313
|
+
: info.distribution === "enterprise" || info.devices.includes(key)
|
|
314
|
+
? "included"
|
|
315
|
+
: "not-included";
|
|
316
|
+
const registry =
|
|
317
|
+
device === "not-included" && key !== null
|
|
318
|
+
? await core.findIosDevice(key)
|
|
319
|
+
: null;
|
|
320
|
+
return {
|
|
321
|
+
status: "installable",
|
|
322
|
+
device,
|
|
323
|
+
registry,
|
|
324
|
+
newerBuild:
|
|
325
|
+
registry === null || key === null
|
|
326
|
+
? null
|
|
327
|
+
: await newerBuildListing(build, info, registry, key, {
|
|
328
|
+
core,
|
|
329
|
+
storage,
|
|
330
|
+
fetch,
|
|
331
|
+
now,
|
|
332
|
+
}),
|
|
333
|
+
canApprove: registry?.apple_error == null ? false : await canApprove(),
|
|
334
|
+
expiresAt,
|
|
335
|
+
link: await issueNativeBuildDownloadLink(
|
|
336
|
+
id,
|
|
337
|
+
request,
|
|
338
|
+
now,
|
|
339
|
+
NATIVE_BUILD_INSTALL_LINK_TTL_MS,
|
|
340
|
+
),
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
const installRefusal = (status: number, message: string) =>
|
|
345
|
+
new Response(message, {
|
|
346
|
+
status,
|
|
347
|
+
headers: {
|
|
348
|
+
"cache-control": "no-store",
|
|
349
|
+
"content-type": "text/plain; charset=utf-8",
|
|
350
|
+
},
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The manifest iOS installs a build from, at `/_hot-updater/native-builds/
|
|
355
|
+
* <id>/manifest.plist?t=<download token>`. The installer has no session, so the
|
|
356
|
+
* token is all it answers to, and it is checked before anything is read. It
|
|
357
|
+
* mints nothing: the manifest's IPA URL carries the same token.
|
|
358
|
+
*
|
|
359
|
+
* - 403: no token, or one that isn't this build's, or has expired;
|
|
360
|
+
* - 404: no such build, or not an IPA;
|
|
361
|
+
* - 409: an IPA that can't install this way (App Store export, expired profile);
|
|
362
|
+
* - 503: the IPA can't be read in parts.
|
|
363
|
+
*/
|
|
364
|
+
export const serveNativeBuildManifest = async (
|
|
365
|
+
request: Request,
|
|
366
|
+
id: string,
|
|
367
|
+
loadDeps: () => Promise<{
|
|
368
|
+
readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild">;
|
|
369
|
+
readonly storage: StorageAdapter;
|
|
370
|
+
}>,
|
|
371
|
+
fetch: typeof globalThis.fetch = globalThis.fetch,
|
|
372
|
+
): Promise<Response> => {
|
|
373
|
+
const token = new URL(request.url).searchParams.get(
|
|
374
|
+
NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM,
|
|
375
|
+
);
|
|
376
|
+
if (token === null) {
|
|
377
|
+
return installRefusal(
|
|
378
|
+
403,
|
|
379
|
+
"This install link isn't valid. Open the build's Console page for a new one.",
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
const refused = await refuseNativeBuildDownloadToken(request, id, token);
|
|
383
|
+
if (refused !== undefined) return refused;
|
|
384
|
+
|
|
385
|
+
const { core, storage } = await loadDeps();
|
|
386
|
+
const build = await core.getNativeBuild(id);
|
|
387
|
+
if (build === null || build.artifact_kind !== "ipa") {
|
|
388
|
+
return installRefusal(404, "This build has no IPA to install.");
|
|
389
|
+
}
|
|
390
|
+
const info = await readNativeBuildInstallInfo(build, storage, fetch);
|
|
391
|
+
if (info === null) {
|
|
392
|
+
return installRefusal(503, "Installation details unavailable.");
|
|
393
|
+
}
|
|
394
|
+
if (info.distribution === "store") {
|
|
395
|
+
return installRefusal(
|
|
396
|
+
409,
|
|
397
|
+
build.is_sandbox
|
|
398
|
+
? "This IPA is an App Store export, which doesn't install from a link."
|
|
399
|
+
: "This IPA is an App Store export, which installs through TestFlight.",
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
if (isExpired(info, Date.now())) {
|
|
403
|
+
return installRefusal(
|
|
404
|
+
409,
|
|
405
|
+
"This IPA's provisioning profile has expired. Rebuild it.",
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const base = publicConsoleBase(request, nativeBuildManifestPath(id));
|
|
410
|
+
const ipaUrl = `${base}${nativeBuildDownloadPath(id)}?${NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM}=${encodeURIComponent(token)}`;
|
|
411
|
+
const manifest = `<?xml version="1.0" encoding="UTF-8"?>
|
|
412
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
413
|
+
<plist version="1.0">
|
|
414
|
+
<dict>
|
|
415
|
+
<key>items</key>
|
|
416
|
+
<array>
|
|
417
|
+
<dict>
|
|
418
|
+
<key>assets</key>
|
|
419
|
+
<array>
|
|
420
|
+
<dict>
|
|
421
|
+
<key>kind</key>
|
|
422
|
+
<string>software-package</string>
|
|
423
|
+
<key>url</key>
|
|
424
|
+
<string>${escapePlistText(ipaUrl)}</string>
|
|
425
|
+
</dict>
|
|
426
|
+
</array>
|
|
427
|
+
<key>metadata</key>
|
|
428
|
+
<dict>
|
|
429
|
+
<key>bundle-identifier</key>
|
|
430
|
+
<string>${escapePlistText(info.bundleId)}</string>
|
|
431
|
+
<key>bundle-version</key>
|
|
432
|
+
<string>${escapePlistText(info.bundleVersion)}</string>
|
|
433
|
+
<key>kind</key>
|
|
434
|
+
<string>software</string>
|
|
435
|
+
<key>title</key>
|
|
436
|
+
<string>${escapePlistText(info.title)}</string>
|
|
437
|
+
</dict>
|
|
438
|
+
</dict>
|
|
439
|
+
</array>
|
|
440
|
+
</dict>
|
|
441
|
+
</plist>
|
|
442
|
+
`;
|
|
443
|
+
return new Response(manifest, {
|
|
444
|
+
headers: {
|
|
445
|
+
"cache-control": "private, no-store",
|
|
446
|
+
"content-type": "text/xml; charset=utf-8",
|
|
447
|
+
"referrer-policy": "no-referrer",
|
|
448
|
+
"x-content-type-options": "nosniff",
|
|
449
|
+
},
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
/** One device an ad hoc IPA lists, with the registry's name when it has one. */
|
|
454
|
+
export interface NativeBuildIpaDevice {
|
|
455
|
+
readonly udid: string;
|
|
456
|
+
readonly name: string | null;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export type NativeBuildIpaDevices =
|
|
460
|
+
/** The IPA can't be read in parts. */
|
|
461
|
+
| { readonly status: "unavailable" }
|
|
462
|
+
/** An App Store export or an enterprise build, which list no devices. */
|
|
463
|
+
| { readonly status: "store" | "enterprise" }
|
|
464
|
+
| { readonly status: "listed"; readonly devices: NativeBuildIpaDevice[] };
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* The devices an IPA's profile lists, read from storage as the install check
|
|
468
|
+
* reads it, each named by the device registry when it knows the UDID. The IPA
|
|
469
|
+
* decides: the registry only names what it lists. One build read, the IPA's
|
|
470
|
+
* few parts, and the registry a page at a time.
|
|
471
|
+
*/
|
|
472
|
+
export const readNativeBuildIpaDevices = async (
|
|
473
|
+
id: string,
|
|
474
|
+
{
|
|
475
|
+
core,
|
|
476
|
+
storage,
|
|
477
|
+
}: {
|
|
478
|
+
readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild" | "listIosDevices">;
|
|
479
|
+
readonly storage: StorageAdapter;
|
|
480
|
+
},
|
|
481
|
+
fetch: typeof globalThis.fetch = globalThis.fetch,
|
|
482
|
+
): Promise<NativeBuildIpaDevices> => {
|
|
483
|
+
const build = await core.getNativeBuild(id);
|
|
484
|
+
if (build === null) return { status: "unavailable" };
|
|
485
|
+
const info = await readNativeBuildInstallInfo(build, storage, fetch);
|
|
486
|
+
if (info === null) return { status: "unavailable" };
|
|
487
|
+
if (info.distribution === "store" || info.distribution === "enterprise") {
|
|
488
|
+
return { status: info.distribution };
|
|
489
|
+
}
|
|
490
|
+
const names = new Map(
|
|
491
|
+
info.devices.length === 0
|
|
492
|
+
? []
|
|
493
|
+
: (await listIosDevices(core)).map((row) => [row.udid, row.name]),
|
|
494
|
+
);
|
|
495
|
+
return {
|
|
496
|
+
status: "listed",
|
|
497
|
+
devices: info.devices.map((udid) => ({
|
|
498
|
+
udid,
|
|
499
|
+
name: names.get(udid) ?? null,
|
|
500
|
+
})),
|
|
501
|
+
};
|
|
502
|
+
};
|