@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.
Files changed (286) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
  4. package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
  5. package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
  6. package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
  7. package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
  8. package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
  9. package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
  10. package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
  11. package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
  12. package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
  13. package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
  14. package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
  15. package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
  16. package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
  17. package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
  18. package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
  19. package/.output/public/assets/api-DLryz9hA.js +1 -0
  20. package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
  21. package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
  22. package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
  23. package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
  24. package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
  25. package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
  26. package/.output/public/assets/card-C4sBAMU-.js +1 -0
  27. package/.output/public/assets/check-CqWNyG93.js +1 -0
  28. package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
  29. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
  30. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
  31. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
  32. package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
  33. package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
  34. package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
  35. package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
  36. package/.output/public/assets/field-DL4OXTJ7.js +1 -0
  37. package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
  38. package/.output/public/assets/history-wYnPoVmT.js +1 -0
  39. package/.output/public/assets/index-CAnjb7M2.js +10 -0
  40. package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
  41. package/.output/public/assets/insights-DIs4nJI9.js +2 -0
  42. package/.output/public/assets/insights-DTF7C4jb.js +42 -0
  43. package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
  44. package/.output/public/assets/insights-bUk3ChoU.js +1 -0
  45. package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
  46. package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
  47. package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
  48. package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
  49. package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
  50. package/.output/public/assets/installations-6U8c_03X.js +1 -0
  51. package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
  52. package/.output/public/assets/installations-D3MbzcFb.js +2 -0
  53. package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
  54. package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
  55. package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
  56. package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
  57. package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
  58. package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
  59. package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
  60. package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
  61. package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
  62. package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
  63. package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
  64. package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
  65. package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
  66. package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
  67. package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
  68. package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
  69. package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
  70. package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
  71. package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
  72. package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
  73. package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
  74. package/.output/public/assets/routes-CVbPjRKo.js +1 -0
  75. package/.output/public/assets/search-DiOSjaYL.js +1 -0
  76. package/.output/public/assets/select-CA8r-UUe.js +1 -0
  77. package/.output/public/assets/send-BgXZNiEA.js +1 -0
  78. package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
  79. package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
  80. package/.output/public/assets/styles-B0kzy3kp.css +2 -0
  81. package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
  82. package/.output/public/assets/table-CwF7yxj4.js +1 -0
  83. package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
  84. package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
  85. package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
  86. package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
  87. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
  88. package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
  89. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  90. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  91. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  92. package/.output/server/_libs/_.mjs +1 -1
  93. package/.output/server/_libs/lucide-react.mjs +22 -2
  94. package/.output/server/_libs/next-themes.mjs +1 -1
  95. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  96. package/.output/server/_libs/recharts+[...].mjs +1 -1
  97. package/.output/server/_libs/sonner.mjs +1 -1
  98. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  99. package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
  100. package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
  101. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
  102. package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
  103. package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
  104. package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
  105. package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
  106. package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
  107. package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
  108. package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
  109. package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
  110. package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
  111. package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
  112. package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
  113. package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
  114. package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
  115. package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
  116. package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
  117. package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
  118. package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
  119. package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
  120. package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
  121. package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
  122. package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
  123. package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
  124. package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  125. package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
  126. package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
  127. package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
  128. package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
  129. package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
  130. package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
  131. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  132. package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
  133. package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  134. package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
  135. package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
  136. package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
  137. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  138. package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
  139. package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
  140. package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
  142. package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
  143. package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
  144. package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  145. package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  146. package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
  147. package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  148. package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
  149. package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
  150. package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
  151. package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  152. package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
  153. package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
  154. package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  155. package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
  156. package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
  157. package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
  158. package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
  159. package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
  160. package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
  161. package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
  162. package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
  163. package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
  164. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  165. package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
  166. package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
  167. package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
  168. package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
  169. package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
  170. package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
  171. package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
  172. package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
  173. package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
  174. package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
  175. package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
  176. package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
  177. package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
  178. package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
  179. package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
  180. package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
  181. package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
  182. package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
  183. package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
  184. package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
  185. package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
  186. package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
  187. package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
  188. package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
  189. package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
  190. package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
  191. package/.output/server/_ssr/ssr.mjs +1 -1
  192. package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
  193. package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
  194. package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
  195. package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
  196. package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  197. package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
  198. package/.output/server/index.mjs +436 -366
  199. package/lib/index.d.mts +9 -0
  200. package/package.json +7 -30
  201. package/src/components/DataTable.tsx +21 -2
  202. package/src/components/FoldedRows.tsx +201 -0
  203. package/src/components/RowReason.tsx +56 -0
  204. package/src/components/features/native-builds/InstallCard.tsx +1 -1
  205. package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
  206. package/src/components/features/native-builds/IosInstall.tsx +292 -62
  207. package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
  208. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
  209. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  210. package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
  211. package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
  212. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  213. package/src/index.ts +9 -0
  214. package/src/lib/api-rpc.ts +56 -29
  215. package/src/lib/api.ts +65 -2
  216. package/src/lib/ios-devices-api.ts +110 -0
  217. package/src/lib/ios-devices-rpc.ts +174 -0
  218. package/src/lib/native-builds.ts +72 -7
  219. package/src/lib/server/console-runtime.server.ts +9 -2
  220. package/src/lib/server/deviceProfileToken.ts +187 -0
  221. package/src/lib/server/foldedPage.ts +360 -0
  222. package/src/lib/server/iosDeviceProfile.ts +230 -0
  223. package/src/lib/server/iosDevices.ts +223 -0
  224. package/src/lib/server/listReleases.ts +101 -62
  225. package/src/lib/server/nativeBuildInstall.ts +138 -7
  226. package/src/lib/server/nativeBuilds.ts +221 -26
  227. package/src/routeTree.gen.ts +64 -67
  228. package/src/routes/-native-builds-search.ts +20 -0
  229. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  230. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  231. package/src/routes/index.tsx +444 -299
  232. package/src/routes/native-builds_.devices.tsx +21 -0
  233. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
  234. package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
  235. package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
  236. package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
  237. package/.output/public/assets/api-LQJH44FU.js +0 -1
  238. package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
  239. package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
  240. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  241. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  242. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  243. package/.output/public/assets/card-ulgg5xHn.js +0 -1
  244. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  245. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  246. package/.output/public/assets/dialog-CLIaC82_.js +0 -1
  247. package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
  248. package/.output/public/assets/field-q4sTYzNU.js +0 -1
  249. package/.output/public/assets/history-DakJoeSM.js +0 -1
  250. package/.output/public/assets/index-CJclLsbG.js +0 -10
  251. package/.output/public/assets/insights-0TUItqwh.js +0 -1
  252. package/.output/public/assets/insights-B75txQ_F.js +0 -42
  253. package/.output/public/assets/insights-C17Z0whn.js +0 -2
  254. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  255. package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
  256. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
  257. package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
  258. package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
  259. package/.output/public/assets/installations-D0g3xvw8.js +0 -2
  260. package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
  261. package/.output/public/assets/native-builds-C3_-21we.js +0 -1
  262. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
  263. package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
  264. package/.output/public/assets/plus-BVhOauU3.js +0 -1
  265. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  266. package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
  267. package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
  268. package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
  269. package/.output/public/assets/routes-BLTF7nwe.js +0 -1
  270. package/.output/public/assets/search-nnvSOTEB.js +0 -1
  271. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  272. package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
  273. package/.output/public/assets/styles-BdlrKlVs.css +0 -2
  274. package/.output/public/assets/switch-CP6GsHmN.js +0 -1
  275. package/.output/public/assets/table-TUtVz-2l.js +0 -1
  276. package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
  277. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  278. package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
  279. package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
  280. package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
  281. package/src/lib/server/nativeBuildDevice.ts +0 -253
  282. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
  283. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
  284. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
  285. /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
  286. /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  HotUpdaterCoreApi,
