@hot-updater/console 1.2.0-rc.34 → 1.2.0-rc.35

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 (128) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{IosInstall-DsKczesK.js → IosInstall-CyBFeLGv.js} +1 -1
  3. package/.output/public/assets/{RelativeTime-CP7nosYx.js → RelativeTime-BvgGWfXM.js} +1 -1
  4. package/.output/public/assets/{RowReason-D7TZ2xwW.js → RowReason-7dIWPxhy.js} +1 -1
  5. package/.output/public/assets/{TargetDisplay-DzSkf5yP.js → TargetDisplay-CiU6ZsDl.js} +1 -1
  6. package/.output/public/assets/{index-CccnEzaa.js → index-CQDGK7Fg.js} +1 -1
  7. package/.output/public/assets/{native-builds-CXDwW54k.js → native-builds-CkaoQZVh.js} +2 -2
  8. package/.output/public/assets/{native-builds-7sC78eTq.js → native-builds-CtqBGw8a.js} +1 -1
  9. package/.output/public/assets/native-builds-hOC_V15R.js +1 -0
  10. package/.output/public/assets/{native-builds_._buildId-C7-yUwvH.js → native-builds_._buildId-CAnF7xPa.js} +2 -2
  11. package/.output/public/assets/native-builds_._buildId-DSbzVVI5.js +1 -0
  12. package/.output/public/assets/{native-builds_.devices-CQ_tB3SO.js → native-builds_.devices-CCmLAkXG.js} +1 -1
  13. package/.output/public/assets/{native-builds_.devices-C_YZoRxB.js → native-builds_.devices-D-8DVNRB.js} +2 -2
  14. package/.output/public/assets/{routes-Dj_ukxU_.js → routes-BMbT1Qdm.js} +2 -2
  15. package/.output/public/assets/{routes-DvCD6Kib.js → routes-D8reVBSx.js} +1 -1
  16. package/.output/server/{__23tanstack-start-server-fn-resolver-CUEijItf.mjs → __23tanstack-start-server-fn-resolver-BkmGm73S.mjs} +58 -58
  17. package/.output/server/_libs/_.mjs +1 -1
  18. package/.output/server/_libs/lucide-react.mjs +13 -1
  19. package/.output/server/_ssr/{BundleIdDisplay-C2Yhau3H.mjs → BundleIdDisplay-B90reloJ.mjs} +2 -2
  20. package/.output/server/_ssr/{ChannelBadge-BTUSgvbr.mjs → ChannelBadge-Dbmjpe-k.mjs} +3 -3
  21. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BDSJSs7U.mjs → ConsoleFeatureUnavailable-BX6uKVMH.mjs} +6 -6
  22. package/.output/server/_ssr/{EventDetails-wqpPsSDt.mjs → EventDetails-DiO0Njqj.mjs} +8 -8
  23. package/.output/server/_ssr/{HashValueDisplay-yosN9R32.mjs → HashValueDisplay-CicukMPP.mjs} +2 -2
  24. package/.output/server/_ssr/{InsightsPageHeader-DUvHESff.mjs → InsightsPageHeader-Bu88jQMD.mjs} +7 -7
  25. package/.output/server/_ssr/{IosInstall-DAZxDeBB.mjs → IosInstall-qOwrZE2v.mjs} +8 -8
  26. package/.output/server/_ssr/{NativeBuildsNav-JvQo5YkG.mjs → NativeBuildsNav-D20VrrNx.mjs} +3 -3
  27. package/.output/server/_ssr/{NotFoundPage-Z48ip8aB.mjs → NotFoundPage-_rXA1M7U.mjs} +2 -2
  28. package/.output/server/_ssr/{QrCode-NrGOfAPX.mjs → QrCode-DmEsrduv.mjs} +2 -2
  29. package/.output/server/_ssr/{RelativeTime-BiGH0j0S.mjs → RelativeTime-nw54zYAf.mjs} +4 -4
  30. package/.output/server/_ssr/{RolloutPercentageBadge-O0jbSRuI.mjs → RolloutPercentageBadge-DlRrxKdg.mjs} +3 -3
  31. package/.output/server/_ssr/{RowReason-DneEz--P.mjs → RowReason-D46cFeQO.mjs} +5 -5
  32. package/.output/server/_ssr/{SandboxBadge-ujAuQ6FN.mjs → SandboxBadge-DXM9RKlS.mjs} +2 -2
  33. package/.output/server/_ssr/{TargetDisplay-DFV5VpPn.mjs → TargetDisplay-CIU-9UqJ.mjs} +3 -3
  34. package/.output/server/_ssr/{alert-dialog-B2IG3q93.mjs → alert-dialog-CAb_7ZLL.mjs} +1 -1
  35. package/.output/server/_ssr/{api-keys-DpSj11mK.mjs → api-keys-CebW6Olm.mjs} +2 -2
  36. package/.output/server/_ssr/{api-keys-ZufcGzhb.mjs → api-keys-DY3XY8gz.mjs} +10 -10
  37. package/.output/server/_ssr/{api-keys-rpc-N3V7gkvv.mjs → api-keys-rpc-D0rQ5vvV.mjs} +3 -3
  38. package/.output/server/_ssr/{api-rpc-DXvqIbGs.mjs → api-rpc-OTsF60lZ.mjs} +16 -16
  39. package/.output/server/_ssr/{api-CHpFJ_c4.mjs → api-v-mDt0z9.mjs} +7 -6
  40. package/.output/server/_ssr/{auth-rpc-Cx72ajwL.mjs → auth-rpc-Cga9IGo3.mjs} +4 -4
  41. package/.output/server/_ssr/{auth.server-DT4SuI6u.mjs → auth.server-BVqW4FSJ.mjs} +25 -8
  42. package/.output/server/_ssr/{badge-DNrlMwwO.mjs → badge-Cy4z0pH1.mjs} +1 -1
  43. package/.output/server/_ssr/{bundleActivity-a-pEDiqu.mjs → bundleActivity-CjE9yslP.mjs} +1 -1
  44. package/.output/server/_ssr/{card-BSFwWT9T.mjs → card-UaEWfeRI.mjs} +1 -1
  45. package/.output/server/_ssr/{config.server-BEg-Ln3t.mjs → config.server-OJdvjs7r.mjs} +3 -3
  46. package/.output/server/_ssr/{console-access-CPYdc4mK.mjs → console-access-BM4TLI4g.mjs} +2 -2
  47. package/.output/server/_ssr/{console-features-api-D_KFX0JV.mjs → console-features-api-BmiP0aaD.mjs} +3 -3
  48. package/.output/server/_ssr/{console-features-rpc-CSogovr5.mjs → console-features-rpc-DPcZcHSW.mjs} +3 -3
  49. package/.output/server/_ssr/{deviceProfileToken-xzDLfE0T.mjs → deviceProfileToken-Eeltr-o0.mjs} +1 -1
  50. package/.output/server/_ssr/{dialog-BE-0BoPu.mjs → dialog-DWlZVg5y.mjs} +1 -1
  51. package/.output/server/_ssr/{downloadBundle-C1KOnpiF.mjs → downloadBundle-DLkb7A7E.mjs} +1 -1
  52. package/.output/server/_ssr/{empty-DVeNY_6z.mjs → empty-BPB71w6i.mjs} +2 -2
  53. package/.output/server/_ssr/{failureReports-BVufgM3l.mjs → failureReports-Bd7CaadE.mjs} +3 -3
  54. package/.output/server/_ssr/{field-C_NBjv_7.mjs → field-Bx8FKYuu.mjs} +2 -2
  55. package/.output/server/_ssr/{foldedPage-CUjJqtlF.mjs → foldedPage-DrxWt5XS.mjs} +1 -1
  56. package/.output/server/_ssr/{getBundleChildren-CnOf4Frp.mjs → getBundleChildren-DA9zbUBD.mjs} +1 -1
  57. package/.output/server/_ssr/{input-group-CGiryg7I.mjs → input-group-BzfbjZEj.mjs} +1 -1
  58. package/.output/server/_ssr/{insights-DNNsxJlD.mjs → insights-CBOTZToQ.mjs} +5 -5
  59. package/.output/server/_ssr/{insights-ECnoz9jp.mjs → insights-CFbpYpMy.mjs} +2 -2
  60. package/.output/server/_ssr/{insights-hDsGL-yq.mjs → insights-DaGJDccC.mjs} +25 -25
  61. package/.output/server/_ssr/{insights-api-DvbUK1vp.mjs → insights-api-b2wrxjFK.mjs} +5 -5
  62. package/.output/server/_ssr/{insights-errors-DwUaDs0Z.mjs → insights-errors-BrToSfI9.mjs} +2 -2
  63. package/.output/server/_ssr/{insights-failures-DGO2_3Vx.mjs → insights-failures-lmcxwKb3.mjs} +2 -2
  64. package/.output/server/_ssr/{insights-failures-rpc-DCu8iR4V.mjs → insights-failures-rpc-DLo_DEAi.mjs} +8 -8
  65. package/.output/server/_ssr/{insights-recovery-Cdg3Msrj.mjs → insights-recovery-Dhg3WGpC.mjs} +1 -1
  66. package/.output/server/_ssr/{insights-recovery-rpc-Bla1PuCq.mjs → insights-recovery-rpc-rpNu1Y8O.mjs} +5 -5
  67. package/.output/server/_ssr/{insights-rpc-ViJh0Q-s.mjs → insights-rpc-C2u-cHw2.mjs} +3 -3
  68. package/.output/server/_ssr/{insights-search-DfEqsfAa.mjs → insights-search-BBOEGM68.mjs} +2 -2
  69. package/.output/server/_ssr/{insights-usage-BVm7CDw9.mjs → insights-usage-gW3T5N6N.mjs} +1 -1
  70. package/.output/server/_ssr/{insights-usage-rpc-DWSPBftd.mjs → insights-usage-rpc-6VNQ-ZVG.mjs} +5 -5
  71. package/.output/server/_ssr/{insights-usage-rpc-CLsYlcnO.mjs → insights-usage-rpc-BOfXGKaq.mjs} +4 -4
  72. package/.output/server/_ssr/{insightsUsage-lPKyRC2o.mjs → insightsUsage-B_7pM9wp.mjs} +3 -3
  73. package/.output/server/_ssr/{insights_.distribution-CbZmys6X.mjs → insights_.distribution-DrY2XK92.mjs} +14 -14
  74. package/.output/server/_ssr/{insights_.distribution-6t26Hce4.mjs → insights_.distribution-a1c7v5MP.mjs} +2 -2
  75. package/.output/server/_ssr/{insights_.distribution-Bj054JTo.mjs → insights_.distribution-kX-VlU6s.mjs} +5 -5
  76. package/.output/server/_ssr/{installations-CL-nVRbZ.mjs → installations-B5-uJU9A.mjs} +4 -4
  77. package/.output/server/_ssr/{installations-BOzetKfl.mjs → installations-BG3Mf569.mjs} +2 -2
  78. package/.output/server/_ssr/{installations-ARFvJMie.mjs → installations-uML6v5Uo.mjs} +12 -12
  79. package/.output/server/_ssr/{ios-devices-rpc-Xln3pLFJ.mjs → ios-devices-rpc-DqTNHbdN.mjs} +8 -8
  80. package/.output/server/_ssr/{iosDeviceCookie-BG4X3Kbt.mjs → iosDeviceCookie-DNXjIPeF.mjs} +5 -5
  81. package/.output/server/_ssr/{iosDeviceProfile-C8NvflH9.mjs → iosDeviceProfile-Cl32eCmk.mjs} +6 -6
  82. package/.output/server/_ssr/{iosDevices-Ck5ko5IX.mjs → iosDevices-BQ0RaNWs.mjs} +3 -3
  83. package/.output/server/_ssr/{listReleases-QF91GLE7.mjs → listReleases-B2Q9xwFv.mjs} +3 -3
  84. package/.output/server/_ssr/{native-artifact-BRNP_q-y.mjs → native-artifact-BurROe05.mjs} +43 -2
  85. package/.output/server/_ssr/{native-builds-B70NqL0z.mjs → native-builds-BBOmHVsH.mjs} +16 -16
  86. package/.output/server/_ssr/{native-builds-nRuXKypG.mjs → native-builds-Bnx0fVWs.mjs} +10 -5
  87. package/.output/server/_ssr/{native-builds-6Kq2Pamq.mjs → native-builds-BuYIAi2p.mjs} +2 -2
  88. package/.output/server/_ssr/{native-builds_._buildId-B4uQUP7t.mjs → native-builds_._buildId-BUdWhQaH.mjs} +2 -2
  89. package/.output/server/_ssr/{native-builds_._buildId-zbXBoGs8.mjs → native-builds_._buildId-DZSLPTef.mjs} +58 -43
  90. package/.output/server/_ssr/{native-builds_.devices-DcgdiEiK.mjs → native-builds_.devices-QK5Z4ACD.mjs} +2 -2
  91. package/.output/server/_ssr/{native-builds_.devices-OLR3gTfc.mjs → native-builds_.devices-phkJgI1w.mjs} +17 -17
  92. package/.output/server/_ssr/{nativeBuildDownloadLink-DHsPiwsg.mjs → nativeBuildDownloadLink-BVtopV-4.mjs} +2 -2
  93. package/.output/server/_ssr/{nativeBuildInstall-DnpC3dUR.mjs → nativeBuildInstall-CVQLkYrX.mjs} +8 -8
  94. package/.output/server/_ssr/{nativeBuilds-DaF-TcfO.mjs → nativeBuilds-WKdqgemR.mjs} +7 -7
  95. package/.output/server/_ssr/{publicConsoleBase-wTKw3_iB.mjs → publicConsoleBase-C3sNbafy.mjs} +1 -1
  96. package/.output/server/_ssr/{release-adoption-gfhE5tz5.mjs → release-adoption-D2719HVh.mjs} +2 -2
  97. package/.output/server/_ssr/{release-adoption-rpc-C8oj79w3.mjs → release-adoption-rpc-DSlOL5v7.mjs} +7 -7
  98. package/.output/server/_ssr/{releaseAdoption-DfEYq7I4.mjs → releaseAdoption-CxGKmUXx.mjs} +4 -4
  99. package/.output/server/_ssr/{releaseReachability-Ch1JpJkY.mjs → releaseReachability-sWr0bLRk.mjs} +1 -1
  100. package/.output/server/_ssr/{remote-config-ClsnMl5Y.mjs → remote-config-9VJWDosm.mjs} +18 -18
  101. package/.output/server/_ssr/{remote-config-DOinV02U.mjs → remote-config-C4PKU5_z.mjs} +2 -2
  102. package/.output/server/_ssr/{remote-config-MEFtxtmM.mjs → remote-config-DPHJyAHV.mjs} +2 -2
  103. package/.output/server/_ssr/{remote-config-rpc-CCPIk5TC.mjs → remote-config-rpc-DxQ0jW52.mjs} +3 -3
  104. package/.output/server/_ssr/{router-jomm2ZkW.mjs → router-C1FV3SPc.mjs} +36 -36
  105. package/.output/server/_ssr/{routes-D0sAXxvj.mjs → routes-DDzrfaZr.mjs} +23 -23
  106. package/.output/server/_ssr/{routes-YuEmTB66.mjs → routes-Dg1cG9-d.mjs} +11 -11
  107. package/.output/server/_ssr/{schema-migration-rpc-CzOI4qIc.mjs → schema-migration-rpc-DdijfSjx.mjs} +3 -3
  108. package/.output/server/_ssr/{select-jxef2GHj.mjs → select-CQvxbdec.mjs} +2 -2
  109. package/.output/server/_ssr/{server-DowlVz8B.mjs → server-CGStUbwn.mjs} +3 -3
  110. package/.output/server/_ssr/{sidebar-DbK9IOE6.mjs → sidebar-zjbq02-o.mjs} +2 -2
  111. package/.output/server/_ssr/ssr.mjs +1 -1
  112. package/.output/server/_ssr/{switch-PuW4wKem.mjs → switch-_XoBaA1s.mjs} +2 -2
  113. package/.output/server/_ssr/{table-CTjtU7u0.mjs → table-FoAc6s3r.mjs} +1 -1
  114. package/.output/server/_ssr/{tabs-CYGM4B-P.mjs → tabs-BgUZHny1.mjs} +2 -2
  115. package/.output/server/_ssr/{updateFailures-BwDwIoNu.mjs → updateFailures-DGuFoK6A.mjs} +3 -3
  116. package/.output/server/{_tanstack-start-manifest_v-Dzfgn9EO.mjs → _tanstack-start-manifest_v-wLJ-tAN0.mjs} +22 -22
  117. package/.output/server/index.mjs +167 -167
  118. package/package.json +7 -7
  119. package/src/components/features/native-builds/BuiltInBundleCard.tsx +21 -5
  120. package/src/components/features/native-builds/InstallCard.tsx +32 -24
  121. package/src/components/features/native-builds/IosInstall.tsx +3 -2
  122. package/src/components/features/native-builds/PatchesCard.tsx +28 -20
  123. package/src/lib/api-rpc.ts +2 -1
  124. package/src/lib/native-builds.ts +10 -3
  125. package/src/lib/server/nativeBuildInstall.ts +3 -1
  126. package/src/lib/server/nativeBuilds.ts +15 -8
  127. package/.output/public/assets/native-builds-BOSmoLed.js +0 -1
  128. package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +0 -1
