@hot-updater/console 1.2.0-rc.12 → 1.2.0-rc.13

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 (210) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-C-TGpFAm.js → -native-builds-search-DC2PutLU.js} +1 -1
  3. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-oMmbaqF6.js} +1 -1
  4. package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-ly7ygfdH.js} +1 -1
  5. package/.output/public/assets/{HashValueDisplay-6lNRxDJX.js → HashValueDisplay-BNoXZADg.js} +1 -1
  6. package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-q2FgL8xS.js} +1 -1
  7. package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +1 -0
  8. package/.output/public/assets/{StoreSubmission-ViTkW4eJ.js → StoreSubmission-D8BGGGgn.js} +1 -1
  9. package/.output/public/assets/api-BEEYDSCX.js +1 -0
  10. package/.output/public/assets/{api-keys-FueRkF9q.js → api-keys-B0N3SixL.js} +1 -1
  11. package/.output/public/assets/api-keys-DFAOfU4U.js +1 -0
  12. package/.output/public/assets/{index-DH9-mB8D.js → index-t0CToN0S.js} +3 -3
  13. package/.output/public/assets/insights-B0_8xNxr.js +1 -0
  14. package/.output/public/assets/{insights-B-0odqpt.js → insights-BbIzm_QG.js} +2 -2
  15. package/.output/public/assets/insights-BtmYg4vg.js +2 -0
  16. package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-B5cZsP6C.js} +1 -1
  17. package/.output/public/assets/{insights-usage-rpc-CKQH0pUS.js → insights-usage-rpc-zut_JaSS.js} +1 -1
  18. package/.output/public/assets/insights_.distribution-DLxq-IKU.js +1 -0
  19. package/.output/public/assets/insights_.distribution-izFBYfJL.js +2 -0
  20. package/.output/public/assets/{insights_.distribution-dvk6vYDM.js → insights_.distribution-rdeyNhH2.js} +1 -1
  21. package/.output/public/assets/{installations-B674P5Z5.js → installations-BRS-vuRJ.js} +2 -2
  22. package/.output/public/assets/installations-CWx7vYY5.js +1 -0
  23. package/.output/public/assets/{installations-BWxczZ2t.js → installations-Ce_dTa35.js} +1 -1
  24. package/.output/public/assets/native-builds-Br0onFRc.js +2 -0
  25. package/.output/public/assets/native-builds-CDYL3y0I.js +1 -0
  26. package/.output/public/assets/native-builds-DEWHul-_.js +1 -0
  27. package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +1 -0
  28. package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +2 -0
  29. package/.output/public/assets/{remote-config-B7ujqhLa.js → remote-config-Bw6sErCV.js} +3 -3
  30. package/.output/public/assets/{remote-config-WjpozBG5.js → remote-config-DQguWTMa.js} +1 -1
  31. package/.output/public/assets/remote-config-S3xj8r3x.js +1 -0
  32. package/.output/public/assets/{routes-CCD33Azv.js → routes-Dw8zgqXz.js} +2 -2
  33. package/.output/public/assets/routes-nKCEKnhh.js +1 -0
  34. package/.output/server/{__23tanstack-start-server-fn-resolver-C19x6erS.mjs → __23tanstack-start-server-fn-resolver-DI0OnlQe.mjs} +58 -46
  35. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  36. package/.output/server/_libs/_.mjs +2 -0
  37. package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Cl8EZ0Ud.mjs} +2 -2
  38. package/.output/server/_ssr/{BundleIdDisplay-Bf-L37zf.mjs → BundleIdDisplay-SAvC-NlE.mjs} +2 -2
  39. package/.output/server/_ssr/{ConsoleFeatureUnavailable-iNGya64h.mjs → ConsoleFeatureUnavailable-BgHEoZ36.mjs} +6 -6
  40. package/.output/server/_ssr/{EventDetails-CZofL6Hn.mjs → EventDetails-VaS25yjE.mjs} +7 -7
  41. package/.output/server/_ssr/{HashValueDisplay-DC1TLS-8.mjs → HashValueDisplay-BGc-x_l8.mjs} +2 -2
  42. package/.output/server/_ssr/{InsightsPageHeader-sVotAhl0.mjs → InsightsPageHeader-gMuNJt-f.mjs} +7 -7
  43. package/.output/server/_ssr/{NotFoundPage-COb0erGp.mjs → NotFoundPage-DsRI-J4h.mjs} +2 -2
  44. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BsU0d0jN.mjs} +1 -1
  45. package/.output/server/_ssr/{RolloutPercentageBadge-BFBh0QWv.mjs → RolloutPercentageBadge-axz7VuIZ.mjs} +3 -3
  46. package/.output/server/_ssr/{StoreSubmission-Bvfq8pWk.mjs → StoreSubmission-BqXKtpqW.mjs} +5 -5
  47. package/.output/server/_ssr/{alert-dialog-C-Mck8_M.mjs → alert-dialog-lury59vV.mjs} +1 -1
  48. package/.output/server/_ssr/{api-oJajV-DG.mjs → api-BQ8ztUgU.mjs} +99 -22
  49. package/.output/server/_ssr/{api-keys-CcqDkOcC.mjs → api-keys-CHATVpa9.mjs} +2 -2
  50. package/.output/server/_ssr/{api-keys-B0L1sj-W.mjs → api-keys-DVChzF3r.mjs} +8 -8
  51. package/.output/server/_ssr/{api-keys-rpc-Do6Rbl0V.mjs → api-keys-rpc-DXPJTfdr.mjs} +4 -4
  52. package/.output/server/_ssr/{api-rpc-DE0zy7iY.mjs → api-rpc-BexxmTM9.mjs} +43 -18
  53. package/.output/server/_ssr/{auth-rpc-0I_10FKy.mjs → auth-rpc-BgNCvy2L.mjs} +5 -5
  54. package/.output/server/_ssr/{auth.server-cdIC1rxo.mjs → auth.server-43UW34Rd.mjs} +165 -149
  55. package/.output/server/_ssr/{badge-BZZCX8Wn.mjs → badge-BYB825vl.mjs} +1 -1
  56. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BGVvqWx7.mjs} +1 -1
  57. package/.output/server/_ssr/{config.server-CydWUX0c.mjs → config.server-QRTmD4Hf.mjs} +4 -4
  58. package/.output/server/_ssr/{console-access-y52SJdFn.mjs → console-access-E91fYTIB.mjs} +2 -2
  59. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-CgdQJQlX.mjs} +1 -1
  60. package/.output/server/_ssr/{console-features-api-BDrXaElT.mjs → console-features-api-CLRjxvy2.mjs} +5 -5
  61. package/.output/server/_ssr/{console-features-rpc-C9kKIDeK.mjs → console-features-rpc-C2rJ0u6i.mjs} +4 -4
  62. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  63. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
  64. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  65. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
  66. package/.output/server/_ssr/{dialog-DKsDLcYQ.mjs → dialog-CcF1pxfR.mjs} +1 -1
  67. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
  68. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-BX8ODCZT.mjs} +1 -1
  69. package/.output/server/_ssr/{empty-D-mnqnCP.mjs → empty-DkiJ7nWt.mjs} +2 -2
  70. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  71. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-C_CmBF4x.mjs} +3 -3
  72. package/.output/server/_ssr/{field-Bbw5SS9L.mjs → field-CHlDI06h.mjs} +2 -2
  73. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-BJTufthT.mjs} +2 -2
  74. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → git-WSg7LY17.mjs} +2 -2
  75. package/.output/server/_ssr/{input-group-DXofNRNJ.mjs → input-group-BPZ4UtB5.mjs} +1 -1
  76. package/.output/server/_ssr/{insights-Dm2UdEf_.mjs → insights-B3YetvBK.mjs} +5 -5
  77. package/.output/server/_ssr/{insights-C7rhyg61.mjs → insights-CEABWFk4.mjs} +26 -26
  78. package/.output/server/_ssr/{insights-D6kIjZuE.mjs → insights-Dn32lJ18.mjs} +2 -2
  79. package/.output/server/_ssr/{insights-api-DNmt4PWL.mjs → insights-api-CYPf5853.mjs} +5 -5
  80. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-Bz3sWNZm.mjs} +2 -2
  81. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DNQ9qVVf.mjs} +2 -2
  82. package/.output/server/_ssr/{insights-failures-rpc-DkrdYXJk.mjs → insights-failures-rpc-CxPpBR1K.mjs} +11 -11
  83. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-DOkpqnQ8.mjs} +1 -1
  84. package/.output/server/_ssr/{insights-recovery-rpc-DWLnLF_s.mjs → insights-recovery-rpc-CwnQMTE3.mjs} +7 -7
  85. package/.output/server/_ssr/{insights-rpc-CdYYZ7lE.mjs → insights-rpc-CKd5ATFI.mjs} +4 -4
  86. package/.output/server/_ssr/{insights-search-HVXIz64-.mjs → insights-search-B_92_iEj.mjs} +4 -4
  87. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-4KDIN3Kg.mjs} +1 -1
  88. package/.output/server/_ssr/{insights-usage-rpc-CLHS5JhI.mjs → insights-usage-rpc-D90uHpJJ.mjs} +7 -7
  89. package/.output/server/_ssr/{insights-usage-rpc-BCMRZErp.mjs → insights-usage-rpc-RIMNhPtj.mjs} +4 -4
  90. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-DmQdJZqT.mjs} +3 -3
  91. package/.output/server/_ssr/{insights_.distribution-zbVsH0TU.mjs → insights_.distribution-D42mHSe0.mjs} +14 -14
  92. package/.output/server/_ssr/{insights_.distribution-3NzANTBS.mjs → insights_.distribution-D4QWsHNo.mjs} +5 -5
  93. package/.output/server/_ssr/{insights_.distribution-BTbT0Z4H.mjs → insights_.distribution-DwjIdjQi.mjs} +2 -2
  94. package/.output/server/_ssr/{installations-BsCupWHx.mjs → installations-BIu66J6Q.mjs} +2 -2
  95. package/.output/server/_ssr/{installations-3XOT2V1j.mjs → installations-CfmO_V_R.mjs} +4 -4
  96. package/.output/server/_ssr/{installations-CpjqEYh_.mjs → installations-DyzKzWuv.mjs} +11 -11
  97. package/.output/server/_ssr/{listReleases-D_GY00SQ.mjs → listReleases-CQEceg8j.mjs} +1 -1
  98. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  99. package/.output/server/_ssr/native-artifact-H1MDP0Jz.mjs +593 -0
  100. package/.output/server/_ssr/{native-builds-CehTsEwY.mjs → native-builds-BCp8ICrn.mjs} +3 -3
  101. package/.output/server/_ssr/{native-builds-vYKOMlhp.mjs → native-builds-CqFeXByK.mjs} +17 -13
  102. package/.output/server/_ssr/{native-builds-DhXL5zf_.mjs → native-builds-qj346atQ.mjs} +49 -12
  103. package/.output/server/_ssr/{native-builds_._buildId-BHxp9NcZ.mjs → native-builds_._buildId-BAxkkEFo.mjs} +600 -168
  104. package/.output/server/_ssr/{native-builds_._buildId-euhJ0EI7.mjs → native-builds_._buildId-C8gsW-Rh.mjs} +3 -3
  105. package/.output/server/_ssr/nativeBuildDevice-nU480p5A.mjs +230 -0
  106. package/.output/server/_ssr/nativeBuildDownloadLink-c3tcq3G5.mjs +96 -0
  107. package/.output/server/_ssr/nativeBuildInstall-B-_lHDsS.mjs +203 -0
  108. package/.output/server/_ssr/nativeBuildQr-C5AFtpmE.mjs +115 -0
  109. package/.output/server/_ssr/{nativeBuilds-B_7BPjt_.mjs → nativeBuilds-CbxOJDhO.mjs} +61 -29
  110. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
  111. package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +27 -0
  112. package/.output/server/_ssr/{qr-code-C7kNRIDX.mjs → qr-code-pENFuyy9.mjs} +1 -1
  113. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-C7sUFDwa.mjs} +2 -2
  114. package/.output/server/_ssr/{release-adoption-rpc-BF8svHjV.mjs → release-adoption-rpc-BBwJO2hu.mjs} +9 -9
  115. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-LLYlRnUB.mjs} +4 -4
  116. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
  117. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
  118. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
  119. package/.output/server/_ssr/{remote-config-Bn-BZgDt.mjs → remote-config-B1g7vrQD.mjs} +2 -2
  120. package/.output/server/_ssr/{remote-config-ofOYh91b.mjs → remote-config-BDijmvj1.mjs} +2 -2
  121. package/.output/server/_ssr/{remote-config-DdukdePk.mjs → remote-config-DjeXVIcr.mjs} +18 -18
  122. package/.output/server/_ssr/{remote-config-rpc-CzSU_Gwg.mjs → remote-config-rpc-B7bzKw4N.mjs} +5 -5
  123. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  124. package/.output/server/_ssr/{router-BQikCEhb.mjs → router-DhxgFNWn.mjs} +101 -50
  125. package/.output/server/_ssr/{routes-Brx45XtQ.mjs → routes-BC-rBuu_.mjs} +25 -25
  126. package/.output/server/_ssr/{routes-CTo-A_dj.mjs → routes-BDriEBtF.mjs} +12 -12
  127. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BsTTLV-B.mjs} +4 -4
  128. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
  129. package/.output/server/_ssr/{schema-migration-rpc-BcwNAFZJ.mjs → schema-migration-rpc-CNMqY0RE.mjs} +4 -4
  130. package/.output/server/_ssr/{select-Dk_Yv0IG.mjs → select-hFD2e3Bh.mjs} +1 -1
  131. package/.output/server/_ssr/{server-b1jUGuT2.mjs → server-D_hG9iIq.mjs} +6 -6
  132. package/.output/server/_ssr/{sidebar-CsRdKfb2.mjs → sidebar-Dmq4j1qr.mjs} +2 -2
  133. package/.output/server/_ssr/ssr.mjs +1 -1
  134. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-RjhaPVFE.mjs} +2 -2
  135. package/.output/server/_ssr/{switch-DpYvZqIf.mjs → switch-CkNsEp9k.mjs} +2 -2
  136. package/.output/server/_ssr/{table-BAP-tdNn.mjs → table-CTtXogFJ.mjs} +1 -1
  137. package/.output/server/_ssr/{tabs-DGN9JEGV.mjs → tabs-BTKDM4AJ.mjs} +2 -2
  138. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DPYzv9bE.mjs} +3 -3
  139. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
  140. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
  141. package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +189 -0
  142. package/.output/server/index.mjs +275 -275
  143. package/package.json +7 -7
  144. package/src/components/features/native-builds/BuiltInBundleCard.tsx +82 -33
  145. package/src/components/features/native-builds/InstallCard.tsx +246 -46
  146. package/src/components/features/native-builds/IosInstall.tsx +300 -0
  147. package/src/components/features/native-builds/NativeBuildsTable.tsx +3 -0
  148. package/src/components/features/native-builds/PatchesCard.tsx +3 -2
  149. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
  150. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  151. package/src/components/features/native-builds/StoreSubmission.tsx +1 -1
  152. package/src/lib/api-rpc.ts +55 -6
  153. package/src/lib/api.ts +85 -12
  154. package/src/lib/native-builds.ts +73 -11
  155. package/src/lib/server/local-console.ts +1 -1
  156. package/src/lib/server/nativeBuildDevice.ts +274 -0
  157. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  158. package/src/lib/server/nativeBuildInstall.ts +355 -0
  159. package/src/lib/server/nativeBuildQr.ts +114 -24
  160. package/src/lib/server/nativeBuilds.ts +87 -33
  161. package/src/lib/server/plistText.ts +17 -0
  162. package/src/lib/server/publicConsoleBase.ts +17 -0
  163. package/src/routeTree.gen.ts +114 -0
  164. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +17 -0
  165. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +17 -0
  166. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +17 -0
  167. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  168. package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +14 -0
  169. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  170. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  171. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  172. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  173. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  174. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  175. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  176. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  177. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  178. package/.output/public/assets/native-builds-BGgFQTDW.js +0 -2
  179. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  180. package/.output/public/assets/native-builds-CxomzFqe.js +0 -1
  181. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  182. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  183. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  184. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  185. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  186. package/.output/server/_tanstack-start-manifest_v-uhJWytDm.mjs +0 -184
  187. /package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-fiaucvsO.js} +0 -0
  188. /package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DCTtCP5t.js} +0 -0
  189. /package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Z_RNBrFc.js} +0 -0
  190. /package/.output/public/assets/{badge-DWFcDWho.js → badge-UNnTz4Dl.js} +0 -0
  191. /package/.output/public/assets/{dialog-CNUPxNxH.js → dialog-C2U9bINi.js} +0 -0
  192. /package/.output/public/assets/{dist-CPlO6ko9.js → dist-UQUhRoJi.js} +0 -0
  193. /package/.output/public/assets/{empty-B3Uwdd6k.js → empty-PAp07lsC.js} +0 -0
  194. /package/.output/public/assets/{field-D-2-mnNh.js → field-DhKRWFG5.js} +0 -0
  195. /package/.output/public/assets/{history-DqHlgSuV.js → history-DakJoeSM.js} +0 -0
  196. /package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-BJfBVqeI.js} +0 -0
  197. /package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-DzBe6DHr.js} +0 -0
  198. /package/.output/public/assets/{list--NIee1FZ.js → list-B6GeoQ_b.js} +0 -0
  199. /package/.output/public/assets/{plus-BReVKct-.js → plus-BVhOauU3.js} +0 -0
  200. /package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-C6svDMfM.js} +0 -0
  201. /package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BscR0TsX.js} +0 -0
  202. /package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-CxFW64IG.js} +0 -0
  203. /package/.output/public/assets/{search-BCel4Oy6.js → search-bIYGuFCt.js} +0 -0
  204. /package/.output/public/assets/{smartphone-CMaSy_ir.js → smartphone-Bn5FtEwt.js} +0 -0
  205. /package/.output/public/assets/{switch-BpdiHL_t.js → switch-DtUu1RCw.js} +0 -0
  206. /package/.output/public/assets/{table-Bpy3SvSo.js → table-B22H8-RL.js} +0 -0
  207. /package/.output/public/assets/{tabs-Xmt7tZeG.js → tabs-Fgz3sA51.js} +0 -0
  208. /package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-7gOxArtb.js} +0 -0
  209. /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-BLyD3pAM.js} +0 -0
  210. /package/.output/public/assets/{valueToPercent-BLwGy_xK.js → valueToPercent-DRLgSP0P.js} +0 -0