3
+ IosDeviceRow,
3
4
  NativeBuildRow,
4
5
  StorageAdapter,
5
6
  } from "@hot-updater/plugin-core";
@@ -16,6 +17,7 @@ import {
16
17
  nativeBuildDownloadPath,
17
18
  nativeBuildManifestPath,
18
19
  } from "../native-builds";
20
+ import { listIosDevices } from "./iosDevices";
19
21
  import {
20
22
  issueNativeBuildDownloadLink,
21
23
  type NativeBuildDownloadLinkResult,
@@ -184,6 +186,18 @@ export type NativeBuildInstallEligibility =
184
186
  readonly status: "installable";
185
187
  /** Whether the IPA lists the device: `unknown` without a UDID to look up. */
186
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;
187
201
  readonly expiresAt: string | null;
188
202
  /** The token of the Install button's manifest and download. */
189
203
  readonly link: NativeBuildDownloadLinkResult;
@@ -192,6 +206,57 @@ export type NativeBuildInstallEligibility =
192
206
  const isExpired = ({ expiresAtMs }: IpaInstallInfo, now: number) =>
193
207
  expiresAtMs !== null && expiresAtMs <= now;
194
208
 
209
+ /**
210
+ * The build a registered device's row names, when it is newer than `build`,
211
+ * of the same app (bundle ID, read from its IPA, and sandbox or not), on the
212
+ * same channel, ad hoc, unexpired, and its IPA lists the device; null
213
+ * otherwise, and for a build gone or unreadable. Its row is read only for a
214
+ * registered device whose row names a newer build, and its IPA only when the
215
+ * row matches.
216
+ */
217
+ const newerBuildListing = async (
218
+ build: NativeBuildRow,
219
+ info: IpaInstallInfo,
220
+ device: IosDeviceRow,
221
+ key: string,
222
+ {
223
+ core,
224
+ storage,
225
+ fetch,
226
+ now,
227
+ }: {
228
+ readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild">;
229
+ readonly storage: StorageAdapter;
230
+ readonly fetch: typeof globalThis.fetch;
231
+ readonly now: number;
232
+ },
233
+ ): Promise<string | null> => {
234
+ const id = device.build_id;
235
+ if (device.status !== "registered" || id === null || id <= build.id) {
236
+ return null;
237
+ }
238
+ const newer = await core.getNativeBuild(id).catch(() => null);
239
+ if (
240
+ newer === null ||
241
+ newer.artifact_kind !== "ipa" ||
242
+ newer.platform !== build.platform ||
243
+ newer.channel_id !== build.channel_id ||
244
+ newer.is_sandbox !== build.is_sandbox ||
245
+ // Null on an IPA registered before it was recorded: its profile decides.
246
+ (newer.export_method !== null && newer.export_method !== "ad-hoc")
247
+ ) {
248
+ return null;
249
+ }
250
+ const listing = await readNativeBuildInstallInfo(newer, storage, fetch);
251
+ return listing !== null &&
252
+ listing.bundleId === info.bundleId &&
253
+ listing.distribution === "ad-hoc" &&
254
+ listing.devices.includes(key) &&
255
+ !isExpired(listing, now)
256
+ ? id
257
+ : null;
258
+ };
259
+
195
260
  /**
196
261
  * What an iPhone can do with a build, for a caller the Console already let in:
197
262
  * one read of the build's row, and the IPA's few parts from storage. App Store
@@ -205,7 +270,7 @@ export const checkNativeBuildInstall = async (
205
270
  core,
206
271
  storage,
207
272
  }: {
208
- readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild">;
273
+ readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild" | "findIosDevice">;
209
274
  readonly storage: StorageAdapter;
210
275
  },
211
276
  {
@@ -229,14 +294,29 @@ export const checkNativeBuildInstall = async (
229
294
  return { status: "expired", expiresAt };
230
295
  }
231
296
  const key = udid === undefined ? null : normalizeIosUdid(udid);
297
+ const device =
298
+ key === null
299
+ ? "unknown"
300
+ : info.distribution === "enterprise" || info.devices.includes(key)
301
+ ? "included"
302
+ : "not-included";
303
+ const registry =
304
+ device === "not-included" && key !== null
305
+ ? await core.findIosDevice(key)
306
+ : null;
232
307
  return {
233
308
  status: "installable",
234
- device:
235
- key === null
236
- ? "unknown"
237
- : info.distribution === "enterprise" || info.devices.includes(key)
238
- ? "included"
239
- : "not-included",
309
+ device,
310
+ registry,
311
+ newerBuild:
312
+ registry === null || key === null
313
+ ? null
314
+ : await newerBuildListing(build, info, registry, key, {
315
+ core,
316
+ storage,
317
+ fetch,
318
+ now,
319
+ }),
240
320
  expiresAt,
241
321
  link: await issueNativeBuildDownloadLink(
242
322
  id,
@@ -353,3 +433,54 @@ export const serveNativeBuildManifest = async (
353
433
  },
354
434
  });
355
435
  };
436
+
437
+ /** One device an ad hoc IPA lists, with the registry's name when it has one. */
438
+ export interface NativeBuildIpaDevice {
439
+ readonly udid: string;
440
+ readonly name: string | null;
441
+ }
442
+
443
+ export type NativeBuildIpaDevices =
444
+ /** The IPA can't be read in parts. */
445
+ | { readonly status: "unavailable" }
446
+ /** An App Store export or an enterprise build, which list no devices. */
447
+ | { readonly status: "store" | "enterprise" }
448
+ | { readonly status: "listed"; readonly devices: NativeBuildIpaDevice[] };
449
+
450
+ /**
451
+ * The devices an IPA's profile lists, read from storage as the install check
452
+ * reads it, each named by the device registry when it knows the UDID. The IPA
453
+ * decides: the registry only names what it lists. One build read, the IPA's
454
+ * few parts, and the registry a page at a time.
455
+ */
456
+ export const readNativeBuildIpaDevices = async (
457
+ id: string,
458
+ {
459
+ core,
460
+ storage,
461
+ }: {
462
+ readonly core: Pick<HotUpdaterCoreApi, "getNativeBuild" | "listIosDevices">;
463
+ readonly storage: StorageAdapter;
464
+ },
465
+ fetch: typeof globalThis.fetch = globalThis.fetch,
466
+ ): Promise<NativeBuildIpaDevices> => {
467
+ const build = await core.getNativeBuild(id);
468
+ if (build === null) return { status: "unavailable" };
469
+ const info = await readNativeBuildInstallInfo(build, storage, fetch);
470
+ if (info === null) return { status: "unavailable" };
471
+ if (info.distribution === "store" || info.distribution === "enterprise") {
472
+ return { status: info.distribution };
473
+ }
474
+ const names = new Map(
475
+ info.devices.length === 0
476
+ ? []
477
+ : (await listIosDevices(core)).map((row) => [row.udid, row.name]),
478
+ );
479
+ return {
480
+ status: "listed",
481
+ devices: info.devices.map((udid) => ({
482
+ udid,
483
+ name: names.get(udid) ?? null,
484
+ })),
485
+ };
486
+ };
@@ -11,8 +11,17 @@ import type { ReleaseCatalogDescriptor } from "@hot-updater/protocol";
11
11
  import {
12
12
  nativeBuildCatalogScopeKey,
13
13
  nativeBuildChannel,
14
+ nativeBuildPathKey,
14
15
  nativeBuildScope,
15
16
  } from "../native-builds";
17
+ import {
18
+ FOLDED_PAGE_CHUNK,
19
+ FOLDED_PAGE_READ_BUDGET,
20
+ type FoldedPage,
21
+ foldedPage,
22
+ type ReadBudget,
23
+ readFold,
24
+ } from "./foldedPage";
16
25
 
17
26
  export interface KeysetPageInput {
18
27
  /** Rows older than this key: the next page. */
@@ -63,32 +72,6 @@ async function keysetPage<T>(
63
72
  };
64
73
  }
65
74
 
66
- export interface NativeBuildListInput extends KeysetPageInput {
67
- /** Only the builds that embed this channel ID. */
68
- readonly channelId?: string;
69
- }
70
-
71
- export type NativeBuildListResult = KeysetPage<NativeBuildRow>;
72
-
73
- /**
74
- * One page of native builds, newest first: one read of the registry's ID
75
- * index, or of its channel index for one channel's builds.
76
- */
77
- export function listNativeBuilds(
78
- core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
79
- { channelId, ...page }: NativeBuildListInput,
80
- ): Promise<NativeBuildListResult> {
81
- return keysetPage(
82
- (input) =>
83
- core.listNativeBuilds({
84
- ...input,
85
- ...(channelId === undefined ? {} : { channelId }),
86
- }),
87
- ({ id }) => id,
88
- page,
89
- );
90
- }
91
-
92
75
  /** A patch from a build's built-in bundle: the bundle it updates to, and its size. */
93
76
  export interface NativeBuildPatch {
94
77
  readonly bundleId: string;
@@ -340,3 +323,215 @@ export async function downloadNativeBuild(
340
323
  { status: 503 },
341
324
  );
342
325
  }
326
+
327
+ /** A page of native builds that leads with each distribution path's newest. */
328
+ export type NativeBuildFoldedPage = FoldedPage<NativeBuildRow>;
329
+
330
+ /**
331
+ * The most rows one page or fold reads looking above its own rows for a
332
+ * newer build on a path, of its read budget, so its own rows keep the rest.
333
+ */
334
+ const SIBLING_READ_CAP = 100;
335
+
336
+ /**
337
+ * Finds the nearest build newer than each of some builds on its
338
+ * distribution path, by each channel's own index, read upward from where
339
+ * its caller starts and kept, so each channel's rows are read once. The
340
+ * channels are read side by side. Newer is the registry's order: a greater
341
+ * ID. A path is the channel, platform, sandbox flag and distribution
342
+ * (`nativeBuildPathKey`), worked out from the row, so a build registered at
343
+ * any time is found. It spends `budget`, at most `SIBLING_READ_CAP` rows in
344
+ * all, shared out among the channels: a build it can't find a newer one for
345
+ * within that has none it knows of.
346
+ */
347
+ const newerOnPathFinder = (
348
+ core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
349
+ ) => {
350
+ const channels = new Map<
351
+ string,
352
+ { from: string; rows: NativeBuildRow[]; last?: string; ended: boolean }
353
+ >();
354
+ let spent = 0;
355
+ const lookUp = async (
356
+ build: NativeBuildRow,
357
+ from: string,
358
+ share: ReadBudget,
359
+ ): Promise<NativeBuildRow | undefined> => {
360
+ let channel = channels.get(build.channel_id);
361
+ if (channel === undefined || from < channel.from) {
362
+ channel = { from, rows: [], ended: false };
363
+ channels.set(build.channel_id, channel);
364
+ }
365
+ const key = nativeBuildPathKey(build);
366
+ for (;;) {
367
+ // Oldest first, so the first match is the nearest newer build.
368
+ const newer = channel.rows.find(
369
+ (row) => row.id > build.id && nativeBuildPathKey(row) === key,
370
+ );
371
+ if (newer !== undefined) return newer;
372
+ const limit = Math.min(FOLDED_PAGE_CHUNK, share.left);
373
+ if (channel.ended || limit <= 0) return undefined;
374
+ const rows = await core.listNativeBuilds({
375
+ channelId: build.channel_id,
376
+ order: "asc",
377
+ after: channel.last ?? channel.from,
378
+ limit,
379
+ });
380
+ share.left -= rows.length;
381
+ channel.rows.push(...rows);
382
+ channel.last = rows.at(-1)?.id ?? channel.last;
383
+ if (rows.length < limit) channel.ended = true;
384
+ }
385
+ };
386
+ return async (
387
+ builds: readonly NativeBuildRow[],
388
+ from: string,
389
+ budget: ReadBudget,
390
+ ): Promise<ReadonlyMap<string, NativeBuildRow | undefined>> => {
391
+ const byChannel = new Map<string, NativeBuildRow[]>();
392
+ for (const build of builds) {
393
+ byChannel.set(build.channel_id, [
394
+ ...(byChannel.get(build.channel_id) ?? []),
395
+ build,
396
+ ]);
397
+ }
398
+ const allowance = Math.max(
399
+ 0,
400
+ Math.min(budget.left, SIBLING_READ_CAP - spent),
401
+ );
402
+ const share = Math.floor(allowance / Math.max(byChannel.size, 1));
403
+ const found = new Map<string, NativeBuildRow | undefined>();
404
+ const used = await Promise.all(
405
+ [...byChannel.values()].map(async (channelBuilds) => {
406
+ const left: ReadBudget = { left: share };
407
+ for (const build of channelBuilds) {
408
+ found.set(build.id, await lookUp(build, from, left));
409
+ }
410
+ return share - left.left;
411
+ }),
412
+ );
413
+ const total = used.reduce((sum, rows) => sum + rows, 0);
414
+ budget.left -= total;
415
+ spent += total;
416
+ return found;
417
+ };
418
+ };
419
+
420
+ /**
421
+ * One page of native builds, newest first, that leads with the newest build
422
+ * of each distribution path, and the store build: every other build folds
423
+ * into the runs between them. It reads the registry's ID index, or its
424
+ * channel index, a chunk at a time, and on a later page each path's newer
425
+ * builds above the page in its channel's index, at most
426
+ * `FOLDED_PAGE_READ_BUDGET` rows in all.
427
+ */
428
+ export function listNativeBuildFolds(
429
+ core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
430
+ {
431
+ channelId,
432
+ before,
433
+ after,
434
+ }: {
435
+ readonly channelId?: string;
436
+ readonly before?: string;
437
+ readonly after?: string;
438
+ },
439
+ ): Promise<NativeBuildFoldedPage> {
440
+ const findNewer = newerOnPathFinder(core);
441
+ // The newest build of each path this page has read, newest first.
442
+ const seen = new Map<string, NativeBuildRow>();
443
+ return foldedPage({
444
+ read: (input) =>
445
+ core.listNativeBuilds({
446
+ ...input,
447
+ ...(channelId === undefined ? {} : { channelId }),
448
+ }),
449
+ classify: async (builds, { budget, order, newerThan }) => {
450
+ const ordinary = new Set<string>();
451
+ if (order === "asc") {
452
+ // Oldest first, each build looks above itself.
453
+ const newer = await findNewer(builds, builds[0]!.id, budget);
454
+ for (const build of builds) {
455
+ if (build.is_store_build || newer.get(build.id) === undefined) {
456
+ ordinary.add(build.id);
457
+ }
458
+ }
459
+ return ordinary;
460
+ }
461
+ // Newest first, a path's first build on the page looks above the
462
+ // page, and the rest have it as their newer build.
463
+ const firsts: NativeBuildRow[] = [];
464
+ const keys = new Set(seen.keys());
465
+ for (const build of builds) {
466
+ const key = nativeBuildPathKey(build);
467
+ if (!keys.has(key)) {
468
+ keys.add(key);
469
+ firsts.push(build);
470
+ }
471
+ }
472
+ const above =
473
+ newerThan === undefined
474
+ ? new Map<string, NativeBuildRow | undefined>()
475
+ : await findNewer(firsts, newerThan, budget);
476
+ for (const build of builds) {
477
+ const key = nativeBuildPathKey(build);
478
+ const newer = seen.get(key) ?? above.get(build.id);
479
+ if (!seen.has(key)) seen.set(key, build);
480
+ if (build.is_store_build || newer === undefined) {
481
+ ordinary.add(build.id);
482
+ }
483
+ }
484
+ return ordinary;
485
+ },
486
+ ...(before === undefined ? {} : { before }),
487
+ ...(after === undefined ? {} : { after }),
488
+ });
489
+ }
490
+
491
+ /** One chunk of a fold's builds, each with the newer build on its path. */
492
+ export interface NativeBuildFoldChunk {
493
+ readonly rows: readonly NativeBuildRow[];
494
+ /** The nearest newer build on each row's path, by row ID, where one was found. */
495
+ readonly newer: Readonly<Record<string, NativeBuildRow>>;
496
+ readonly next?: string;
497
+ }
498
+
499
+ /**
500
+ * One chunk of a fold's builds, as `listNativeBuildFolds` folded them: the
501
+ * builds under `from` down to `to`, and each one's nearest newer build,
502
+ * read from its channel's index upward within the read budget.
503
+ */
504
+ export async function readNativeBuildFold(
505
+ core: Pick<HotUpdaterCoreApi, "listNativeBuilds">,
506
+ {
507
+ channelId,
508
+ ...fold
509
+ }: {
510
+ readonly channelId?: string;
511
+ readonly from?: string;
512
+ readonly to: string;
513
+ readonly after?: string;
514
+ },
515
+ ): Promise<NativeBuildFoldChunk> {
516
+ const chunk = await readFold({
517
+ read: (input) =>
518
+ core.listNativeBuilds({
519
+ ...input,
520
+ ...(channelId === undefined ? {} : { channelId }),
521
+ }),
522
+ ...fold,
523
+ });
524
+ const budget: ReadBudget = {
525
+ left: FOLDED_PAGE_READ_BUDGET - chunk.rows.length,
526
+ };
527
+ const oldest = chunk.rows.at(-1)?.id;
528
+ const found =
529
+ oldest === undefined
530
+ ? new Map<string, NativeBuildRow | undefined>()
531
+ : await newerOnPathFinder(core)(chunk.rows, oldest, budget);
532
+ const newer: Record<string, NativeBuildRow> = {};
533
+ for (const [id, row] of found) {
534
+ if (row !== undefined) newer[id] = row;
535
+ }
536
+ return { ...chunk, newer };
537
+ }