@@ -1,18 +1,18 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
3
  import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
4
- import { D as LoaderCircle, H as Clipboard, X as Check, _ as RefreshCw, f as ShieldOff, i as TriangleAlert, k as KeyRound, v as Plus } from "../_libs/lucide-react.mjs";
5
- import { A as createSsrRpc, C as Skeleton, S as SidebarTrigger, n as Input, t as Button$1 } from "./sidebar-DbK9IOE6.mjs";
6
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
4
+ import { D as LoaderCircle, H as Clipboard, Z as Check, _ as RefreshCw, f as ShieldOff, i as TriangleAlert, k as KeyRound, v as Plus } from "../_libs/lucide-react.mjs";
5
+ import { A as createSsrRpc, C as Skeleton, S as SidebarTrigger, n as Input, t as Button$1 } from "./sidebar-zjbq02-o.mjs";
6
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
7
7
  import { i as useQuery, n as useMutation, s as useQueryClient } from "../_libs/tanstack__react-query.mjs";
8
- import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-BSFwWT9T.mjs";
9
- import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-DNrlMwwO.mjs";
10
- import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-C_NBjv_7.mjs";
11
- import { a as AlertDialogDescription, c as AlertDialogMedia, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1, u as AlertDialogTrigger } from "./alert-dialog-B2IG3q93.mjs";
12
- import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-BE-0BoPu.mjs";
13
- import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-CTjtU7u0.mjs";
8
+ import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-UaEWfeRI.mjs";
9
+ import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-Cy4z0pH1.mjs";
10
+ import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-Bx8FKYuu.mjs";
11
+ import { a as AlertDialogDescription, c as AlertDialogMedia, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1, u as AlertDialogTrigger } from "./alert-dialog-CAb_7ZLL.mjs";
12
+ import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-DWlZVg5y.mjs";
13
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-FoAc6s3r.mjs";
14
14
  import { n as toast } from "../_libs/sonner.mjs";