@@ -131,11 +131,13 @@ export interface NativeBuildDetail {
131
131
  readonly catalogScopeKey: string;
132
132
  /** How many bundles patch from the built-in bundle, or null when its row is gone. */
133
133
  readonly builtInBundle: { readonly childCount: number } | null;
134
+ /** The newest build of the build's scope: this build or a later one. */
135
+ readonly newestInScope: NativeBuildRow | null;
134
136
  /**
135
- * The newest build of the build's scope, which new deploys take their
136
- * patch base from: this build, or the build that supersedes it.
137
+ * The build marked as the store build in the scope. New deploys patch from it,
138
+ * or with no mark from the newest build.
137
139
  */
138
- readonly newestInScope: NativeBuildRow | null;
140
+ readonly storeBuildInScope: NativeBuildRow | null;
139
141
  /**
140
142
  * The releases the update check serves an install of this build now,
141
143
  * newest first: the scope's catalog, at the build's app version, down to
@@ -147,9 +149,10 @@ export interface NativeBuildDetail {
147
149
  }
148
150
 
149
151
  /**
150
- * Everything a native build's page shows, in five reads whatever the
151
- * build: the build, then its built-in bundle, its scope's newest build, its
152
- * scope's catalog, and one page of patches from it. Null for an unknown ID.
152
+ * Everything a native build's page shows, in six reads at most: the build,
153
+ * then its built-in bundle, its scope's newest build and its mark, which a
154
+ * marked build's own row answers, its scope's catalog, and one page of patches
155
+ * from it. Null for an unknown ID.
153
156
  */
154
157
  export async function getNativeBuildDetail(
155
158
  core: Pick<
@@ -165,14 +168,19 @@ export async function getNativeBuildDetail(
165
168
  const build = await core.getNativeBuild(id);
166
169
  if (build === null) return null;
167
170
  const catalogScopeKey = nativeBuildCatalogScopeKey(build);
168
- const [builtIn, newestInScope, catalog, patches] = await Promise.all([
169
- core.getBundle(build.min_bundle_id),
170
- core.findNativeBuild(nativeBuildScope(build)),
171
- core.getReleaseCatalogRow(catalogScopeKey),
172
- listNativeBuildPatches(core, build.min_bundle_id, {
173
- limit: NATIVE_BUILD_PATCH_PAGE_SIZE,
174
- }),
175
- ]);
171
+ const scope = nativeBuildScope(build);
172
+ const [builtIn, newestInScope, storeBuildInScope, catalog, patches] =
173
+ await Promise.all([
174
+ core.getBundle(build.min_bundle_id),
175
+ core.findNativeBuild(scope),
176
+ build.store_build === true
177
+ ? build
178
+ : core.findNativeBuild(scope, { storeBuild: true }),
179
+ core.getReleaseCatalogRow(catalogScopeKey),
180
+ listNativeBuildPatches(core, build.min_bundle_id, {
181
+ limit: NATIVE_BUILD_PATCH_PAGE_SIZE,
182
+ }),
183
+ ]);
176
184
  const servedNow =
177
185
  catalog === null || catalog.is_tombstone
178
186
  ? []
@@ -191,6 +199,7 @@ export async function getNativeBuildDetail(
191
199
  catalogScopeKey,
192
200
  builtInBundle: builtIn === null ? null : { childCount: builtIn.childCount },
193
201
  newestInScope,
202
+ storeBuildInScope,
194
203
  servedNow,
195
204
  patches,
196
205
  };
@@ -207,6 +216,22 @@ const storageFor = (storage: StorageAdapter, storageUri: string) =>
207
216
  const isPublicUrl = (storageUri: string) =>
208
217
  ["http", "https"].includes(protocolOf(storageUri));
209
218
 
219
+ /**
220
+ * The URL a build's artifact downloads from without the console's sign-in: the
221
+ * storage's download URL, which may expire. Null when the storage gives none.
222
+ */
223
+ export async function nativeBuildArtifactUrl(
224
+ build: Pick<NativeBuildRow, "artifact_storage_uri">,
225
+ storage: StorageAdapter,
226
+ ): Promise<string | null> {
227
+ const storageUri = build.artifact_storage_uri;
228
+ const adapter = storageFor(storage, storageUri);
229
+ if (adapter?.getDownloadUrl !== undefined) {
230
+ return (await adapter.getDownloadUrl({ storageUri })).url;
231
+ }
232
+ return adapter === undefined && isPublicUrl(storageUri) ? storageUri : null;
233
+ }
234
+
210
235
  /**
211
236
  * The URL a phone downloads a native build's artifact from, without the
212
237
  * console's sign-in: the storage's download URL, which may expire. Null
@@ -223,20 +248,50 @@ export async function resolveNativeBuildDownloadUrl(
223
248
  },
224
249
  ): Promise<string | null> {
225
250
  const build = await core.getNativeBuild(id);
226
- if (build === null) return null;
227
- const storageUri = build.artifact_storage_uri;
228
- const adapter = storageFor(storage, storageUri);
229
- if (adapter?.getDownloadUrl !== undefined) {
230
- return (await adapter.getDownloadUrl({ storageUri })).url;
231
- }
232
- return adapter === undefined && isPublicUrl(storageUri) ? storageUri : null;
251
+ return build === null ? null : nativeBuildArtifactUrl(build, storage);
233
252
  }
234
253
 
254
+ /**
255
+ * What Android's browser offers to install. An upload stores it, so a redirect
256
+ * to the storage serves it too; a streamed download sets it, for a storage
257
+ * whose `get` keeps no type.
258
+ */
259
+ const APK_CONTENT_TYPE = "application/vnd.android.package-archive";
260
+
261
+ const noStoreRedirect = (url: string) =>
262
+ new Response(null, {
263
+ headers: { "cache-control": "private, no-store", location: url },
264
+ status: 302,
265
+ });
266
+
267
+ /**
268
+ * The URL a browser or script can fetch the object from by itself, or null
269
+ * when the storage gives none, or gives one only it can read. When the
270
+ * storage can't serve the object any other way, its failure stands.
271
+ */
272
+ const publicDownloadUrl = async (
273
+ adapter: StorageAdapter,
274
+ storageUri: string,
275
+ ): Promise<string | null> => {
276
+ if (adapter.getDownloadUrl === undefined) return null;
277
+ try {
278
+ const { url } = await adapter.getDownloadUrl({ storageUri });
279
+ return /^https?:\/\//iu.test(url) ? url : null;
280
+ } catch (error) {
281
+ if (adapter.get === undefined) throw error;
282
+ console.warn(
283
+ `Streaming a native build through the console: ${adapter.name} gave no download URL.`,
284
+ error,
285
+ );
286
+ return null;
287
+ }
288
+ };
289
+
235
290
  /**
236
291
  * Downloads a native build's artifact: a redirect to the storage's download
237
- * URL, or the object streamed through the console when the storage gives
238
- * no URL. The redirect is resolved on each request, so the console's link
239
- * never expires.
292
+ * URL, or, when the storage gives no URL a browser can fetch, the object
293
+ * streamed through the console, whose host then serves every byte. The
294
+ * redirect is resolved on each request, so the console's link never expires.
240
295
  */
241
296
  export async function downloadNativeBuild(
242
297
  id: string,
@@ -253,13 +308,8 @@ export async function downloadNativeBuild(
253
308
 
254
309
  const storageUri = build.artifact_storage_uri;
255
310
  const adapter = storageFor(storage, storageUri);
256
- if (adapter?.getDownloadUrl !== undefined) {
257
- const { url } = await adapter.getDownloadUrl({ storageUri });
258
- return new Response(null, {
259
- headers: { "cache-control": "private, no-store", location: url },
260
- status: 302,
261
- });
262
- }
311
+ const url = adapter && (await publicDownloadUrl(adapter, storageUri));
312
+ if (url) return noStoreRedirect(url);
263
313
  if (adapter?.get !== undefined) {
264
314
  const { response } = await adapter.get({ storageUri });
265
315
  if (!response) {
@@ -268,9 +318,13 @@ export async function downloadNativeBuild(
268
318
  const fileName = decodeURIComponent(storageUri.split("/").at(-1) ?? "");
269
319
  const headers = new Headers(response.headers);
270
320
  headers.set("cache-control", "private, no-store");
321
+ if (build.artifact_kind === "apk") {
322
+ headers.set("content-type", APK_CONTENT_TYPE);
323
+ }
271
324
  headers.set(
272
325
  "content-disposition",
273
- `attachment; filename*=UTF-8''${encodeURIComponent(fileName)}`,
326
+ // `filename` for the clients that don't read `filename*`, such as curl.
327
+ `attachment; filename="${fileName.replace(/[^\w.-]/gu, "_")}"; filename*=UTF-8''${encodeURIComponent(fileName)}`,
274
328
  );
275
329
  return new Response(response.body, {
276
330
  headers,
@@ -279,7 +333,7 @@ export async function downloadNativeBuild(
279
333
  });
280
334
  }
281
335
  if (adapter === undefined && isPublicUrl(storageUri)) {
282
- return Response.redirect(storageUri, 302);
336
+ return noStoreRedirect(storageUri);
283
337
  }
284
338
  return new Response(
285
339
  `No storage adapter for protocol: ${protocolOf(storageUri)}`,
@@ -0,0 +1,17 @@
1
+ const ESCAPES: Record<string, string> = {
2
+ "&": "&amp;",
3
+ "<": "&lt;",
4
+ ">": "&gt;",
5
+ '"': "&quot;",
6
+ "'": "&apos;",
7
+ };
8
+
9
+ /**
10
+ * Text as an XML plist's `<string>` holds it. Control characters have no XML
11
+ * form at all, even escaped, so they go.
12
+ */
13
+ export const escapePlistText = (text: string) =>
14
+ [...text]
15
+ .filter((character) => character >= " " || "\t\n\r".includes(character))
16
+ .map((character) => ESCAPES[character] ?? character)
17
+ .join("");
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The console's address and path as a phone reached it, without a trailing
3
+ * slash, from a request to `routePath` under it. A proxy that ends TLS says so
4
+ * in `x-forwarded-proto`, which only upgrades the scheme: the answer goes back
5
+ * to whoever sent the header, and is never cached.
6
+ */
7
+ export const publicConsoleBase = (request: Request, routePath: string) => {
8
+ const url = new URL(request.url);
9
+ const forwarded = request.headers
10
+ .get("x-forwarded-proto")
11
+ ?.split(",")[0]
12
+ ?.trim();
13
+ const base = url.pathname.endsWith(routePath)
14
+ ? url.pathname.slice(0, -routePath.length)
15
+ : "";
16
+ return `${forwarded === "https" ? "https:" : url.protocol}//${url.host}${base}`;
17
+ };
@@ -17,8 +17,13 @@ import { Route as NativeBuildsRouteImport } from './routes/native-builds'
17
17
  import { Route as RemoteConfigRouteImport } from './routes/remote-config'
18
18
  import { Route as InsightsDistributionRouteImport } from './routes/insights_.distribution'
19
19
  import { Route as NativeBuildsBuildIdRouteImport } from './routes/native-builds_.$buildId'
20
+ import { Route as HotUpdaterNativeBuildsPreviewQrRouteImport } from './routes/[_]hot-updater/native-builds/preview-qr'
20
21
  import { Route as HotUpdaterNativeBuildsQrRouteImport } from './routes/[_]hot-updater/native-builds/qr'
21
22
  import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
23
+ import { Route as HotUpdaterNativeBuildsBuildIdDeviceRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/device'
24
+ import { Route as HotUpdaterNativeBuildsBuildIdDeviceResponseRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/device-response'
25
+ import { Route as HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig'
26
+ import { Route as HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist'
22
27
  import { Route as ApiBundlesBundleIdDownloadRouteImport } from './routes/api/bundles/$bundleId/download'
23
28
  import { Route as ApiNativeBuildsBuildIdDownloadRouteImport } from './routes/api/native-builds/$buildId/download'
24
29
 
@@ -62,6 +67,12 @@ const NativeBuildsBuildIdRoute = NativeBuildsBuildIdRouteImport.update({
62
67
  path: '/native-builds/$buildId',
63
68
  getParentRoute: () => rootRouteImport,
64
69
  } as any)
70
+ const HotUpdaterNativeBuildsPreviewQrRoute =
71
+ HotUpdaterNativeBuildsPreviewQrRouteImport.update({
72
+ id: '/_hot-updater/native-builds/preview-qr',
73
+ path: '/_hot-updater/native-builds/preview-qr',
74
+ getParentRoute: () => rootRouteImport,
75
+ } as any)
65
76
  const HotUpdaterNativeBuildsQrRoute =
66
77
  HotUpdaterNativeBuildsQrRouteImport.update({
67
78
  id: '/_hot-updater/native-builds/qr',
@@ -73,6 +84,30 @@ const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
73
84
  path: '/api/auth/$',
74
85
  getParentRoute: () => rootRouteImport,
75
86
  } as any)
87
+ const HotUpdaterNativeBuildsBuildIdDeviceRoute =
88
+ HotUpdaterNativeBuildsBuildIdDeviceRouteImport.update({
89
+ id: '/_hot-updater/native-builds/$buildId/device',
90
+ path: '/_hot-updater/native-builds/$buildId/device',
91
+ getParentRoute: () => rootRouteImport,
92
+ } as any)
93
+ const HotUpdaterNativeBuildsBuildIdDeviceResponseRoute =
94
+ HotUpdaterNativeBuildsBuildIdDeviceResponseRouteImport.update({
95
+ id: '/_hot-updater/native-builds/$buildId/device-response',
96
+ path: '/_hot-updater/native-builds/$buildId/device-response',
97
+ getParentRoute: () => rootRouteImport,
98
+ } as any)
99
+ const HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute =
100
+ HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRouteImport.update({
101
+ id: '/_hot-updater/native-builds/$buildId/device.mobileconfig',
102
+ path: '/_hot-updater/native-builds/$buildId/device.mobileconfig',
103
+ getParentRoute: () => rootRouteImport,
104
+ } as any)
105
+ const HotUpdaterNativeBuildsBuildIdManifestDotplistRoute =
106
+ HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport.update({
107
+ id: '/_hot-updater/native-builds/$buildId/manifest.plist',
108
+ path: '/_hot-updater/native-builds/$buildId/manifest.plist',
109
+ getParentRoute: () => rootRouteImport,
110
+ } as any)
76
111
  const ApiBundlesBundleIdDownloadRoute =
77
112
  ApiBundlesBundleIdDownloadRouteImport.update({
78
113
  id: '/api/bundles/$bundleId/download',
@@ -95,8 +130,13 @@ export interface FileRoutesByFullPath {
95
130
  '/remote-config': typeof RemoteConfigRoute
96
131
  '/insights/distribution': typeof InsightsDistributionRoute
97
132
  '/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
133
+ '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
98
134
  '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
99
135
  '/api/auth/$': typeof ApiAuthSplatRoute
136
+ '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
137
+ '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
138
+ '/_hot-updater/native-builds/$buildId/device.mobileconfig': typeof HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute
139
+ '/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
100
140
  '/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
101
141
  '/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
102
142
  }
@@ -109,8 +149,13 @@ export interface FileRoutesByTo {
109
149
  '/remote-config': typeof RemoteConfigRoute
110
150
  '/insights/distribution': typeof InsightsDistributionRoute
111
151
  '/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
152
+ '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
112
153
  '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
113
154
  '/api/auth/$': typeof ApiAuthSplatRoute
155
+ '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
156
+ '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
157
+ '/_hot-updater/native-builds/$buildId/device.mobileconfig': typeof HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute
158
+ '/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
114
159
  '/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
115
160
  '/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
116
161
  }
@@ -124,8 +169,13 @@ export interface FileRoutesById {
124
169
  '/remote-config': typeof RemoteConfigRoute
125
170
  '/insights_/distribution': typeof InsightsDistributionRoute
126
171
  '/native-builds_/$buildId': typeof NativeBuildsBuildIdRoute
172
+ '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
127
173
  '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
128
174
  '/api/auth/$': typeof ApiAuthSplatRoute
175
+ '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
176
+ '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
177
+ '/_hot-updater/native-builds/$buildId/device.mobileconfig': typeof HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute
178
+ '/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
129
179
  '/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
130
180
  '/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
131
181
  }
@@ -140,8 +190,13 @@ export interface FileRouteTypes {
140
190
  | '/remote-config'
141
191
  | '/insights/distribution'
142
192
  | '/native-builds/$buildId'
193
+ | '/_hot-updater/native-builds/preview-qr'
143
194
  | '/_hot-updater/native-builds/qr'
144
195
  | '/api/auth/$'
196
+ | '/_hot-updater/native-builds/$buildId/device'
197
+ | '/_hot-updater/native-builds/$buildId/device-response'
198
+ | '/_hot-updater/native-builds/$buildId/device.mobileconfig'
199
+ | '/_hot-updater/native-builds/$buildId/manifest.plist'
145
200
  | '/api/bundles/$bundleId/download'
146
201
  | '/api/native-builds/$buildId/download'
147
202
  fileRoutesByTo: FileRoutesByTo
@@ -154,8 +209,13 @@ export interface FileRouteTypes {
154
209
  | '/remote-config'
155
210
  | '/insights/distribution'
156
211
  | '/native-builds/$buildId'
212
+ | '/_hot-updater/native-builds/preview-qr'
157
213
  | '/_hot-updater/native-builds/qr'
158
214
  | '/api/auth/$'
215
+ | '/_hot-updater/native-builds/$buildId/device'
216
+ | '/_hot-updater/native-builds/$buildId/device-response'
217
+ | '/_hot-updater/native-builds/$buildId/device.mobileconfig'
218
+ | '/_hot-updater/native-builds/$buildId/manifest.plist'
159
219
  | '/api/bundles/$bundleId/download'
160
220
  | '/api/native-builds/$buildId/download'
161
221
  id:
@@ -168,8 +228,13 @@ export interface FileRouteTypes {
168
228
  | '/remote-config'
169
229
  | '/insights_/distribution'
170
230
  | '/native-builds_/$buildId'
231
+ | '/_hot-updater/native-builds/preview-qr'
171
232
  | '/_hot-updater/native-builds/qr'
172
233
  | '/api/auth/$'
234
+ | '/_hot-updater/native-builds/$buildId/device'
235
+ | '/_hot-updater/native-builds/$buildId/device-response'
236
+ | '/_hot-updater/native-builds/$buildId/device.mobileconfig'
237
+ | '/_hot-updater/native-builds/$buildId/manifest.plist'
173
238
  | '/api/bundles/$bundleId/download'
174
239
  | '/api/native-builds/$buildId/download'
175
240
  fileRoutesById: FileRoutesById
@@ -183,8 +248,13 @@ export interface RootRouteChildren {
183
248
  RemoteConfigRoute: typeof RemoteConfigRoute
184
249
  InsightsDistributionRoute: typeof InsightsDistributionRoute
185
250
  NativeBuildsBuildIdRoute: typeof NativeBuildsBuildIdRoute
251
+ HotUpdaterNativeBuildsPreviewQrRoute: typeof HotUpdaterNativeBuildsPreviewQrRoute
186
252
  HotUpdaterNativeBuildsQrRoute: typeof HotUpdaterNativeBuildsQrRoute
187
253
  ApiAuthSplatRoute: typeof ApiAuthSplatRoute
254
+ HotUpdaterNativeBuildsBuildIdDeviceRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
255
+ HotUpdaterNativeBuildsBuildIdDeviceResponseRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
256
+ HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute
257
+ HotUpdaterNativeBuildsBuildIdManifestDotplistRoute: typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
188
258
  ApiBundlesBundleIdDownloadRoute: typeof ApiBundlesBundleIdDownloadRoute
189
259
  ApiNativeBuildsBuildIdDownloadRoute: typeof ApiNativeBuildsBuildIdDownloadRoute
190
260
  }
@@ -247,6 +317,13 @@ declare module '@tanstack/react-router' {
247
317
  preLoaderRoute: typeof NativeBuildsBuildIdRouteImport
248
318
  parentRoute: typeof rootRouteImport
249
319
  }
320
+ '/_hot-updater/native-builds/preview-qr': {
321
+ id: '/_hot-updater/native-builds/preview-qr'
322
+ path: '/_hot-updater/native-builds/preview-qr'
323
+ fullPath: '/_hot-updater/native-builds/preview-qr'
324
+ preLoaderRoute: typeof HotUpdaterNativeBuildsPreviewQrRouteImport
325
+ parentRoute: typeof rootRouteImport
326
+ }
250
327
  '/_hot-updater/native-builds/qr': {
251
328
  id: '/_hot-updater/native-builds/qr'
252
329
  path: '/_hot-updater/native-builds/qr'
@@ -261,6 +338,34 @@ declare module '@tanstack/react-router' {
261
338
  preLoaderRoute: typeof ApiAuthSplatRouteImport
262
339
  parentRoute: typeof rootRouteImport
263
340
  }
341
+ '/_hot-updater/native-builds/$buildId/device': {
342
+ id: '/_hot-updater/native-builds/$buildId/device'
343
+ path: '/_hot-updater/native-builds/$buildId/device'
344
+ fullPath: '/_hot-updater/native-builds/$buildId/device'
345
+ preLoaderRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceRouteImport
346
+ parentRoute: typeof rootRouteImport
347
+ }
348
+ '/_hot-updater/native-builds/$buildId/device-response': {
349
+ id: '/_hot-updater/native-builds/$buildId/device-response'
350
+ path: '/_hot-updater/native-builds/$buildId/device-response'
351
+ fullPath: '/_hot-updater/native-builds/$buildId/device-response'
352
+ preLoaderRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRouteImport
353
+ parentRoute: typeof rootRouteImport
354
+ }
355
+ '/_hot-updater/native-builds/$buildId/device.mobileconfig': {
356
+ id: '/_hot-updater/native-builds/$buildId/device.mobileconfig'
357
+ path: '/_hot-updater/native-builds/$buildId/device.mobileconfig'
358
+ fullPath: '/_hot-updater/native-builds/$buildId/device.mobileconfig'
359
+ preLoaderRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRouteImport
360
+ parentRoute: typeof rootRouteImport
361
+ }
362
+ '/_hot-updater/native-builds/$buildId/manifest.plist': {
363
+ id: '/_hot-updater/native-builds/$buildId/manifest.plist'
364
+ path: '/_hot-updater/native-builds/$buildId/manifest.plist'
365
+ fullPath: '/_hot-updater/native-builds/$buildId/manifest.plist'
366
+ preLoaderRoute: typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport
367
+ parentRoute: typeof rootRouteImport
368
+ }
264
369
  '/api/bundles/$bundleId/download': {
265
370
  id: '/api/bundles/$bundleId/download'
266
371
  path: '/api/bundles/$bundleId/download'
@@ -287,8 +392,17 @@ const rootRouteChildren: RootRouteChildren = {
287
392
  RemoteConfigRoute: RemoteConfigRoute,
288
393
  InsightsDistributionRoute: InsightsDistributionRoute,
289
394
  NativeBuildsBuildIdRoute: NativeBuildsBuildIdRoute,
395
+ HotUpdaterNativeBuildsPreviewQrRoute: HotUpdaterNativeBuildsPreviewQrRoute,
290
396
  HotUpdaterNativeBuildsQrRoute: HotUpdaterNativeBuildsQrRoute,
291
397
  ApiAuthSplatRoute: ApiAuthSplatRoute,
398
+ HotUpdaterNativeBuildsBuildIdDeviceRoute:
399
+ HotUpdaterNativeBuildsBuildIdDeviceRoute,
400
+ HotUpdaterNativeBuildsBuildIdDeviceResponseRoute:
401
+ HotUpdaterNativeBuildsBuildIdDeviceResponseRoute,
402
+ HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute:
403
+ HotUpdaterNativeBuildsBuildIdDeviceDotmobileconfigRoute,
404
+ HotUpdaterNativeBuildsBuildIdManifestDotplistRoute:
405
+ HotUpdaterNativeBuildsBuildIdManifestDotplistRoute,
292
406
  ApiBundlesBundleIdDownloadRoute: ApiBundlesBundleIdDownloadRoute,
293
407
  ApiNativeBuildsBuildIdDownloadRoute: ApiNativeBuildsBuildIdDownloadRoute,
294
408
  }
@@ -0,0 +1,17 @@
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
+ });
@@ -0,0 +1,17 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+
3
+ // The page that shows an iPhone its UDID, with no session and no reads: see
4
+ // nativeBuildDevice.ts. A server route, so the Console's sign-in check never runs.
5
+ export const Route = createFileRoute(
6
+ "/_hot-updater/native-builds/$buildId/device",
7
+ )({
8
+ server: {
9
+ handlers: {
10
+ ANY: async ({ params, request }) => {
11
+ const { serveDevicePage } =
12
+ await import("@/lib/server/nativeBuildDevice");
13
+ return serveDevicePage(request, params.buildId);
14
+ },
15
+ },
16
+ },
17
+ });
@@ -0,0 +1,17 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+
3
+ // The profile that reads an iPhone's UDID takes no session and reads nothing:
4
+ // see nativeBuildDevice.ts.
5
+ export const Route = createFileRoute(
6
+ "/_hot-updater/native-builds/$buildId/device.mobileconfig",
7
+ )({
8
+ server: {
9
+ handlers: {
10
+ ANY: async ({ params, request }) => {
11
+ const { serveDeviceProfile } =
12
+ await import("@/lib/server/nativeBuildDevice");
13
+ return serveDeviceProfile(request, params.buildId);
14
+ },
15
+ },
16
+ },
17
+ });
@@ -0,0 +1,22 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+
3
+ // What iOS installs a build from. Its token is all it answers to, checked
4
+ // before any read: see nativeBuildInstall.ts.
5
+ export const Route = createFileRoute(
6
+ "/_hot-updater/native-builds/$buildId/manifest.plist",
7
+ )({
8
+ server: {
9
+ handlers: {
10
+ GET: async ({ params, request }) => {
11
+ const [{ serveNativeBuildManifest }, { loadConsole }] =
12
+ await Promise.all([
13
+ import("@/lib/server/nativeBuildInstall"),
14
+ import("@/lib/server/config.server"),
15
+ ]);
16
+ return serveNativeBuildManifest(request, params.buildId, () =>
17
+ loadConsole(request),
18
+ );
19
+ },
20
+ },
21
+ },
22
+ });
@@ -0,0 +1,14 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+
3
+ // A sandbox preview link's QR code takes no session and reads nothing: see
4
+ // nativeBuildQr.ts.
5
+ const handle = async ({ request }: { readonly request: Request }) => {
6
+ const { serveSandboxPreviewQr } = await import("@/lib/server/nativeBuildQr");
7
+ return serveSandboxPreviewQr(request);
8
+ };
9
+
10
+ export const Route = createFileRoute("/_hot-updater/native-builds/preview-qr")({
11
+ server: {
12
+ handlers: { ANY: handle },
13
+ },
14
+ });
@@ -1,5 +1,7 @@
1
1
  import { createFileRoute } from "@tanstack/react-router";
2
2
 
3
+ import { NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM } from "@/lib/native-builds";
4
+
3
5
  /**
4
6
  * Whether a request is a browser opening the URL as a page, as a phone does
5
7
  * after scanning a QR code, rather than a script fetching it.
@@ -12,9 +14,28 @@ export const Route = createFileRoute("/api/native-builds/$buildId/download")({
12
14
  server: {
13
15
  handlers: {
14
16
  GET: async ({ params, request }) => {
15
- const { prepareConfig } = await import("@/lib/server/config.server");
17
+ const { loadConsole, prepareConfig } =
18
+ await import("@/lib/server/config.server");
16
19
  const { downloadNativeBuild } =
17
20
  await import("@/lib/server/nativeBuilds");
21
+ // A request with a signed link answers to its token alone, signed
22
+ // in or not, and reaches this route and the install manifest's, for
23
+ // this one build.
24
+ const token = new URL(request.url).searchParams.get(
25
+ NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM,
26
+ );
27
+ if (token !== null) {
28
+ const { refuseNativeBuildDownloadToken } =
29
+ await import("@/lib/server/nativeBuildDownloadLink");
30
+ return (
31
+ (await refuseNativeBuildDownloadToken(
32
+ request,
33
+ params.buildId,
34
+ token,
35
+ )) ??
36
+ downloadNativeBuild(params.buildId, await loadConsole(request))
37
+ );
38
+ }
18
39
  let deps: Awaited<ReturnType<typeof prepareConfig>>;
19
40
  try {
20
41
  deps = await prepareConfig(request);
@@ -1 +0,0 @@
1
- import{Ln as e,Wr as t}from"./sidebar-Di9SN47G.js";import{f as n,t as r}from"./badge-DWFcDWho.js";var i=t();function a({percentage:t,className:a}){let o=t<100,s=t.toFixed(1);return(0,i.jsxs)(r,{className:e(`gap-1`,a),variant:o?`secondary`:`default`,children:[o?(0,i.jsx)(n,{className:`h-3 w-3`}):null,s,`%`]})}export{a as t};
@@ -1 +0,0 @@
1
- import{Gr as e,Vr as t,ar as n,nr as r,zr as i}from"./sidebar-Di9SN47G.js";import{t as a}from"./useMutation-DbYw7boA.js";var o=t({method:`GET`}).middleware([r]).handler(e(`206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c`)),s=t({method:`GET`}).middleware([r]).handler(e(`a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032`)),c=t({method:`POST`}).middleware([r]).handler(e(`7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7`)),l=t({method:`POST`}).middleware([r]).handler(e(`b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f`)),u=t({method:`POST`}).middleware([r]).handler(e(`d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b`)),d=t({method:`POST`}).middleware([r]).handler(e(`956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078`)),f=t({method:`GET`}).middleware([r]).handler(e(`e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396`)),p=t().middleware([r]).handler(e(`51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68`)),m=t().middleware([r]).handler(e(`79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5`)),h=t({method:`POST`}).middleware([r]).handler(e(`2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321`)),g=t({method:`POST`}).middleware([r]).handler(e(`52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920`)),_=t({method:`GET`}).middleware([r]).handler(e(`1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013`)),v=t({method:`GET`}).middleware([r]).handler(e(`4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f`)),y=t({method:`GET`}).middleware([r]).handler(e(`4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549`)),b=t({method:`GET`}).middleware([r]).handler(e(`17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0`)),x=t({method:`GET`}).middleware([r]).handler(e(`c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04`)),S=t({method:`GET`}).middleware([r]).handler(e(`2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9`)),C=t({method:`GET`}).middleware([r]).handler(e(`868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c`)),w=t({method:`GET`}).middleware([r]).handler(e(`936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9`)),T=[`releases`],E={config:[`config`],channels:[`channels`],releases:{all:T,list:e=>[...T,e??{}]},release:e=>[`release`,e],releaseCatalog:e=>[`release-catalog`,e],bundleChildren:{all:[`bundle-children`],list:e=>[`bundle-children`,e],counts:e=>[`bundle-children`,`counts`,...e]},bundle:e=>[`bundle`,e],nativeBuilds:{all:[`native-builds`],list:e=>[`native-builds`,e]},nativeBuild:e=>[`native-build`,e],nativeBuildPatches:(e,t)=>[`native-build-patches`,e,t],nativeBuildDownloadUrl:e=>[`native-build-download-url`,e],releaseNativeBuild:e=>[`release-native-build`,e]},D=3e4;function O(){return n({queryKey:E.config,queryFn:()=>p(),staleTime:1/0})}function k(){return n({queryKey:E.channels,queryFn:()=>m(),staleTime:1/0})}function A(e){return n({queryKey:E.releases.list(e),queryFn:()=>o({data:e}),placeholderData:e=>e})}function j(e){return n({enabled:e.length>0,queryFn:()=>s({data:{releaseId:e}}),queryKey:E.release(e)})}function M(e){return n({enabled:e.length>0,queryFn:()=>f({data:{scopeKey:e}}),queryKey:E.releaseCatalog(e)})}function N(e){return n({queryKey:E.bundle(e),queryFn:()=>_({data:{bundleId:e}}),staleTime:1/0,enabled:!!e})}function P(e){return n({queryKey:E.bundleChildren.list(e),queryFn:()=>v({data:{baseBundleId:e}}),staleTime:1/0,enabled:!!e})}function F(e){let t=[...e].sort((e,t)=>e.localeCompare(t));return n({queryKey:E.bundleChildren.counts(t),queryFn:()=>y({data:{bundleIds:t}}),staleTime:1/0,enabled:t.length>0})}function I(e){return n({queryKey:E.nativeBuilds.list(e),queryFn:()=>b({data:e}),placeholderData:e=>e,staleTime:6e4})}function L(e){return n({queryKey:E.nativeBuild(e),queryFn:()=>x({data:{id:e}}),enabled:e.length>0})}function R(e,t,r){return n({queryKey:E.nativeBuildPatches(e,t),queryFn:()=>S({data:{minBundleId:e,...t}}),enabled:r&&e.length>0,placeholderData:e=>e})}function z(e){return n({queryKey:E.releaseNativeBuild(e??{platform:`ios`,channel:``,fingerprintHash:null,targetAppVersion:null}),queryFn:()=>C({data:e}),enabled:e!==null,staleTime:6e4})}function B(e,t){return n({queryKey:E.nativeBuildDownloadUrl(e),queryFn:()=>w({data:{id:e}}),enabled:t,staleTime:D,refetchInterval:e=>e.state.data?.url===null?!1:D})}function V(){let e=i();return a({mutationFn:e=>h({data:e}).then(e=>e.data),onSuccess:async()=>{await e.invalidateQueries({queryKey:E.channels})}})}function H(){let e=i();return a({mutationFn:e=>g({data:e}).then(e=>e.data),onSettled:async()=>{await e.invalidateQueries({queryKey:E.channels})}})}function U(){let e=i();return a({mutationFn:e=>c({data:e}),onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:E.releases.all}),e.invalidateQueries({queryKey:E.release(n.releaseId)}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:E.channels})])}})}function W(){return a({mutationFn:e=>l({data:e})})}function G(){let e=i();return a({mutationFn:e=>u({data:e}),onSuccess:async(t,n)=>{e.removeQueries({queryKey:E.release(n.releaseId)}),await Promise.all([e.invalidateQueries({queryKey:E.releases.all}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:E.channels}),e.invalidateQueries({queryKey:[`bundle`]}),e.invalidateQueries({queryKey:E.bundleChildren.all})])}})}function K(){let e=i();return a({mutationFn:e=>d({data:e}),onSuccess:async()=>{await Promise.all([e.invalidateQueries({queryKey:E.releases.all}),e.invalidateQueries({queryKey:[`release`]}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:E.channels})])}})}export{j as _,O as a,G as c,R as d,I as f,z as g,M as h,k as i,L as l,K as m,P as n,V as o,W as p,N as r,H as s,F as t,B as u,A as v,U as y};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-CUtcXuY2.js";var t=e;export{t as notFoundComponent};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-CUtcXuY2.js";var t=e;export{t as notFoundComponent};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights-BSVGfxSL.js","assets/ConsoleFeatureUnavailable-CUtcXuY2.js","assets/sidebar-Di9SN47G.js","assets/console-features-api-DEXSwFtc.js","assets/arrow-up-right-DK8Zdg40.js","assets/NotFoundPage-DZ3DxyRA.js","assets/link-DTEyW70e.js","assets/empty-B3Uwdd6k.js","assets/insights-B-0odqpt.js","assets/alert-dialog-BqYScr9y.js","assets/select-CBIU0_M1.js","assets/useCompositeListItem-JmyDfo3-.js","assets/check-CXVR3s3X.js","assets/tabs-Xmt7tZeG.js","assets/insights-usage-rpc-CKQH0pUS.js","assets/valueToPercent-BLwGy_xK.js","assets/EventDetails-Dl2RvPAk.js","assets/insights-api-BVCXJsoV.js","assets/useInfiniteQuery-DX4WpBRG.js","assets/copy-DsuLj3oj.js","assets/download-Cf24LBde.js","assets/input-group-D3OUBk4n.js","assets/smartphone-CMaSy_ir.js","assets/badge-DWFcDWho.js","assets/dist-CPlO6ko9.js","assets/HashValueDisplay-6lNRxDJX.js","assets/InsightsPageHeader-DHhqY3DT.js","assets/list--NIee1FZ.js","assets/arrow-right-CNII8TYn.js","assets/chevron-right-BoUXo82O.js","assets/circle-off-C7Muo0ss.js","assets/refresh-cw-B9HHjLej.js","assets/rotate-cw-Cv2aVbYr.js","assets/undo-2-CUX96_BG.js","assets/insights-search-DghCbEnk.js","assets/uuidv7-zXMtwR9Q.js","assets/PlatformIcon-BBWQlWm9.js","assets/table-Bpy3SvSo.js","assets/api-P2g8dCNg.js","assets/useMutation-DbYw7boA.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./preload-helper-B44EvKhG.js";import{r}from"./console-features-api-DEXSwFtc.js";import{a as i}from"./insights-search-DghCbEnk.js";var a=t(`/insights`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:e(()=>n(()=>import(`./insights-BSVGfxSL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:e(()=>n(()=>import(`./insights-B-0odqpt.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,3,27,7,28,4,29,30,31,32,33,34,35,36,37,38,39])),`component`),validateSearch:i});export{a as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-DblZM0mO.js","assets/ConsoleFeatureUnavailable-CUtcXuY2.js","assets/sidebar-Di9SN47G.js","assets/console-features-api-DEXSwFtc.js","assets/arrow-up-right-DK8Zdg40.js","assets/NotFoundPage-DZ3DxyRA.js","assets/link-DTEyW70e.js","assets/empty-B3Uwdd6k.js","assets/insights_.distribution-dvk6vYDM.js","assets/select-CBIU0_M1.js","assets/useCompositeListItem-JmyDfo3-.js","assets/check-CXVR3s3X.js","assets/insights-usage-rpc-CKQH0pUS.js","assets/valueToPercent-BLwGy_xK.js","assets/arrow-left-g9cKqXuC.js","assets/insights-api-BVCXJsoV.js","assets/useInfiniteQuery-DX4WpBRG.js","assets/rotate-cw-Cv2aVbYr.js","assets/badge-DWFcDWho.js","assets/insights-search-DghCbEnk.js","assets/uuidv7-zXMtwR9Q.js","assets/PlatformIcon-BBWQlWm9.js","assets/InsightsPageHeader-DHhqY3DT.js","assets/tabs-Xmt7tZeG.js","assets/list--NIee1FZ.js","assets/field-D-2-mnNh.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./preload-helper-B44EvKhG.js";import{r}from"./console-features-api-DEXSwFtc.js";import{i}from"./insights-search-DghCbEnk.js";var a=t(`/insights_/distribution`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:e(()=>n(()=>import(`./insights_.distribution-DblZM0mO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:e(()=>n(()=>import(`./insights_.distribution-dvk6vYDM.js`),__vite__mapDeps([8,2,9,10,11,12,13,6,14,4,15,16,17,18,19,20,21,22,23,3,24,7,25])),`component`),validateSearch:i});export{a as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-CUtcXuY2.js";var t=e;export{t as notFoundComponent};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-CUtcXuY2.js";var t=e;export{t as notFoundComponent};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds-CxomzFqe.js","assets/sidebar-Di9SN47G.js","assets/preload-helper-B44EvKhG.js","assets/link-DTEyW70e.js","assets/select-CBIU0_M1.js","assets/useCompositeListItem-JmyDfo3-.js","assets/check-CXVR3s3X.js","assets/arrow-up-right-DK8Zdg40.js","assets/native-builds-BOC71grI.js","assets/relativeTime-YQt84dYr.js","assets/uuidv7-zXMtwR9Q.js","assets/chevron-right-BoUXo82O.js","assets/download-Cf24LBde.js","assets/-native-builds-search-C-TGpFAm.js","assets/refresh-cw-B9HHjLej.js","assets/StoreSubmission-ViTkW4eJ.js","assets/copy-DsuLj3oj.js","assets/badge-DWFcDWho.js","assets/dist-CPlO6ko9.js","assets/api-P2g8dCNg.js","assets/useMutation-DbYw7boA.js","assets/PlatformIcon-BBWQlWm9.js","assets/dialog-CNUPxNxH.js","assets/table-Bpy3SvSo.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./preload-helper-B44EvKhG.js";import{n as r}from"./-native-builds-search-C-TGpFAm.js";var i=t(`/native-builds`)({component:e(()=>n(()=>import(`./native-builds-CxomzFqe.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23])),`component`),validateSearch:r});export{i as t};
@@ -1 +0,0 @@
1
- import{Wr as e,ii as t,ir as n}from"./sidebar-Di9SN47G.js";import{f as r,p as i,t as a}from"./uuidv7-zXMtwR9Q.js";import{n as o,t as s}from"./relativeTime-YQt84dYr.js";var c=n(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),l=t(o(),1),u=t(s(),1),d=e();l.default.extend(u.default);function f({uuid:e,format:t=`relative`}){let n=(0,l.default)(a(e));return t===`relative`?(0,d.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,d.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,d.jsxs)(`div`,{className:`flex flex-col`,children:[(0,d.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,d.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var p=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},m=(e,t)=>{if(!e?.trim())return null;let n=p(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`},h=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,g={apk:{label:`APK`,installs:`Android device or emulator`},aab:{label:`AAB`,installs:`Google Play or bundletool`},app:{label:`Simulator app`,installs:`iOS Simulator`},ipa:{label:`IPA`,installs:`registered iOS devices`}},_=e=>e===`ios`?`iOS`:`Android`,v=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,y=e=>i(e.channel_id.slice(8)),b=e=>{if(e.fingerprintHash!==null)return{platform:e.platform,channel:e.channel,fingerprintHash:e.fingerprintHash,appVersion:null};let t=e.targetAppVersion;return t===null||r(t)!==t?null:{platform:e.platform,channel:e.channel,fingerprintHash:null,appVersion:t}},x=e=>{let t=(e.artifact_storage_uri.split(/[?#]/,1)[0]??``).split(`/`).at(-1)??``;try{return decodeURIComponent(t)}catch{return t}},S=e=>e.app_version===null?{label:`Fingerprint`,value:e.fingerprint_hash??``}:{label:`App version`,value:e.app_version},C=[`B`,`KB`,`MB`,`GB`],w=e=>{let t=e,n=0;for(;t>=1024&&n<C.length-1;)t/=1024,n+=1;return`${n===0?t:t.toFixed(1)} ${C[n]}`},T=e=>{let t=x(e),n=t.replace(/\.zip$/,``);return`unzip -o ${h(t)} && xcrun simctl install booted ${h(n)}`},E=e=>`adb install -r ${h(x(e))}`;export{v as a,_ as c,m as d,f,y as i,b as l,w as n,x as o,c as p,g as r,S as s,E as t,T as u};