@hot-updater/console 1.2.0-rc.26 → 1.2.0-rc.28
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-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
- package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
- package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
- package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
- package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
- package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
- package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
- package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
- package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
- package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
- package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
- package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
- package/.output/public/assets/api-DLryz9hA.js +1 -0
- package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
- package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
- package/.output/public/assets/card-C4sBAMU-.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
- package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
- package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
- package/.output/public/assets/field-DL4OXTJ7.js +1 -0
- package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
- package/.output/public/assets/history-wYnPoVmT.js +1 -0
- package/.output/public/assets/index-CAnjb7M2.js +10 -0
- package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
- package/.output/public/assets/insights-DIs4nJI9.js +2 -0
- package/.output/public/assets/insights-DTF7C4jb.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/insights-bUk3ChoU.js +1 -0
- package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
- package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
- package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
- package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
- package/.output/public/assets/installations-6U8c_03X.js +1 -0
- package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
- package/.output/public/assets/installations-D3MbzcFb.js +2 -0
- package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
- package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
- package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
- package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
- package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
- package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
- package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
- package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
- package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
- package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
- package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
- package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
- package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
- package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
- package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
- package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
- package/.output/public/assets/routes-CVbPjRKo.js +1 -0
- package/.output/public/assets/search-DiOSjaYL.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-BgXZNiEA.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
- package/.output/public/assets/styles-B0kzy3kp.css +2 -0
- package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
- package/.output/public/assets/table-CwF7yxj4.js +1 -0
- package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
- package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
- package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
- package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +22 -2
- 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-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
- package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
- package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
- package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
- package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
- package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
- package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
- package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
- package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
- package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
- package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
- package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
- package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
- package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
- package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
- package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
- package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
- package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
- package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
- package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
- package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
- package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
- package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
- package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
- package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
- package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
- package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
- package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
- package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
- package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
- package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
- package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
- package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
- package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
- package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
- package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
- package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
- package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
- package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
- package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
- package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
- package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
- package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
- package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
- package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
- package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
- package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
- package/.output/server/index.mjs +436 -366
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/DataTable.tsx +21 -2
- package/src/components/FoldedRows.tsx +201 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/features/native-builds/InstallCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
- package/src/components/features/native-builds/IosInstall.tsx +292 -62
- package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +56 -29
- package/src/lib/api.ts +65 -2
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +174 -0
- package/src/lib/native-builds.ts +72 -7
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/nativeBuildInstall.ts +138 -7
- package/src/lib/server/nativeBuilds.ts +221 -26
- package/src/routeTree.gen.ts +64 -67
- package/src/routes/-native-builds-search.ts +20 -0
- 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/index.tsx +444 -299
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
- package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
- package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
- package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
- package/.output/public/assets/api-LQJH44FU.js +0 -1
- package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
- package/.output/public/assets/api-keys-uFY8FsN9.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/card-ulgg5xHn.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-CLIaC82_.js +0 -1
- package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
- package/.output/public/assets/field-q4sTYzNU.js +0 -1
- package/.output/public/assets/history-DakJoeSM.js +0 -1
- package/.output/public/assets/index-CJclLsbG.js +0 -10
- package/.output/public/assets/insights-0TUItqwh.js +0 -1
- package/.output/public/assets/insights-B75txQ_F.js +0 -42
- package/.output/public/assets/insights-C17Z0whn.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
- package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
- package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
- package/.output/public/assets/installations-D0g3xvw8.js +0 -2
- package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
- package/.output/public/assets/native-builds-C3_-21we.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
- package/.output/public/assets/plus-BVhOauU3.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
- package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
- package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
- package/.output/public/assets/routes-BLTF7nwe.js +0 -1
- package/.output/public/assets/search-nnvSOTEB.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
- package/.output/public/assets/styles-BdlrKlVs.css +0 -2
- package/.output/public/assets/switch-CP6GsHmN.js +0 -1
- package/.output/public/assets/table-TUtVz-2l.js +0 -1
- package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
- package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
- package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
- package/src/lib/server/nativeBuildDevice.ts +0 -253
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
- /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
- /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { w as isUUIDv7 } from "./dist-B6-irDRA.mjs";
|
|
2
|
-
import { d as nativeBuildDeviceProfilePath, n as IOS_UDID_STORAGE_KEY, t as IOS_UDID_PATTERN } from "./native-builds-OUdRtp6m.mjs";
|
|
3
|
-
import { a as readProfileServiceUdid, r as publicConsoleBase, t as escapePlistText } from "./publicConsoleBase-DvHYxDaG.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildDevice-DJUAzAIj.js
|
|
5
|
-
/** The most a Profile Service answer holds: a plist and a device's certificates. */
|
|
6
|
-
var MAX_RESPONSE_BYTES = 64 * 1024;
|
|
7
|
-
var devicePagePath = (id) => `/_hot-updater/native-builds/${encodeURIComponent(id)}/device`;
|
|
8
|
-
var deviceResponsePath = (id) => `${devicePagePath(id)}-response`;
|
|
9
|
-
var refusal = (status, message) => new Response(message, {
|
|
10
|
-
status,
|
|
11
|
-
headers: {
|
|
12
|
-
"cache-control": "no-store",
|
|
13
|
-
"content-type": "text/plain; charset=utf-8"
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
var methodRefusal = (allow) => {
|
|
17
|
-
const response = refusal(405, "Method Not Allowed");
|
|
18
|
-
response.headers.set("allow", allow);
|
|
19
|
-
return response;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* The profile an iPhone installs to report its UDID, at `/_hot-updater/
|
|
23
|
-
* native-builds/<id>/device.mobileconfig`, without a session, since Settings
|
|
24
|
-
* has none. It reads nothing, so it says nothing about the build: the ID is only
|
|
25
|
-
* where the callback's page links back to. It asks for the UDID alone, and iOS
|
|
26
|
-
* keeps no profile afterwards. Anyone can fetch it and learn only their own UDID.
|
|
27
|
-
*
|
|
28
|
-
* - 400: the ID isn't a UUIDv7, or the Console isn't on HTTPS, which iOS needs;
|
|
29
|
-
* - 405: a method other than GET or HEAD.
|
|
30
|
-
*/
|
|
31
|
-
var serveDeviceProfile = (request, id) => {
|
|
32
|
-
if (request.method !== "GET" && request.method !== "HEAD") return methodRefusal("GET, HEAD");
|
|
33
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
34
|
-
const base = publicConsoleBase(request, nativeBuildDeviceProfilePath(id));
|
|
35
|
-
if (!base.startsWith("https://")) return refusal(400, "An iPhone needs this Console on HTTPS with a certificate it trusts.");
|
|
36
|
-
const host = new URL(base).host;
|
|
37
|
-
const profile = `<?xml version="1.0" encoding="UTF-8"?>
|
|
38
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
39
|
-
<plist version="1.0">
|
|
40
|
-
<dict>
|
|
41
|
-
<key>PayloadContent</key>
|
|
42
|
-
<dict>
|
|
43
|
-
<key>URL</key>
|
|
44
|
-
<string>${escapePlistText(`${base}${deviceResponsePath(id)}`)}</string>
|
|
45
|
-
<key>DeviceAttributes</key>
|
|
46
|
-
<array>
|
|
47
|
-
<string>UDID</string>
|
|
48
|
-
</array>
|
|
49
|
-
<key>Challenge</key>
|
|
50
|
-
<string>hot-updater</string>
|
|
51
|
-
</dict>
|
|
52
|
-
<key>PayloadOrganization</key>
|
|
53
|
-
<string>Hot Updater</string>
|
|
54
|
-
<key>PayloadDisplayName</key>
|
|
55
|
-
<string>Hot Updater Device Profile</string>
|
|
56
|
-
<key>PayloadDescription</key>
|
|
57
|
-
<string>Sends this iPhone's ID (UDID) to ${escapePlistText(host)}, to check whether a build can install on it. Nothing stays installed.</string>
|
|
58
|
-
<key>PayloadIdentifier</key>
|
|
59
|
-
<string>dev.hot-updater.device-profile</string>
|
|
60
|
-
<key>PayloadUUID</key>
|
|
61
|
-
<string>6D3F4C0E-52C4-4C8B-9E0A-7B1E5A0C2F11</string>
|
|
62
|
-
<key>PayloadVersion</key>
|
|
63
|
-
<integer>1</integer>
|
|
64
|
-
<key>PayloadType</key>
|
|
65
|
-
<string>Profile Service</string>
|
|
66
|
-
</dict>
|
|
67
|
-
</plist>
|
|
68
|
-
`;
|
|
69
|
-
return new Response(request.method === "HEAD" ? null : profile, { headers: {
|
|
70
|
-
"cache-control": "no-store",
|
|
71
|
-
"content-type": "application/x-apple-aspen-config",
|
|
72
|
-
"x-content-type-options": "nosniff"
|
|
73
|
-
} });
|
|
74
|
-
};
|
|
75
|
-
/** A request's body, or null past `limit` bytes, which are never buffered. */
|
|
76
|
-
var readBoundedBody = async (request, limit) => {
|
|
77
|
-
if (Number(request.headers.get("content-length") ?? 0) > limit) {
|
|
78
|
-
await request.body?.cancel().catch(() => {});
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
const reader = request.body?.getReader();
|
|
82
|
-
if (reader === void 0) return new Uint8Array(0);
|
|
83
|
-
const body = new Uint8Array(limit);
|
|
84
|
-
let length = 0;
|
|
85
|
-
try {
|
|
86
|
-
for (;;) {
|
|
87
|
-
const { done, value } = await reader.read();
|
|
88
|
-
if (done) return body.subarray(0, length);
|
|
89
|
-
if (length + value.byteLength > limit) return null;
|
|
90
|
-
body.set(value, length);
|
|
91
|
-
length += value.byteLength;
|
|
92
|
-
}
|
|
93
|
-
} finally {
|
|
94
|
-
await reader.cancel().catch(() => {});
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Where iOS posts the device's answer, without a session, since Settings has
|
|
99
|
-
* none. It takes the UDID's text and verifies no signature: nothing automated
|
|
100
|
-
* trusts it, and a forged one only shows on the forger's own screen. A maintainer
|
|
101
|
-
* decides whether a UDID is registered. It reads and stores nothing, and sends
|
|
102
|
-
* the UDID in a fragment, which never reaches a server again. iOS asks for a 301.
|
|
103
|
-
*
|
|
104
|
-
* - 400: no well-formed UDID;
|
|
105
|
-
* - 405: a method other than POST;
|
|
106
|
-
* - 413: a body over 64 KiB.
|
|
107
|
-
*/
|
|
108
|
-
var receiveDeviceResponse = async (request, id) => {
|
|
109
|
-
if (request.method !== "POST") return methodRefusal("POST");
|
|
110
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
111
|
-
const body = await readBoundedBody(request, MAX_RESPONSE_BYTES);
|
|
112
|
-
if (body === null) return refusal(413, "This answer is too large.");
|
|
113
|
-
const udid = readProfileServiceUdid(body);
|
|
114
|
-
if (udid === null) return refusal(400, "This answer has no device ID.");
|
|
115
|
-
const base = publicConsoleBase(request, deviceResponsePath(id));
|
|
116
|
-
return new Response(null, {
|
|
117
|
-
status: 301,
|
|
118
|
-
headers: {
|
|
119
|
-
"cache-control": "no-store",
|
|
120
|
-
location: `${base}${devicePagePath(id)}#udid=${encodeURIComponent(udid)}`
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
var page = ({ buildId, nonce }) => {
|
|
125
|
-
const script = JSON.stringify({
|
|
126
|
-
pattern: IOS_UDID_PATTERN.source,
|
|
127
|
-
key: IOS_UDID_STORAGE_KEY
|
|
128
|
-
}).replaceAll("<", "\\u003c");
|
|
129
|
-
return `<!doctype html>
|
|
130
|
-
<html lang="en">
|
|
131
|
-
<head>
|
|
132
|
-
<meta charset="utf-8">
|
|
133
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
134
|
-
<meta name="color-scheme" content="dark light">
|
|
135
|
-
<meta name="robots" content="noindex">
|
|
136
|
-
<title>Back to the build</title>
|
|
137
|
-
<style nonce="${nonce}">
|
|
138
|
-
:root { color-scheme: dark light; --bg: oklch(1 0 0); --fg: oklch(0.147 0.004 49.25); --muted: oklch(0.553 0.013 58.071); --line: oklch(0.923 0.003 48.717); --radius: 0.45rem; }
|
|
139
|
-
@media (prefers-color-scheme: dark) { :root { --bg: oklch(0.147 0.004 49.25); --fg: oklch(0.985 0.001 106.423); --muted: oklch(0.709 0.01 56.259); --line: oklch(1 0 0 / 10%); } }
|
|
140
|
-
* { box-sizing: border-box; }
|
|
141
|
-
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, system-ui, sans-serif; }
|
|
142
|
-
main { display: flex; flex-direction: column; gap: 16px; max-width: 32rem; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
|
|
143
|
-
h1 { margin: 0; font-size: 22px; line-height: 1.25; }
|
|
144
|
-
p { margin: 0; color: var(--muted); font-size: 15px; }
|
|
145
|
-
a.action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--fg); }
|
|
146
|
-
[hidden] { display: none; }
|
|
147
|
-
</style>
|
|
148
|
-
</head>
|
|
149
|
-
<body>
|
|
150
|
-
<main>
|
|
151
|
-
<div id="returning" hidden>
|
|
152
|
-
<h1>Back to the build</h1>
|
|
153
|
-
<p>Opening the build's page to install it.</p>
|
|
154
|
-
</div>
|
|
155
|
-
<div id="missing" hidden>
|
|
156
|
-
<h1>No iPhone ID here</h1>
|
|
157
|
-
</div>
|
|
158
|
-
<p id="retry" hidden>Open the build's page in Safari and install the profile again. On a Mac, Finder shows an iPhone's ID, which a maintainer can register with native-build devices add.</p>
|
|
159
|
-
<a class="action" id="back" href="../../../native-builds/${encodeURIComponent(buildId)}">Back to the build</a>
|
|
160
|
-
</main>
|
|
161
|
-
<script nonce="${nonce}">
|
|
162
|
-
(function () {
|
|
163
|
-
var c = ${script};
|
|
164
|
-
var pattern = new RegExp(c.pattern, "i");
|
|
165
|
-
var show = function (id) { document.getElementById(id).hidden = false; };
|
|
166
|
-
var stored = function () { try { return localStorage.getItem(c.key); } catch (e) { return null; } };
|
|
167
|
-
var fromLink = new URLSearchParams(location.hash.slice(1)).get("udid");
|
|
168
|
-
var udid = fromLink && pattern.test(fromLink) ? fromLink : stored();
|
|
169
|
-
if (location.hash) history.replaceState(null, "", location.pathname);
|
|
170
|
-
if (!udid || !pattern.test(udid)) { show("missing"); show("retry"); return; }
|
|
171
|
-
try { localStorage.setItem(c.key, udid); } catch (e) {}
|
|
172
|
-
// The ID goes along in the fragment too, for a browser that keeps nothing.
|
|
173
|
-
var back = document.getElementById("back");
|
|
174
|
-
back.href = back.href.split("#")[0] + "#udid=" + encodeURIComponent(udid);
|
|
175
|
-
show("returning");
|
|
176
|
-
location.replace(back.href);
|
|
177
|
-
})();
|
|
178
|
-
<\/script>
|
|
179
|
-
</body>
|
|
180
|
-
</html>
|
|
181
|
-
`;
|
|
182
|
-
};
|
|
183
|
-
/**
|
|
184
|
-
* The page the callback lands on. It keeps the UDID in the phone's
|
|
185
|
-
* `localStorage` and goes straight back to the build's page with the UDID in
|
|
186
|
-
* the fragment too, for a browser that keeps nothing. The build's page offers
|
|
187
|
-
* Install, or the command for a maintainer, which asks whose iPhone it is,
|
|
188
|
-
* since a crafted link can carry any ID. The UDID stays in the browser: a
|
|
189
|
-
* fragment never reaches a server. It takes no session.
|
|
190
|
-
*
|
|
191
|
-
* - 400: the ID isn't a UUIDv7;
|
|
192
|
-
* - 405: a method other than GET or HEAD.
|
|
193
|
-
*/
|
|
194
|
-
var serveDevicePage = (request, id) => {
|
|
195
|
-
if (request.method !== "GET" && request.method !== "HEAD") return methodRefusal("GET, HEAD");
|
|
196
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
197
|
-
const nonce = btoa(String.fromCharCode(...crypto.getRandomValues(new Uint8Array(16))));
|
|
198
|
-
return new Response(request.method === "HEAD" ? null : page({
|
|
199
|
-
buildId: id,
|
|
200
|
-
nonce
|
|
201
|
-
}), { headers: {
|
|
202
|
-
"cache-control": "no-store",
|
|
203
|
-
"content-security-policy": `default-src 'none'; script-src 'nonce-${nonce}'; style-src 'nonce-${nonce}'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'`,
|
|
204
|
-
"content-type": "text/html; charset=utf-8",
|
|
205
|
-
"referrer-policy": "no-referrer",
|
|
206
|
-
"x-content-type-options": "nosniff"
|
|
207
|
-
} });
|
|
208
|
-
};
|
|
209
|
-
//#endregion
|
|
210
|
-
export { receiveDeviceResponse, serveDevicePage, serveDeviceProfile };
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-8M7ggCuB.js
|
|
2
|
-
var tsrStartManifest = () => ({ routes: {
|
|
3
|
-
__root__: {
|
|
4
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
|
|
5
|
-
children: [
|
|
6
|
-
"/",
|
|
7
|
-
"/api-keys",
|
|
8
|
-
"/insights",
|
|
9
|
-
"/installations",
|
|
10
|
-
"/native-builds",
|
|
11
|
-
"/remote-config",
|
|
12
|
-
"/insights_/distribution",
|
|
13
|
-
"/native-builds_/$buildId",
|
|
14
|
-
"/api/auth/$",
|
|
15
|
-
"/_hot-updater/native-builds/$buildId/device",
|
|
16
|
-
"/_hot-updater/native-builds/$buildId/device-response",
|
|
17
|
-
"/_hot-updater/native-builds/$buildId/device.mobileconfig",
|
|
18
|
-
"/_hot-updater/native-builds/$buildId/manifest.plist",
|
|
19
|
-
"/api/bundles/$bundleId/download",
|
|
20
|
-
"/api/native-builds/$buildId/download"
|
|
21
|
-
],
|
|
22
|
-
preloads: [
|
|
23
|
-
"/assets/index-CJclLsbG.js",
|
|
24
|
-
"/assets/sidebar-Di9SN47G.js",
|
|
25
|
-
"/assets/preload-helper-B44EvKhG.js",
|
|
26
|
-
"/assets/link-DTEyW70e.js",
|
|
27
|
-
"/assets/remote-config-C9p5Pcdj.js",
|
|
28
|
-
"/assets/alert-dialog-DiRLrFVe.js",
|
|
29
|
-
"/assets/select-CBIU0_M1.js",
|
|
30
|
-
"/assets/useCompositeListItem-JmyDfo3-.js",
|
|
31
|
-
"/assets/check-CXVR3s3X.js",
|
|
32
|
-
"/assets/tabs-CP3CSmtI.js",
|
|
33
|
-
"/assets/switch-CP6GsHmN.js",
|
|
34
|
-
"/assets/useInfiniteQuery-DX4WpBRG.js",
|
|
35
|
-
"/assets/useMutation-DbYw7boA.js",
|
|
36
|
-
"/assets/console-features-api-DEXSwFtc.js",
|
|
37
|
-
"/assets/relativeTime-DvyxGIsm.js",
|
|
38
|
-
"/assets/arrow-right-CNII8TYn.js",
|
|
39
|
-
"/assets/clipboard-DQbOcrL7.js",
|
|
40
|
-
"/assets/history-DakJoeSM.js",
|
|
41
|
-
"/assets/plus-BVhOauU3.js",
|
|
42
|
-
"/assets/refresh-cw-C-tvoCcE.js",
|
|
43
|
-
"/assets/input-group-D_NfhUbX.js",
|
|
44
|
-
"/assets/search-nnvSOTEB.js",
|
|
45
|
-
"/assets/smartphone-r0rRdPas.js",
|
|
46
|
-
"/assets/badge-D0NFvUY5.js",
|
|
47
|
-
"/assets/undo-2-Bt0YXG26.js",
|
|
48
|
-
"/assets/dist-Bf1BPKMs.js",
|
|
49
|
-
"/assets/PlatformIcon-CJ69KopR.js",
|
|
50
|
-
"/assets/card-ulgg5xHn.js",
|
|
51
|
-
"/assets/dialog-CLIaC82_.js",
|
|
52
|
-
"/assets/empty-Bhlj8PEo.js",
|
|
53
|
-
"/assets/field-q4sTYzNU.js",
|
|
54
|
-
"/assets/api-LQJH44FU.js",
|
|
55
|
-
"/assets/arrow-up-right-DK8Zdg40.js",
|
|
56
|
-
"/assets/routes-gQXSzO_n.js",
|
|
57
|
-
"/assets/insights-api-BVCXJsoV.js",
|
|
58
|
-
"/assets/key-round-DzBe6DHr.js",
|
|
59
|
-
"/assets/insights-search-CYPrQVUC.js",
|
|
60
|
-
"/assets/uuidv7-cI6C63Fm.js",
|
|
61
|
-
"/assets/native-builds_._buildId-Cp9LJiMP.js",
|
|
62
|
-
"/assets/-native-builds-search-OlRj4Jz0.js",
|
|
63
|
-
"/assets/copy-DsuLj3oj.js",
|
|
64
|
-
"/assets/package-ytYrywZH.js",
|
|
65
|
-
"/assets/rotate-cw-Clk5xTeE.js",
|
|
66
|
-
"/assets/NotFoundPage-Ckb5GMhh.js",
|
|
67
|
-
"/assets/installations-D0g3xvw8.js",
|
|
68
|
-
"/assets/insights-C17Z0whn.js",
|
|
69
|
-
"/assets/insights_.distribution-gDqNqI5E.js",
|
|
70
|
-
"/assets/native-builds-Ba6cEZfm.js"
|
|
71
|
-
],
|
|
72
|
-
scripts: [{ attrs: {
|
|
73
|
-
type: "module",
|
|
74
|
-
async: !0,
|
|
75
|
-
src: "/assets/index-CJclLsbG.js"
|
|
76
|
-
} }]
|
|
77
|
-
},
|
|
78
|
-
"/": {
|
|
79
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
|
|
80
|
-
children: void 0,
|
|
81
|
-
preloads: [
|
|
82
|
-
"/assets/routes-BLTF7nwe.js",
|
|
83
|
-
"/assets/valueToPercent-B6X9rUJM.js",
|
|
84
|
-
"/assets/TargetDisplay-DwOaMOiI.js",
|
|
85
|
-
"/assets/HashValueDisplay-MoZMmTeP.js",
|
|
86
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
87
|
-
"/assets/circle-off-C7Muo0ss.js",
|
|
88
|
-
"/assets/RolloutPercentageBadge-G6qt8rVb.js",
|
|
89
|
-
"/assets/list-B6GeoQ_b.js",
|
|
90
|
-
"/assets/BundleIdDisplay-CP6rsdFO.js",
|
|
91
|
-
"/assets/RelativeTime-TCmpOVPg.js",
|
|
92
|
-
"/assets/table-TUtVz-2l.js"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"/api-keys": {
|
|
96
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/api-keys.tsx",
|
|
97
|
-
children: void 0,
|
|
98
|
-
preloads: [
|
|
99
|
-
"/assets/api-keys-4w2-ofii.js",
|
|
100
|
-
"/assets/ConsoleFeatureUnavailable-DUqlpHCp.js",
|
|
101
|
-
"/assets/api-keys-uFY8FsN9.js",
|
|
102
|
-
"/assets/table-TUtVz-2l.js"
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
"/insights": {
|
|
106
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights.tsx",
|
|
107
|
-
children: void 0,
|
|
108
|
-
preloads: [
|
|
109
|
-
"/assets/insights-0TUItqwh.js",
|
|
110
|
-
"/assets/ConsoleFeatureUnavailable-DUqlpHCp.js",
|
|
111
|
-
"/assets/insights-B75txQ_F.js",
|
|
112
|
-
"/assets/insights-usage-rpc-BbFllvi_.js",
|
|
113
|
-
"/assets/valueToPercent-B6X9rUJM.js",
|
|
114
|
-
"/assets/EventDetails-DZsRlDHk.js",
|
|
115
|
-
"/assets/HashValueDisplay-MoZMmTeP.js",
|
|
116
|
-
"/assets/InsightsPageHeader-2bTrjXln.js",
|
|
117
|
-
"/assets/list-B6GeoQ_b.js",
|
|
118
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
119
|
-
"/assets/circle-off-C7Muo0ss.js",
|
|
120
|
-
"/assets/BundleIdDisplay-CP6rsdFO.js",
|
|
121
|
-
"/assets/table-TUtVz-2l.js"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
"/installations": {
|
|
125
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/installations.tsx",
|
|
126
|
-
children: void 0,
|
|
127
|
-
preloads: [
|
|
128
|
-
"/assets/installations-Ap2G2tDs.js",
|
|
129
|
-
"/assets/ConsoleFeatureUnavailable-DUqlpHCp.js",
|
|
130
|
-
"/assets/installations-Y_7QW_p8.js",
|
|
131
|
-
"/assets/EventDetails-DZsRlDHk.js",
|
|
132
|
-
"/assets/HashValueDisplay-MoZMmTeP.js",
|
|
133
|
-
"/assets/InsightsPageHeader-2bTrjXln.js",
|
|
134
|
-
"/assets/list-B6GeoQ_b.js",
|
|
135
|
-
"/assets/arrow-left-g9cKqXuC.js",
|
|
136
|
-
"/assets/table-TUtVz-2l.js"
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
"/native-builds": {
|
|
140
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds.tsx",
|
|
141
|
-
children: void 0,
|
|
142
|
-
preloads: [
|
|
143
|
-
"/assets/native-builds-C3_-21we.js",
|
|
144
|
-
"/assets/TargetDisplay-DwOaMOiI.js",
|
|
145
|
-
"/assets/HashValueDisplay-MoZMmTeP.js",
|
|
146
|
-
"/assets/StoreSubmission-CqSg880n.js",
|
|
147
|
-
"/assets/RelativeTime-TCmpOVPg.js",
|
|
148
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
149
|
-
"/assets/table-TUtVz-2l.js"
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
"/remote-config": {
|
|
153
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/remote-config.tsx",
|
|
154
|
-
children: void 0,
|
|
155
|
-
preloads: [
|
|
156
|
-
"/assets/remote-config-BRdy8QFR.js",
|
|
157
|
-
"/assets/remote-config-CIAEArwq.js",
|
|
158
|
-
"/assets/ConsoleFeatureUnavailable-DUqlpHCp.js"
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
"/insights_/distribution": {
|
|
162
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights_.distribution.tsx",
|
|
163
|
-
children: void 0,
|
|
164
|
-
preloads: [
|
|
165
|
-
"/assets/insights_.distribution-AZcfvK7x.js",
|
|
166
|
-
"/assets/ConsoleFeatureUnavailable-DUqlpHCp.js",
|
|
167
|
-
"/assets/insights_.distribution-_dZi1_ay.js",
|
|
168
|
-
"/assets/insights-usage-rpc-BbFllvi_.js",
|
|
169
|
-
"/assets/valueToPercent-B6X9rUJM.js",
|
|
170
|
-
"/assets/arrow-left-g9cKqXuC.js",
|
|
171
|
-
"/assets/BundleIdDisplay-CP6rsdFO.js",
|
|
172
|
-
"/assets/InsightsPageHeader-2bTrjXln.js",
|
|
173
|
-
"/assets/list-B6GeoQ_b.js"
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
"/native-builds_/$buildId": {
|
|
177
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds_.$buildId.tsx",
|
|
178
|
-
children: void 0,
|
|
179
|
-
preloads: [
|
|
180
|
-
"/assets/native-builds_._buildId-BnP31v32.js",
|
|
181
|
-
"/assets/TargetDisplay-DwOaMOiI.js",
|
|
182
|
-
"/assets/HashValueDisplay-MoZMmTeP.js",
|
|
183
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
184
|
-
"/assets/RolloutPercentageBadge-G6qt8rVb.js",
|
|
185
|
-
"/assets/StoreSubmission-CqSg880n.js",
|
|
186
|
-
"/assets/BundleIdDisplay-CP6rsdFO.js",
|
|
187
|
-
"/assets/table-TUtVz-2l.js"
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
} });
|
|
191
|
-
//#endregion
|
|
192
|
-
export { tsrStartManifest };
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { isUUIDv7 } from "@hot-updater/protocol";
|
|
2
|
-
import { readProfileServiceUdid } from "@hot-updater/protocol/native-artifact";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
IOS_UDID_PATTERN,
|
|
6
|
-
IOS_UDID_STORAGE_KEY,
|
|
7
|
-
nativeBuildDeviceProfilePath,
|
|
8
|
-
} from "../native-builds";
|
|
9
|
-
import { escapePlistText } from "./plistText";
|
|
10
|
-
import { publicConsoleBase } from "./publicConsoleBase";
|
|
11
|
-
|
|
12
|
-
/** The most a Profile Service answer holds: a plist and a device's certificates. */
|
|
13
|
-
const MAX_RESPONSE_BYTES = 64 * 1024;
|
|
14
|
-
|
|
15
|
-
const devicePagePath = (id: string) =>
|
|
16
|
-
`/_hot-updater/native-builds/${encodeURIComponent(id)}/device`;
|
|
17
|
-
|
|
18
|
-
const deviceResponsePath = (id: string) => `${devicePagePath(id)}-response`;
|
|
19
|
-
|
|
20
|
-
const refusal = (status: number, message: string) =>
|
|
21
|
-
new Response(message, {
|
|
22
|
-
status,
|
|
23
|
-
headers: {
|
|
24
|
-
"cache-control": "no-store",
|
|
25
|
-
"content-type": "text/plain; charset=utf-8",
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const methodRefusal = (allow: string) => {
|
|
30
|
-
const response = refusal(405, "Method Not Allowed");
|
|
31
|
-
response.headers.set("allow", allow);
|
|
32
|
-
return response;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The profile an iPhone installs to report its UDID, at `/_hot-updater/
|
|
37
|
-
* native-builds/<id>/device.mobileconfig`, without a session, since Settings
|
|
38
|
-
* has none. It reads nothing, so it says nothing about the build: the ID is only
|
|
39
|
-
* where the callback's page links back to. It asks for the UDID alone, and iOS
|
|
40
|
-
* keeps no profile afterwards. Anyone can fetch it and learn only their own UDID.
|
|
41
|
-
*
|
|
42
|
-
* - 400: the ID isn't a UUIDv7, or the Console isn't on HTTPS, which iOS needs;
|
|
43
|
-
* - 405: a method other than GET or HEAD.
|
|
44
|
-
*/
|
|
45
|
-
export const serveDeviceProfile = (request: Request, id: string): Response => {
|
|
46
|
-
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
47
|
-
return methodRefusal("GET, HEAD");
|
|
48
|
-
}
|
|
49
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
50
|
-
const base = publicConsoleBase(request, nativeBuildDeviceProfilePath(id));
|
|
51
|
-
if (!base.startsWith("https://")) {
|
|
52
|
-
return refusal(
|
|
53
|
-
400,
|
|
54
|
-
"An iPhone needs this Console on HTTPS with a certificate it trusts.",
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const host = new URL(base).host;
|
|
58
|
-
const profile = `<?xml version="1.0" encoding="UTF-8"?>
|
|
59
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
60
|
-
<plist version="1.0">
|
|
61
|
-
<dict>
|
|
62
|
-
<key>PayloadContent</key>
|
|
63
|
-
<dict>
|
|
64
|
-
<key>URL</key>
|
|
65
|
-
<string>${escapePlistText(`${base}${deviceResponsePath(id)}`)}</string>
|
|
66
|
-
<key>DeviceAttributes</key>
|
|
67
|
-
<array>
|
|
68
|
-
<string>UDID</string>
|
|
69
|
-
</array>
|
|
70
|
-
<key>Challenge</key>
|
|
71
|
-
<string>hot-updater</string>
|
|
72
|
-
</dict>
|
|
73
|
-
<key>PayloadOrganization</key>
|
|
74
|
-
<string>Hot Updater</string>
|
|
75
|
-
<key>PayloadDisplayName</key>
|
|
76
|
-
<string>Hot Updater Device Profile</string>
|
|
77
|
-
<key>PayloadDescription</key>
|
|
78
|
-
<string>Sends this iPhone's ID (UDID) to ${escapePlistText(host)}, to check whether a build can install on it. Nothing stays installed.</string>
|
|
79
|
-
<key>PayloadIdentifier</key>
|
|
80
|
-
<string>dev.hot-updater.device-profile</string>
|
|
81
|
-
<key>PayloadUUID</key>
|
|
82
|
-
<string>6D3F4C0E-52C4-4C8B-9E0A-7B1E5A0C2F11</string>
|
|
83
|
-
<key>PayloadVersion</key>
|
|
84
|
-
<integer>1</integer>
|
|
85
|
-
<key>PayloadType</key>
|
|
86
|
-
<string>Profile Service</string>
|
|
87
|
-
</dict>
|
|
88
|
-
</plist>
|
|
89
|
-
`;
|
|
90
|
-
return new Response(request.method === "HEAD" ? null : profile, {
|
|
91
|
-
headers: {
|
|
92
|
-
"cache-control": "no-store",
|
|
93
|
-
"content-type": "application/x-apple-aspen-config",
|
|
94
|
-
"x-content-type-options": "nosniff",
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/** A request's body, or null past `limit` bytes, which are never buffered. */
|
|
100
|
-
const readBoundedBody = async (
|
|
101
|
-
request: Request,
|
|
102
|
-
limit: number,
|
|
103
|
-
): Promise<Uint8Array | null> => {
|
|
104
|
-
if (Number(request.headers.get("content-length") ?? 0) > limit) {
|
|
105
|
-
await request.body?.cancel().catch(() => {});
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
const reader = request.body?.getReader();
|
|
109
|
-
if (reader === undefined) return new Uint8Array(0);
|
|
110
|
-
const body = new Uint8Array(limit);
|
|
111
|
-
let length = 0;
|
|
112
|
-
try {
|
|
113
|
-
for (;;) {
|
|
114
|
-
const { done, value } = await reader.read();
|
|
115
|
-
if (done) return body.subarray(0, length);
|
|
116
|
-
if (length + value.byteLength > limit) return null;
|
|
117
|
-
body.set(value, length);
|
|
118
|
-
length += value.byteLength;
|
|
119
|
-
}
|
|
120
|
-
} finally {
|
|
121
|
-
await reader.cancel().catch(() => {});
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Where iOS posts the device's answer, without a session, since Settings has
|
|
127
|
-
* none. It takes the UDID's text and verifies no signature: nothing automated
|
|
128
|
-
* trusts it, and a forged one only shows on the forger's own screen. A maintainer
|
|
129
|
-
* decides whether a UDID is registered. It reads and stores nothing, and sends
|
|
130
|
-
* the UDID in a fragment, which never reaches a server again. iOS asks for a 301.
|
|
131
|
-
*
|
|
132
|
-
* - 400: no well-formed UDID;
|
|
133
|
-
* - 405: a method other than POST;
|
|
134
|
-
* - 413: a body over 64 KiB.
|
|
135
|
-
*/
|
|
136
|
-
export const receiveDeviceResponse = async (
|
|
137
|
-
request: Request,
|
|
138
|
-
id: string,
|
|
139
|
-
): Promise<Response> => {
|
|
140
|
-
if (request.method !== "POST") return methodRefusal("POST");
|
|
141
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
142
|
-
const body = await readBoundedBody(request, MAX_RESPONSE_BYTES);
|
|
143
|
-
if (body === null) return refusal(413, "This answer is too large.");
|
|
144
|
-
const udid = readProfileServiceUdid(body);
|
|
145
|
-
if (udid === null) return refusal(400, "This answer has no device ID.");
|
|
146
|
-
const base = publicConsoleBase(request, deviceResponsePath(id));
|
|
147
|
-
return new Response(null, {
|
|
148
|
-
status: 301,
|
|
149
|
-
headers: {
|
|
150
|
-
"cache-control": "no-store",
|
|
151
|
-
location: `${base}${devicePagePath(id)}#udid=${encodeURIComponent(udid)}`,
|
|
152
|
-
},
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const page = ({
|
|
157
|
-
buildId,
|
|
158
|
-
nonce,
|
|
159
|
-
}: {
|
|
160
|
-
readonly buildId: string;
|
|
161
|
-
readonly nonce: string;
|
|
162
|
-
}) => {
|
|
163
|
-
const script = JSON.stringify({
|
|
164
|
-
pattern: IOS_UDID_PATTERN.source,
|
|
165
|
-
key: IOS_UDID_STORAGE_KEY,
|
|
166
|
-
}).replaceAll("<", "\\u003c");
|
|
167
|
-
return `<!doctype html>
|
|
168
|
-
<html lang="en">
|
|
169
|
-
<head>
|
|
170
|
-
<meta charset="utf-8">
|
|
171
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
172
|
-
<meta name="color-scheme" content="dark light">
|
|
173
|
-
<meta name="robots" content="noindex">
|
|
174
|
-
<title>Back to the build</title>
|
|
175
|
-
<style nonce="${nonce}">
|
|
176
|
-
:root { color-scheme: dark light; --bg: oklch(1 0 0); --fg: oklch(0.147 0.004 49.25); --muted: oklch(0.553 0.013 58.071); --line: oklch(0.923 0.003 48.717); --radius: 0.45rem; }
|
|
177
|
-
@media (prefers-color-scheme: dark) { :root { --bg: oklch(0.147 0.004 49.25); --fg: oklch(0.985 0.001 106.423); --muted: oklch(0.709 0.01 56.259); --line: oklch(1 0 0 / 10%); } }
|
|
178
|
-
* { box-sizing: border-box; }
|
|
179
|
-
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, system-ui, sans-serif; }
|
|
180
|
-
main { display: flex; flex-direction: column; gap: 16px; max-width: 32rem; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
|
|
181
|
-
h1 { margin: 0; font-size: 22px; line-height: 1.25; }
|
|
182
|
-
p { margin: 0; color: var(--muted); font-size: 15px; }
|
|
183
|
-
a.action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--fg); }
|
|
184
|
-
[hidden] { display: none; }
|
|
185
|
-
</style>
|
|
186
|
-
</head>
|
|
187
|
-
<body>
|
|
188
|
-
<main>
|
|
189
|
-
<div id="returning" hidden>
|
|
190
|
-
<h1>Back to the build</h1>
|
|
191
|
-
<p>Opening the build's page to install it.</p>
|
|
192
|
-
</div>
|
|
193
|
-
<div id="missing" hidden>
|
|
194
|
-
<h1>No iPhone ID here</h1>
|
|
195
|
-
</div>
|
|
196
|
-
<p id="retry" hidden>Open the build's page in Safari and install the profile again. On a Mac, Finder shows an iPhone's ID, which a maintainer can register with native-build devices add.</p>
|
|
197
|
-
<a class="action" id="back" href="../../../native-builds/${encodeURIComponent(buildId)}">Back to the build</a>
|
|
198
|
-
</main>
|
|
199
|
-
<script nonce="${nonce}">
|
|
200
|
-
(function () {
|
|
201
|
-
var c = ${script};
|
|
202
|
-
var pattern = new RegExp(c.pattern, "i");
|
|
203
|
-
var show = function (id) { document.getElementById(id).hidden = false; };
|
|
204
|
-
var stored = function () { try { return localStorage.getItem(c.key); } catch (e) { return null; } };
|
|
205
|
-
var fromLink = new URLSearchParams(location.hash.slice(1)).get("udid");
|
|
206
|
-
var udid = fromLink && pattern.test(fromLink) ? fromLink : stored();
|
|
207
|
-
if (location.hash) history.replaceState(null, "", location.pathname);
|
|
208
|
-
if (!udid || !pattern.test(udid)) { show("missing"); show("retry"); return; }
|
|
209
|
-
try { localStorage.setItem(c.key, udid); } catch (e) {}
|
|
210
|
-
// The ID goes along in the fragment too, for a browser that keeps nothing.
|
|
211
|
-
var back = document.getElementById("back");
|
|
212
|
-
back.href = back.href.split("#")[0] + "#udid=" + encodeURIComponent(udid);
|
|
213
|
-
show("returning");
|
|
214
|
-
location.replace(back.href);
|
|
215
|
-
})();
|
|
216
|
-
</script>
|
|
217
|
-
</body>
|
|
218
|
-
</html>
|
|
219
|
-
`;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The page the callback lands on. It keeps the UDID in the phone's
|
|
224
|
-
* `localStorage` and goes straight back to the build's page with the UDID in
|
|
225
|
-
* the fragment too, for a browser that keeps nothing. The build's page offers
|
|
226
|
-
* Install, or the command for a maintainer, which asks whose iPhone it is,
|
|
227
|
-
* since a crafted link can carry any ID. The UDID stays in the browser: a
|
|
228
|
-
* fragment never reaches a server. It takes no session.
|
|
229
|
-
*
|
|
230
|
-
* - 400: the ID isn't a UUIDv7;
|
|
231
|
-
* - 405: a method other than GET or HEAD.
|
|
232
|
-
*/
|
|
233
|
-
export const serveDevicePage = (request: Request, id: string): Response => {
|
|
234
|
-
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
235
|
-
return methodRefusal("GET, HEAD");
|
|
236
|
-
}
|
|
237
|
-
if (!isUUIDv7(id)) return refusal(400, "Open this from a build's page.");
|
|
238
|
-
const nonce = btoa(
|
|
239
|
-
String.fromCharCode(...crypto.getRandomValues(new Uint8Array(16))),
|
|
240
|
-
);
|
|
241
|
-
return new Response(
|
|
242
|
-
request.method === "HEAD" ? null : page({ buildId: id, nonce }),
|
|
243
|
-
{
|
|
244
|
-
headers: {
|
|
245
|
-
"cache-control": "no-store",
|
|
246
|
-
"content-security-policy": `default-src 'none'; script-src 'nonce-${nonce}'; style-src 'nonce-${nonce}'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'`,
|
|
247
|
-
"content-type": "text/html; charset=utf-8",
|
|
248
|
-
"referrer-policy": "no-referrer",
|
|
249
|
-
"x-content-type-options": "nosniff",
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
);
|
|
253
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
|
|
3
|
-
// Where iOS posts an iPhone's UDID, with no session and no reads: see
|
|
4
|
-
// nativeBuildDevice.ts.
|
|
5
|
-
export const Route = createFileRoute(
|
|
6
|
-
"/_hot-updater/native-builds/$buildId/device-response",
|
|
7
|
-
)({
|
|
8
|
-
server: {
|
|
9
|
-
handlers: {
|
|
10
|
-
ANY: async ({ params, request }) => {
|
|
11
|
-
const { receiveDeviceResponse } =
|
|
12
|
-
await import("@/lib/server/nativeBuildDevice");
|
|
13
|
-
return receiveDeviceResponse(request, params.buildId);
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
});
|