15
- //#region node_modules/.nitro/vite/services/ssr/assets/api-keys-ZufcGzhb.js
15
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-keys-DY3XY8gz.js
16
16
  var import_react = /* @__PURE__ */ __toESM(require_react());
17
17
  var import_jsx_runtime = require_jsx_runtime();
18
18
  var parseName = (input) => {
@@ -1,7 +1,7 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
2
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/api-keys-rpc-N3V7gkvv.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-keys-rpc-D0rQ5vvV.js
5
5
  var parseName = (input) => {
6
6
  const name = typeof input === "object" && input !== null ? Reflect.get(input, "name") : void 0;
7
7
  if (typeof name !== "string") throw new TypeError("API key name must be a string.");
@@ -14,7 +14,7 @@ var parseId = (input) => {
14
14
  };
15
15
  /** API key management, once the console's access check and the feature guard pass. */
16
16
  var apiKeyManagement = async () => {
17
- const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-BEg-Ln3t.mjs"), import("./runtime.server-BUbb281Z.mjs")]);
17
+ const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-OJdvjs7r.mjs"), import("./runtime.server-BUbb281Z.mjs")]);
18
18
  const { runtime } = await prepareConfig();
19
19
  return requireFeature(runtime, "apiKeys");
20
20
  };
@@ -1,12 +1,12 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
2
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
4
  import { i as rowToBundle } from "./databaseRows-BZMFl5QV.mjs";
5
5
  import { n as assertCanonicalChannelName } from "./uuid-kZvLA0Ly-DNL0qBSj.mjs";
6
6
  import { t as ReleaseManagementError } from "./releaseManagement-CqIc-SDE.mjs";
7
- import { M as releaseNativeBuildScope, l as channelIdOf } from "./native-builds-nRuXKypG.mjs";
8
- import { n as readReleaseFilter, r as readReleaseFold, t as listReleaseFolds } from "./listReleases-QF91GLE7.mjs";
9
- //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-DXvqIbGs.js
7
+ import { N as releaseNativeBuildScope, u as channelIdOf } from "./native-builds-Bnx0fVWs.mjs";
8
+ import { n as readReleaseFilter, r as readReleaseFold, t as listReleaseFolds } from "./listReleases-B2Q9xwFv.mjs";
9
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-OTsF60lZ.js
10
10
  var withPublicBundleMutationErrors = async (action) => {
11
11
  try {
12
12
  return await action();
@@ -26,7 +26,7 @@ var readFoldInput = (input) => {
26
26
  };
27
27
  };
28
28
  var prepare = async () => {
29
- const { prepareConfig } = await import("./config.server-BEg-Ln3t.mjs");
29
+ const { prepareConfig } = await import("./config.server-OJdvjs7r.mjs");
30
30
  return prepareConfig();
31
31
  };
32
32
  var getReleases_createServerFn_handler = createServerRpc({
@@ -184,7 +184,7 @@ var getBundleChildren_createServerFn_handler = createServerRpc({
184
184
  }, (opts) => getBundleChildren.__executeServer(opts));
185
185
  var getBundleChildren = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => input).handler(getBundleChildren_createServerFn_handler, async ({ data }) => {
186
186
  try {
187
- const [{ core }, { getBundleChildren: readBundleChildren }] = await Promise.all([prepare(), import("./getBundleChildren-CnOf4Frp.mjs")]);
187
+ const [{ core }, { getBundleChildren: readBundleChildren }] = await Promise.all([prepare(), import("./getBundleChildren-DA9zbUBD.mjs")]);
188
188
  return await readBundleChildren(core, data.baseBundleId);
189
189
  } catch (error) {
190
190
  console.error("Error during bundle children retrieval:", error);
@@ -201,7 +201,7 @@ var getBundleChildCounts = createServerFn({ method: "GET" }).middleware([console
201
201
  return input;
202
202
  }).handler(getBundleChildCounts_createServerFn_handler, async ({ data }) => {
203
203
  try {
204
- const [{ core }, { getBundleChildCounts: readBundleChildCounts }] = await Promise.all([prepare(), import("./getBundleChildren-CnOf4Frp.mjs")]);
204
+ const [{ core }, { getBundleChildCounts: readBundleChildCounts }] = await Promise.all([prepare(), import("./getBundleChildren-DA9zbUBD.mjs")]);
205
205
  return await readBundleChildCounts(core, data.bundleIds);
206
206
  } catch (error) {
207
207
  console.error("Error during bundle child count retrieval:", error);
@@ -225,7 +225,7 @@ var getNativeBuilds = createServerFn({ method: "GET" }).middleware([consoleAcces
225
225
  ...input?.after === void 0 ? {} : { after: input.after },
226
226
  ...channelIdFilter(input?.channel)
227
227
  })).handler(getNativeBuilds_createServerFn_handler, async ({ data }) => {
228
- const [{ core }, { listNativeBuildFolds }] = await Promise.all([prepare(), import("./nativeBuilds-DaF-TcfO.mjs")]);
228
+ const [{ core }, { listNativeBuildFolds }] = await Promise.all([prepare(), import("./nativeBuilds-WKdqgemR.mjs")]);
229
229
  return listNativeBuildFolds(core, data);
230
230
  });
231
231
  var getNativeBuildFold_createServerFn_handler = createServerRpc({
@@ -237,7 +237,7 @@ var getNativeBuildFold = createServerFn({ method: "GET" }).middleware([consoleAc
237
237
  ...channelIdFilter(input.channel),
238
238
  ...readFoldInput(input)
239
239
  })).handler(getNativeBuildFold_createServerFn_handler, async ({ data }) => {
240
- const [{ core }, { readNativeBuildFold }] = await Promise.all([prepare(), import("./nativeBuilds-DaF-TcfO.mjs")]);
240
+ const [{ core }, { readNativeBuildFold }] = await Promise.all([prepare(), import("./nativeBuilds-WKdqgemR.mjs")]);
241
241
  return readNativeBuildFold(core, data);
242
242
  });
243
243
  var getNativeBuildDetail_createServerFn_handler = createServerRpc({
@@ -246,7 +246,7 @@ var getNativeBuildDetail_createServerFn_handler = createServerRpc({
246
246
  filename: "src/lib/api-rpc.ts"
247
247
  }, (opts) => getNativeBuildDetail.__executeServer(opts));
248
248
  var getNativeBuildDetail = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => input).handler(getNativeBuildDetail_createServerFn_handler, async ({ data }) => {
249
- const [{ core }, { getNativeBuildDetail: readNativeBuildDetail }] = await Promise.all([prepare(), import("./nativeBuilds-DaF-TcfO.mjs")]);
249
+ const [{ core }, { getNativeBuildDetail: readNativeBuildDetail }] = await Promise.all([prepare(), import("./nativeBuilds-WKdqgemR.mjs")]);
250
250
  return readNativeBuildDetail(core, data.id);
251
251
  });
252
252
  var getNativeBuildPatches_createServerFn_handler = createServerRpc({
@@ -259,7 +259,7 @@ var getNativeBuildPatches = createServerFn({ method: "GET" }).middleware([consol
259
259
  ...input.before === void 0 ? {} : { before: input.before },
260
260
  ...input.after === void 0 ? {} : { after: input.after }
261
261
  })).handler(getNativeBuildPatches_createServerFn_handler, async ({ data: { minBundleId, ...page } }) => {
262
- const [{ core }, { listNativeBuildPatches, NATIVE_BUILD_PATCH_PAGE_SIZE }] = await Promise.all([prepare(), import("./nativeBuilds-DaF-TcfO.mjs")]);
262
+ const [{ core }, { listNativeBuildPatches, NATIVE_BUILD_PATCH_PAGE_SIZE }] = await Promise.all([prepare(), import("./nativeBuilds-WKdqgemR.mjs")]);
263
263
  return listNativeBuildPatches(core, minBundleId, {
264
264
  ...page,
265
265
  limit: NATIVE_BUILD_PATCH_PAGE_SIZE
@@ -288,7 +288,7 @@ var getNativeBuildDownloadUrl_createServerFn_handler = createServerRpc({
288
288
  filename: "src/lib/api-rpc.ts"
289
289
  }, (opts) => getNativeBuildDownloadUrl.__executeServer(opts));
290
290
  var getNativeBuildDownloadUrl = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => input).handler(getNativeBuildDownloadUrl_createServerFn_handler, async ({ data }) => {
291
- const [deps, { resolveNativeBuildDownloadUrl }] = await Promise.all([prepare(), import("./nativeBuilds-DaF-TcfO.mjs")]);
291
+ const [deps, { resolveNativeBuildDownloadUrl }] = await Promise.all([prepare(), import("./nativeBuilds-WKdqgemR.mjs")]);
292
292
  return { url: await resolveNativeBuildDownloadUrl(data.id, deps) };
293
293
  });
294
294
  var createNativeBuildDownloadLink_createServerFn_handler = createServerRpc({
@@ -297,7 +297,7 @@ var createNativeBuildDownloadLink_createServerFn_handler = createServerRpc({
297
297
  filename: "src/lib/api-rpc.ts"
298
298
  }, (opts) => createNativeBuildDownloadLink.__executeServer(opts));
299
299
  var createNativeBuildDownloadLink = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => input).handler(createNativeBuildDownloadLink_createServerFn_handler, async ({ data }) => {
300
- const { issueNativeBuildDownloadLink } = await import("./nativeBuildDownloadLink-DHsPiwsg.mjs");
300
+ const { issueNativeBuildDownloadLink } = await import("./nativeBuildDownloadLink-BVtopV-4.mjs");
301
301
  return issueNativeBuildDownloadLink(data.id);
302
302
  });
303
303
  var getNativeBuildInstallEligibility_createServerFn_handler = createServerRpc({
@@ -306,12 +306,12 @@ var getNativeBuildInstallEligibility_createServerFn_handler = createServerRpc({
306
306
  filename: "src/lib/api-rpc.ts"
307
307
  }, (opts) => getNativeBuildInstallEligibility.__executeServer(opts));
308
308
  var getNativeBuildInstallEligibility = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => input).handler(getNativeBuildInstallEligibility_createServerFn_handler, async ({ data }) => {
309
- const [deps, { checkNativeBuildInstall }] = await Promise.all([prepare(), import("./nativeBuildInstall-DnpC3dUR.mjs")]);
309
+ const [deps, { checkNativeBuildInstall }] = await Promise.all([prepare(), import("./nativeBuildInstall-CVQLkYrX.mjs")]);
310
310
  return checkNativeBuildInstall(data.id, data.udid, deps, { canApprove: async () => {
311
311
  const [{ getRequest }, { requireConsoleAccess }, { iosDeviceViewer }] = await Promise.all([
312
312
  import("../_libs/_.mjs").then((n) => n.t),
313
- import("./auth.server-DT4SuI6u.mjs"),
314
- import("./iosDevices-Ck5ko5IX.mjs")
313
+ import("./auth.server-BVqW4FSJ.mjs"),
314
+ import("./iosDevices-BQ0RaNWs.mjs")
315
315
  ]);
316
316
  return (await iosDeviceViewer(await requireConsoleAccess(getRequest()), deps.config.deviceApprovers)).canApprove;
317
317
  } });
@@ -1,11 +1,11 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { A as createSsrRpc } from "./sidebar-DbK9IOE6.mjs";
3
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
2
+ import { A as createSsrRpc } from "./sidebar-zjbq02-o.mjs";
3
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
4
4
  import { i as useQuery, n as useMutation, s as useQueryClient, t as useInfiniteQuery } from "../_libs/tanstack__react-query.mjs";
5
5
  import { n as assertCanonicalChannelName } from "./uuid-kZvLA0Ly-DNL0qBSj.mjs";
6
- import { l as channelIdOf } from "./native-builds-nRuXKypG.mjs";
7
- import { n as readReleaseFilter } from "./listReleases-QF91GLE7.mjs";
8
- //#region node_modules/.nitro/vite/services/ssr/assets/api-CHpFJ_c4.js
6
+ import { u as channelIdOf } from "./native-builds-Bnx0fVWs.mjs";
7
+ import { n as readReleaseFilter } from "./listReleases-B2Q9xwFv.mjs";
8
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-v-mDt0z9.js
9
9
  /** The bounds of a fold, checked: IDs as text. */
10
10
  var readFoldInput = (input) => {
11
11
  const text = (value) => typeof value === "string" && value !== "";
@@ -75,7 +75,8 @@ var getNativeBuildPatches = createServerFn({ method: "GET" }).middleware([consol
75
75
  /**
76
76
  * The native build new deploys to a release's scope patch from: the scope's
77
77
  * store build in one read, or with no mark its newest build in one more. A
78
- * release of an app version range has no one build, and reads nothing.
78
+ * release of an app version range has no one build, and a sandbox channel's
79
+ * builds are no patch base: those read nothing.
79
80
  */
80
81
  var getReleaseNativeBuild = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => input).handler(createSsrRpc("868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c"));
81
82
  /**
@@ -1,14 +1,14 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
2
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
3
- import { i as getRequest } from "./server-DowlVz8B.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-Cx72ajwL.js
3
+ import { i as getRequest } from "./server-CGStUbwn.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-Cga9IGo3.js
5
5
  var getConsoleAccessRpc_createServerFn_handler = createServerRpc({
6
6
  id: "c504696e68ba764b48c48aa8a40275938640941e473cf9cfdd7b2322d99f9d13",
7
7
  name: "getConsoleAccessRpc",
8
8
  filename: "src/lib/auth-rpc.ts"
9
9
  }, (opts) => getConsoleAccessRpc.__executeServer(opts));
10
10
  var getConsoleAccessRpc = createServerFn({ method: "GET" }).handler(getConsoleAccessRpc_createServerFn_handler, async () => {
11
- const { getConsoleAccess } = await import("./auth.server-DT4SuI6u.mjs");
11
+ const { getConsoleAccess } = await import("./auth.server-BVqW4FSJ.mjs");
12
12
  return getConsoleAccess(getRequest());
13
13
  });
14
14
  var getConsoleAuthProvidersRpc_createServerFn_handler = createServerRpc({
@@ -17,7 +17,7 @@ var getConsoleAuthProvidersRpc_createServerFn_handler = createServerRpc({
17
17
  filename: "src/lib/auth-rpc.ts"
18
18
  }, (opts) => getConsoleAuthProvidersRpc.__executeServer(opts));
19
19
  var getConsoleAuthProvidersRpc = createServerFn({ method: "GET" }).handler(getConsoleAuthProvidersRpc_createServerFn_handler, async () => {
20
- const { getConsoleAuthProviders } = await import("./auth.server-DT4SuI6u.mjs");
20
+ const { getConsoleAuthProviders } = await import("./auth.server-BVqW4FSJ.mjs");
21
21
  return getConsoleAuthProviders(getRequest());
22
22
  });
23
23
  //#endregion
@@ -9,7 +9,7 @@ import { n as projectCompiledCatalog, r as projectCompiledRollbackCatalog, t as
9
9
  import { t as isRemoteDatabase } from "./databaseConfig-B56IJxlu.mjs";
10
10
  import { n as defineTable, t as defineAggregate } from "./schema-CaIuQCXb.mjs";
11
11
  import { r as rangesIntersect } from "../_libs/verkit.mjs";
12
- //#region node_modules/.nitro/vite/services/ssr/assets/auth.server-DT4SuI6u.js
12
+ //#region node_modules/.nitro/vite/services/ssr/assets/auth.server-BVqW4FSJ.js
13
13
  var SHA256_FILE_HASH_RE = /^[0-9a-f]{64}$/;
14
14
  var isContentAddressedAssetFileHash = (value) => {
15
15
  return typeof value === "string" && SHA256_FILE_HASH_RE.test(value);
@@ -2954,7 +2954,7 @@ var createEngine = (database, { plugins = [], now = Date.now } = {}) => {
2954
2954
  flush: () => engine.flush()
2955
2955
  };
2956
2956
  };
2957
- var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.34";
2957
+ var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.35";
2958
2958
  /**
2959
2959
  * `/version` on both mounts. The admin mount also lists the ids of the
2960
2960
  * plugins the server runs, sorted; apps never learn which plugins a server
@@ -3997,8 +3997,10 @@ var deleteBundle = async (tx, current) => {
3997
3997
  /**
3998
3998
  * Replaces a bundle's patches with `rows`: kept patches are updated where
3999
3999
  * they changed, others deleted or created, so no key is written twice.
4000
+ * `checkNew` sees each patch it is about to create, and refuses one by
4001
+ * throwing, which leaves the transaction's writes undone.
4000
4002
  */
4001
- var replaceBundlePatches = async (tx, bundle, rows) => {
4003
+ var replaceBundlePatches = async (tx, bundle, rows, checkNew) => {
4002
4004
  const wanted = new Map(rows.map((row) => [row.id, row]));
4003
4005
  const count = bundle._refs_bundle_patches_bundle_id ?? 0;
4004
4006
  let cursor;
@@ -4023,6 +4025,7 @@ var replaceBundlePatches = async (tx, bundle, rows) => {
4023
4025
  if (page.next === void 0) break;
4024
4026
  cursor = page.next;
4025
4027
  }
4028
+ if (checkNew !== void 0) for (const row of wanted.values()) await checkNew(row);
4026
4029
  for (const row of wanted.values()) tx.create("bundle_patches", row);
4027
4030
  };
4028
4031
  /** A channel by name, created when missing; a concurrent creator's row is returned instead. */
@@ -4168,6 +4171,14 @@ var nativeBuildScopeKey = (scope) => {
4168
4171
  if (scopeKey.length > SCOPE_KEY_MAX_LENGTH) throw new NativeBuildInputError(`Invalid native build scope: its key is longer than ${SCOPE_KEY_MAX_LENGTH} characters; shorten the channel or app version.`);
4169
4172
  return scopeKey;
4170
4173
  };
4174
+ /**
4175
+ * Refuses a patch from a sandbox build's built-in bundle: no deploy patches
4176
+ * from one, so no store or test install of the app gets a patch made for a
4177
+ * sandbox build. One unique read of the base.
4178
+ */
4179
+ var refuseSandboxPatchBase = async (db, baseBundleId) => {
4180
+ if ((await db.findOne("native_builds", { min_bundle_id: baseBundleId }))?.is_sandbox === true) throw new NativeBuildInputError("A sandbox build's built-in bundle is no patch base.");
4181
+ };
4171
4182
  /** Whether `bundleId` is a native build's built-in bundle: one unique read. */
4172
4183
  var isBuiltInBundle = async (db, bundleId) => await db.findOne("native_builds", { min_bundle_id: bundleId }) !== null;
4173
4184
  var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, sandboxUrlScheme, exportMethod, nativeAppVersion, artifact }) => {
@@ -4288,10 +4299,11 @@ var createNativeBuildApi = (db, { now = Date.now } = {}) => ({
4288
4299
  ...page
4289
4300
  });
4290
4301
  };
4302
+ const bundleId = options?.builtInOlderThan;
4303
+ if (bundleId !== void 0 && scope.channel.startsWith(SANDBOX_CHANNEL_PREFIX)) return null;
4291
4304
  const { rows } = await read(1);
4292
4305
  const newest = rows[0];
4293
4306
  if (newest === void 0) return null;
4294
- const bundleId = options?.builtInOlderThan;
4295
4307
  if (bundleId === void 0 || newest.min_bundle_id < bundleId) return pick(newest);
4296
4308
  for (let before = newest.id;;) {
4297
4309
  const { rows: older } = await read(OLDER_BUILDS_PAGE, before);
@@ -4703,7 +4715,11 @@ var createCoreOperations = (db, { now = Date.now } = {}) => {
4703
4715
  for (const { release } of deployments) if (!channels.has(release.channel)) channels.set(release.channel, await ensureChannel(release.channel));
4704
4716
  const platforms = /* @__PURE__ */ new Map();
4705
4717
  for (const deployment of deployments) {
4706
- if (!("bundleId" in deployment) || platforms.has(deployment.bundleId)) continue;
4718
+ if (!("bundleId" in deployment)) {
4719
+ for (const { baseBundleId } of deployment.bundle.patches ?? []) await refuseSandboxPatchBase(db, baseBundleId);
4720
+ continue;
4721
+ }
4722
+ if (platforms.has(deployment.bundleId)) continue;
4707
4723
  const row = await db.findOne("bundles", { id: deployment.bundleId });
4708
4724
  if (row === null) throw new DatabaseBundleNotFoundError(deployment.bundleId);
4709
4725
  if (await isBuiltInBundle(db, deployment.bundleId)) throw new ReleaseManagementError("TARGET_RELEASE_INVALID", `Bundle "${deployment.bundleId}" is a native build's built-in bundle, which no release publishes.`);
@@ -4906,7 +4922,7 @@ var createCoreOperations = (db, { now = Date.now } = {}) => {
4906
4922
  if (patches !== void 0) await replaceBundlePatches(tx, current, bundleToPatchRows({
4907
4923
  ...next,
4908
4924
  patches
4909
- }));
4925
+ }), (row) => refuseSandboxPatchBase(tx, row.base_bundle_id));
4910
4926
  }),
4911
4927
  deleteBundles: async (ids) => {
4912
4928
  try {
@@ -5377,7 +5393,8 @@ var createAdminRouteHandlers = () => ({
5377
5393
  rebuildReleaseCatalog: onCore(async (core, _request, params) => json({ data: await core.rebuildReleaseCatalog(scopeKeyOf(params)) })),
5378
5394
  updateBundle: onCore(async (core, request, params) => {
5379
5395
  const bundleId = requireRouteParam(params, "id");
5380
- await core.updateBundle(bundleId, bundleUpdateOf(await request.json(), bundleId));
5396
+ const update = bundleUpdateOf(await request.json(), bundleId);
5397
+ await refusingInvalid(() => core.updateBundle(bundleId, update));
5381
5398
  return noContent();
5382
5399
  }),
5383
5400
  countBundles: onCore(async (core, request) => json({ data: await core.countBundles(platformOf(new URL(request.url))) })),
@@ -5400,7 +5417,7 @@ var createAdminRouteHandlers = () => ({
5400
5417
  deployReleases: onCore(async (core, request) => {
5401
5418
  const { deployments } = await body(request);
5402
5419
  if (!Array.isArray(deployments) || deployments.length === 0 || !deployments.every(isDeployment)) throw new HandlerBadRequestError("Deploy needs deployments, each a bundle and its release policy.");
5403
- return json({ data: await core.deploy(deployments) }, 201);
5420
+ return json({ data: await refusingInvalid(() => core.deploy(deployments)) }, 201);
5404
5421
  }),
5405
5422
  promoteRelease: onCore(async (core, request, params) => {
5406
5423
  const input = await body(request);
@@ -1,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { Et as require_react, Tt as require_jsx_runtime, ft as useRender, wt as mergeProps } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
4
- import { k as cn } from "./sidebar-DbK9IOE6.mjs";
4
+ import { k as cn } from "./sidebar-zjbq02-o.mjs";
5
5
  require_react();
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  var alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5", {
@@ -1,4 +1,4 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/bundleActivity-a-pEDiqu.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/bundleActivity-CjE9yslP.js
2
2
  async function getBundleActivity(model, inputs) {
3
3
  if (inputs.length === 0) return {};
4
4
  const releases = inputs.map((input) => ({
@@ -1,6 +1,6 @@
1
1
  import "../_runtime.mjs";
2
2
  import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
- import { k as cn } from "./sidebar-DbK9IOE6.mjs";
3
+ import { k as cn } from "./sidebar-zjbq02-o.mjs";
4
4
  require_react();
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  function Card({ className, ...props }) {
@@ -1,6 +1,6 @@
1
- import { i as getRequest } from "./server-DowlVz8B.mjs";
2
- import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-DT4SuI6u.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/config.server-BEg-Ln3t.js
1
+ import { i as getRequest } from "./server-CGStUbwn.mjs";
2
+ import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-BVqW4FSJ.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/config.server-OJdvjs7r.js
4
4
  var configPromise = null;
5
5
  var core = null;
6
6
  var runtime = null;
@@ -1,5 +1,5 @@
1
1
  import { t as createMiddleware } from "./createMiddleware-C3ACsfuG.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/console-access-CPYdc4mK.js
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-access-BM4TLI4g.js
3
3
  /**
4
4
  * Refuses a caller the console does not authorize before a server function
5
5
  * reads its input. TanStack Start runs a function's middleware before the
@@ -9,7 +9,7 @@ import { t as createMiddleware } from "./createMiddleware-C3ACsfuG.mjs";
9
9
  * `console-access.spec.ts` checks that.
10
10
  */
11
11
  var consoleAccess = createMiddleware({ type: "function" }).server(async ({ next }) => {
12
- const [{ getRequest }, { requireConsoleAccess }] = await Promise.all([import("../_libs/_.mjs").then((n) => n.t), import("./auth.server-DT4SuI6u.mjs")]);
12
+ const [{ getRequest }, { requireConsoleAccess }] = await Promise.all([import("../_libs/_.mjs").then((n) => n.t), import("./auth.server-BVqW4FSJ.mjs")]);
13
13
  await requireConsoleAccess(getRequest());
14
14
  return next();
15
15
  });
@@ -1,10 +1,10 @@
1
1
  import { n as consoleFeatures } from "./console-features-DTYyXrWO.mjs";
2
2
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
- import { A as createSsrRpc } from "./sidebar-DbK9IOE6.mjs";
4
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
3
+ import { A as createSsrRpc } from "./sidebar-zjbq02-o.mjs";
4
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
5
5
  import { v as notFound } from "../_libs/@tanstack/react-router+[...].mjs";
6
6
  import { i as useQuery, r as queryOptions } from "../_libs/tanstack__react-query.mjs";
7
- //#region node_modules/.nitro/vite/services/ssr/assets/console-features-api-D_KFX0JV.js
7
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-features-api-BmiP0aaD.js
8
8
  /** The features this console serves, for navigation and route guards. */
9
9
  var getConsoleFeaturesRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).handler(createSsrRpc("82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe"));
10
10
  var consoleFeaturesQueryKey = ["console", "features"];
@@ -1,14 +1,14 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
2
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-CSogovr5.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-DPcZcHSW.js
5
5
  var getConsoleFeaturesRpc_createServerFn_handler = createServerRpc({
6
6
  id: "82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe",
7
7
  name: "getConsoleFeaturesRpc",
8
8
  filename: "src/lib/console-features-rpc.ts"
9
9
  }, (opts) => getConsoleFeaturesRpc.__executeServer(opts));
10
10
  var getConsoleFeaturesRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).handler(getConsoleFeaturesRpc_createServerFn_handler, async () => {
11
- const { prepareConfig } = await import("./config.server-BEg-Ln3t.mjs");
11
+ const { prepareConfig } = await import("./config.server-OJdvjs7r.mjs");
12
12
  const { runtime } = await prepareConfig();
13
13
  return {
14
14
  features: await runtime.features(),
@@ -1,5 +1,5 @@
1
1
  import { n as sameSecret } from "./local-console-Dtxlsav0.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/deviceProfileToken-xzDLfE0T.js
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/deviceProfileToken-Eeltr-o0.js
3
3
  /**
4
4
  * Signed, short-lived tokens for an iPhone's profile flow, which runs where
5
5
  * the Console's session isn't: Safari's profile download and the Settings app's
@@ -1,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { Et as require_react, Tt as require_jsx_runtime, at as DialogTitle$1, ct as DialogPopup, dt as DialogBackdrop, it as DialogTrigger$1, lt as DialogDescription$1, ot as DialogRoot, st as DialogPortal$1, ut as DialogClose } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { t as X } from "../_libs/lucide-react.mjs";
4
- import { k as cn, t as Button$1 } from "./sidebar-DbK9IOE6.mjs";
4
+ import { k as cn, t as Button$1 } from "./sidebar-zjbq02-o.mjs";
5
5
  require_react();
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  function Dialog$1({ ...props }) {
@@ -1,4 +1,4 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/downloadBundle-C1KOnpiF.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/downloadBundle-DLkb7A7E.js
2
2
  var downloadBundle = async (bundleId, { core, storage }) => {
3
3
  const detail = await core.getBundle(bundleId);
4
4
  if (!detail) return new Response("Bundle not found", { status: 404 });
@@ -1,7 +1,7 @@
1
1
  import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
2
  import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
3
- import { k as cn } from "./sidebar-DbK9IOE6.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/empty-DVeNY_6z.js
3
+ import { k as cn } from "./sidebar-zjbq02-o.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/empty-BPB71w6i.js
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  function Empty({ className, ...props }) {
7
7
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
@@ -1,6 +1,6 @@
1
- import { r as recoveryWindows } from "./insights-recovery-Cdg3Msrj.mjs";
2
- import { n as readFailureReportsInput } from "./insights-errors-DwUaDs0Z.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/failureReports-BVufgM3l.js
1
+ import { r as recoveryWindows } from "./insights-recovery-Dhg3WGpC.mjs";
2
+ import { n as readFailureReportsInput } from "./insights-errors-BrToSfI9.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/failureReports-Bd7CaadE.js
4
4
  /** Bounded raw-event reads, with continuation even when a batch finds no failures. */
5
5
  async function listFailureReports(reads, input) {
6
6
  readFailureReportsInput(input);
@@ -1,8 +1,8 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
4
- import { k as cn } from "./sidebar-DbK9IOE6.mjs";
5
- //#region node_modules/.nitro/vite/services/ssr/assets/field-C_NBjv_7.js
4
+ import { k as cn } from "./sidebar-zjbq02-o.mjs";
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/field-Bx8FKYuu.js
6
6
  var import_react = /* @__PURE__ */ __toESM(require_react());
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  function Label({ className, htmlFor, ...props }) {
@@ -1,4 +1,4 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/foldedPage-CUjJqtlF.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/foldedPage-DrxWt5XS.js
2
2
  var SEPARATOR = ".";
3
3
  var ID = /^[0-9A-Za-z-]+$/u;
4
4
  var parseCursor = (token) => {
@@ -1,5 +1,5 @@
1
1
  import { i as rowToBundle } from "./databaseRows-BZMFl5QV.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/getBundleChildren-CnOf4Frp.js
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/getBundleChildren-DA9zbUBD.js
3
3
  /** The most children the lineage panel lists; the count comes from the base bundle's counter. */
4
4
  var BUNDLE_CHILDREN_LIMIT = 100;
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
4
- import { k as cn, n as Input, t as Button$1 } from "./sidebar-DbK9IOE6.mjs";
4
+ import { k as cn, n as Input, t as Button$1 } from "./sidebar-zjbq02-o.mjs";
5
5
  require_react();
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  function Textarea({ className, ...props }) {
@@ -1,9 +1,9 @@
1
1
  import { f as lazyRouteComponent, p as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
2
- import { r as requireConsoleFeature } from "./console-features-api-D_KFX0JV.mjs";
3
- import { o as validateInsightsSearch } from "./insights-search-DfEqsfAa.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-DNNsxJlD.js
5
- var $$splitComponentImporter = () => import("./insights-hDsGL-yq.mjs");
6
- var $$splitNotFoundComponentImporter = () => import("./insights-ECnoz9jp.mjs");
2
+ import { r as requireConsoleFeature } from "./console-features-api-BmiP0aaD.mjs";
3
+ import { o as validateInsightsSearch } from "./insights-search-BBOEGM68.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-CBOTZToQ.js
5
+ var $$splitComponentImporter = () => import("./insights-DaGJDccC.mjs");
6
+ var $$splitNotFoundComponentImporter = () => import("./insights-CFbpYpMy.mjs");
7
7
  var Route = createFileRoute("/insights")({
8
8
  beforeLoad: ({ context }) => requireConsoleFeature(context.queryClient, "insightsAnalytics"),
9
9
  notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, "notFoundComponent"),
@@ -1,5 +1,5 @@
1
- import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-BDSJSs7U.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-ECnoz9jp.js
1
+ import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-BX6uKVMH.mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-CFbpYpMy.js
3
3
  var SplitNotFoundComponent = ConsoleFeatureUnavailable;
4
4
  //#endregion
5
5
  export { SplitNotFoundComponent as notFoundComponent };
@@ -1,37 +1,37 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
3
  import { A as ScrollAreaCorner, C as ComboboxPositioner, D as ComboboxClear$1, E as ComboboxCollection$1, Et as require_react, M as ScrollAreaScrollbar, N as ScrollAreaViewport, O as ComboboxInput$1, P as ScrollAreaRoot, S as ComboboxPopup, T as ComboboxList$1, Tt as require_jsx_runtime, _ as ComboboxRoot, b as ComboboxGroupLabel, g as ComboboxItemIndicator, j as ScrollAreaThumb, k as ComboboxTrigger$1, v as ComboboxEmpty$1, w as ComboboxPortal, x as ComboboxGroup$1, y as ComboboxItem$1 } from "../_libs/@base-ui/react+[...].mjs";
4
- import { O as List, U as CircleOff, V as Copy, X as Check, Y as ChevronDown, _ as RefreshCw, g as RotateCcw, h as RotateCw, i as TriangleAlert, nt as ArrowRight, q as ChevronRight, r as Undo2, t as X, tt as ArrowUpRight } from "../_libs/lucide-react.mjs";
5
- import { A as createSsrRpc, C as Skeleton, O as buttonVariants, a as SheetContent, c as SheetTitle, i as Sheet, k as cn, l as SheetTrigger, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-DbK9IOE6.mjs";
6
- import { t as consoleAccess } from "./console-access-CPYdc4mK.mjs";
4
+ import { J as ChevronRight, O as List, V as Copy, W as CircleOff, X as ChevronDown, Z as Check, _ as RefreshCw, g as RotateCcw, h as RotateCw, i as TriangleAlert, nt as ArrowUpRight, r as Undo2, rt as ArrowRight, t as X } from "../_libs/lucide-react.mjs";
5
+ import { A as createSsrRpc, C as Skeleton, O as buttonVariants, a as SheetContent, c as SheetTitle, i as Sheet, k as cn, l as SheetTrigger, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-zjbq02-o.mjs";
6
+ import { t as consoleAccess } from "./console-access-BM4TLI4g.mjs";
7
7
  import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
8
8
  import { a as useQueries, i as useQuery, s as useQueryClient } from "../_libs/tanstack__react-query.mjs";
9
- import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-DVeNY_6z.mjs";
10
- import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-BSFwWT9T.mjs";
11
- import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-DNrlMwwO.mjs";
12
- import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-B2IG3q93.mjs";
13
- import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-CTjtU7u0.mjs";
9
+ import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-BPB71w6i.mjs";
10
+ import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-UaEWfeRI.mjs";
11
+ import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-Cy4z0pH1.mjs";
12
+ import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-CAb_7ZLL.mjs";
13
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-FoAc6s3r.mjs";
14
14
  import { n as toast } from "../_libs/sonner.mjs";
15
15
  import { s as isUUIDv7 } from "./uuid-kZvLA0Ly-DNL0qBSj.mjs";
16
- import { r as recoveryWindows, t as insightsPeriodEnd } from "./insights-recovery-Cdg3Msrj.mjs";
17
- import { a as failureReasonLabel, i as failureRate, o as failureStageLabel, r as failureDetailParts, s as formatRate, t as checkFailureRate } from "./insights-failures-DGO2_3Vx.mjs";
18
- import { t as groupFailureReports } from "./insights-errors-DwUaDs0Z.mjs";
19
- import { n as usageMetrics } from "./insights-usage-BVm7CDw9.mjs";
20
- import { a as readAdoptionReleasesInput, i as readAdoptionReleaseInput, n as crashRateOf, o as readBundleEventsInput, r as defaultAdoptionReleases, s as recommendsRollback, t as CRASH_RATE_THRESHOLD } from "./release-adoption-gfhE5tz5.mjs";
21
- import { i as comparedBundleIds, n as InfoTooltip, t as DEFAULT_INSIGHTS_CHANNEL } from "./insights-search-DfEqsfAa.mjs";
22
- import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-DvbUK1vp.mjs";
23
- import { _ as usePreflightReleaseMutation, i as useChannelsQuery, w as useUpdateReleaseMutation } from "./api-CHpFJ_c4.mjs";
24
- import { t as Route } from "./insights-DNNsxJlD.mjs";
25
- import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-CYGM4B-P.mjs";
16
+ import { r as recoveryWindows, t as insightsPeriodEnd } from "./insights-recovery-Dhg3WGpC.mjs";
17
+ import { a as failureReasonLabel, i as failureRate, o as failureStageLabel, r as failureDetailParts, s as formatRate, t as checkFailureRate } from "./insights-failures-lmcxwKb3.mjs";
18
+ import { t as groupFailureReports } from "./insights-errors-BrToSfI9.mjs";
19
+ import { n as usageMetrics } from "./insights-usage-gW3T5N6N.mjs";
20
+ import { a as readAdoptionReleasesInput, i as readAdoptionReleaseInput, n as crashRateOf, o as readBundleEventsInput, r as defaultAdoptionReleases, s as recommendsRollback, t as CRASH_RATE_THRESHOLD } from "./release-adoption-D2719HVh.mjs";
21
+ import { i as comparedBundleIds, n as InfoTooltip, t as DEFAULT_INSIGHTS_CHANNEL } from "./insights-search-BBOEGM68.mjs";
22
+ import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-b2wrxjFK.mjs";
23
+ import { _ as usePreflightReleaseMutation, i as useChannelsQuery, w as useUpdateReleaseMutation } from "./api-v-mDt0z9.mjs";
24
+ import { t as Route } from "./insights-CBOTZToQ.mjs";
25
+ import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-BgUZHny1.mjs";
26
26
  import { t as PlatformIcon } from "./PlatformIcon-X18AN8Yp.mjs";
27
- import { i as InputGroupInput, n as InputGroupAddon, r as InputGroupButton, t as InputGroup } from "./input-group-CGiryg7I.mjs";
28
- import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-jxef2GHj.mjs";
29
- import { t as BundleIdDisplay } from "./BundleIdDisplay-C2Yhau3H.mjs";
30
- import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-CLsYlcnO.mjs";
31
- import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-DUvHESff.mjs";
32
- import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-wqpPsSDt.mjs";
27
+ import { i as InputGroupInput, n as InputGroupAddon, r as InputGroupButton, t as InputGroup } from "./input-group-BzfbjZEj.mjs";
28
+ import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-CQvxbdec.mjs";
29
+ import { t as BundleIdDisplay } from "./BundleIdDisplay-B90reloJ.mjs";
30
+ import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-BOfXGKaq.mjs";
31
+ import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-Bu88jQMD.mjs";
32
+ import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-DiO0Njqj.mjs";
33
33
  import { a as CartesianGrid, i as Line, l as ResponsiveContainer, n as YAxis, o as ReferenceLine, r as XAxis, s as Tooltip, t as LineChart } from "../_libs/recharts+[...].mjs";
34
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-hDsGL-yq.js
34
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-DaGJDccC.js
35
35
  var import_react = /* @__PURE__ */ __toESM(require_react());
36
36
  var import_jsx_runtime = require_jsx_runtime();
37
37
  var THEMES = {