@hot-updater/console 1.2.0-rc.21 → 1.2.0-rc.23

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 (92) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/StoreSubmission-CGFw9Mjw.js +1 -0
  3. package/.output/public/assets/{index-Cde2QQJq.js → index-BKB82n6Y.js} +2 -2
  4. package/.output/public/assets/{native-builds-v5wez34c.js → native-builds-B4pD_O7E.js} +2 -2
  5. package/.output/public/assets/native-builds-CKSg6cCF.js +1 -0
  6. package/.output/public/assets/native-builds_._buildId-BuVvRbMp.js +1 -0
  7. package/.output/public/assets/{native-builds_._buildId-BBwE8Pcc.js → native-builds_._buildId-D5tnmyu7.js} +2 -2
  8. package/.output/public/assets/styles-83XEjOMT.css +2 -0
  9. package/.output/server/{__23tanstack-start-server-fn-resolver-C-9gAWtP.mjs → __23tanstack-start-server-fn-resolver-DaTWUE6C.mjs} +49 -49
  10. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  11. package/.output/server/_libs/_.mjs +1 -1
  12. package/.output/server/_ssr/{BundleIdDisplay-gVoZLoqU.mjs → BundleIdDisplay-B3TQ2UPT.mjs} +2 -2
  13. package/.output/server/_ssr/{ConsoleFeatureUnavailable-Dcibk9QQ.mjs → ConsoleFeatureUnavailable-8rgfIK09.mjs} +6 -6
  14. package/.output/server/_ssr/{EventDetails-CCZ9mS_F.mjs → EventDetails-DsF6iUEM.mjs} +6 -6
  15. package/.output/server/_ssr/{HashValueDisplay-BxHC8iAG.mjs → HashValueDisplay-C65YyzTZ.mjs} +2 -2
  16. package/.output/server/_ssr/{InsightsPageHeader-CqJqdi-m.mjs → InsightsPageHeader-BRIlEf4s.mjs} +6 -6
  17. package/.output/server/_ssr/{NotFoundPage-BLIrdxfa.mjs → NotFoundPage-CxzFwYM2.mjs} +2 -2
  18. package/.output/server/_ssr/{RelativeTime-B1Sy1q_O.mjs → RelativeTime-BY-D2hQH.mjs} +3 -3
  19. package/.output/server/_ssr/{RolloutPercentageBadge-BmWPR_Tb.mjs → RolloutPercentageBadge-CiLrDDSI.mjs} +3 -3
  20. package/.output/server/_ssr/{StoreSubmission-DIsoEgf-.mjs → StoreSubmission-BrXiddhd.mjs} +13 -3
  21. package/.output/server/_ssr/{TargetDisplay-C2ROSppY.mjs → TargetDisplay-doQm0rXM.mjs} +4 -4
  22. package/.output/server/_ssr/{alert-dialog-C1y2G90R.mjs → alert-dialog-Dwk4SyVJ.mjs} +1 -1
  23. package/.output/server/_ssr/{api-D8gN7V0h.mjs → api-6otHuUXZ.mjs} +3 -3
  24. package/.output/server/_ssr/{api-keys-W6eabF-V.mjs → api-keys-BVnSI848.mjs} +9 -9
  25. package/.output/server/_ssr/{api-keys-DybL9aTC.mjs → api-keys-CTDRxIhp.mjs} +2 -2
  26. package/.output/server/_ssr/{api-keys-rpc-CEaSDqVK.mjs → api-keys-rpc-CETWYBIN.mjs} +3 -3
  27. package/.output/server/_ssr/{api-rpc-DloD35JY.mjs → api-rpc-DpYJuaim.mjs} +9 -9
  28. package/.output/server/_ssr/{auth-rpc-DOGHWAlV.mjs → auth-rpc-Ck3SvXA8.mjs} +4 -4
  29. package/.output/server/_ssr/{auth.server-BO8fBOxh.mjs → auth.server-CmoG6_cL.mjs} +49 -37
  30. package/.output/server/_ssr/{badge-DFQ0dCIK.mjs → badge-P2fzkUwd.mjs} +1 -1
  31. package/.output/server/_ssr/{card-Ec0pJUEs.mjs → card-jXV-z2bQ.mjs} +1 -1
  32. package/.output/server/_ssr/{config.server-AfVsZPlA.mjs → config.server-ZWIt6mfE.mjs} +3 -3
  33. package/.output/server/_ssr/{console-access-fb0N6Nkh.mjs → console-access-AkctZ8ST.mjs} +2 -2
  34. package/.output/server/_ssr/{console-features-api-VIcoTdNC.mjs → console-features-api-Bmu8qSBn.mjs} +5 -5
  35. package/.output/server/_ssr/{console-features-rpc-BNjlCLLR.mjs → console-features-rpc-D-jrGQD8.mjs} +3 -3
  36. package/.output/server/_ssr/{dialog-CqqX-d24.mjs → dialog-BNUJ-Tav.mjs} +1 -1
  37. package/.output/server/_ssr/{empty-o55VPF-m.mjs → empty-B2CjWEqi.mjs} +2 -2
  38. package/.output/server/_ssr/{field-yKSsJRQo.mjs → field-CFjbaK8C.mjs} +2 -2
  39. package/.output/server/_ssr/{input-group-DlSVwRKN.mjs → input-group-DeNexl2C.mjs} +1 -1
  40. package/.output/server/_ssr/{insights-DmskI16o.mjs → insights-Bs00fQC0.mjs} +20 -20
  41. package/.output/server/_ssr/{insights-D1hSSSnf.mjs → insights-CX3PQxhX.mjs} +5 -5
  42. package/.output/server/_ssr/{insights-oydyzlp4.mjs → insights-D2LyzYDU.mjs} +2 -2
  43. package/.output/server/_ssr/{insights-api-BedUQeHn.mjs → insights-api-Dc4AiQJ-.mjs} +3 -3
  44. package/.output/server/_ssr/{insights-failures-rpc-pyvkJiMW.mjs → insights-failures-rpc-BJnk4PuZ.mjs} +4 -4
  45. package/.output/server/_ssr/{insights-recovery-rpc-C8oSWMSL.mjs → insights-recovery-rpc-CUkpSkLZ.mjs} +3 -3
  46. package/.output/server/_ssr/{insights-rpc-Bt3dM8UW.mjs → insights-rpc-JOLiQk5w.mjs} +3 -3
  47. package/.output/server/_ssr/{insights-search-CH_Q2pPQ.mjs → insights-search-Bpn6HQCy.mjs} +2 -2
  48. package/.output/server/_ssr/{insights-usage-rpc-CTZ63vhq.mjs → insights-usage-rpc-CilhlWkg.mjs} +3 -3
  49. package/.output/server/_ssr/{insights-usage-rpc-CTt1yIIY.mjs → insights-usage-rpc-CquRnAc4.mjs} +3 -3
  50. package/.output/server/_ssr/{insights_.distribution-DS8Dc6_5.mjs → insights_.distribution-D7-7KGSG.mjs} +2 -2
  51. package/.output/server/_ssr/{insights_.distribution-CxB6jrKu.mjs → insights_.distribution-XYvyfx99.mjs} +5 -5
  52. package/.output/server/_ssr/{insights_.distribution-DG4pvrB8.mjs → insights_.distribution-vkIWZa9G.mjs} +14 -14
  53. package/.output/server/_ssr/{installations-BgVrlTdW.mjs → installations-Bgzm28Fr.mjs} +11 -11
  54. package/.output/server/_ssr/{installations-ChOjrcPZ.mjs → installations-CFM2uH9R.mjs} +4 -4
  55. package/.output/server/_ssr/{installations-_PSpNZM6.mjs → installations-yjwnzWUQ.mjs} +2 -2
  56. package/.output/server/_ssr/{native-builds-DqJ41IA-.mjs → native-builds-CqUOuXBL.mjs} +2 -2
  57. package/.output/server/_ssr/{native-builds-CHOxmjmm.mjs → native-builds-DC-tSwJd.mjs} +51 -31
  58. package/.output/server/_ssr/{native-builds_._buildId-Bb-mVQnh.mjs → native-builds_._buildId-BazicFrf.mjs} +2 -2
  59. package/.output/server/_ssr/{native-builds_._buildId-C1lMUjaj.mjs → native-builds_._buildId-DLZqcKWd.mjs} +37 -30
  60. package/.output/server/_ssr/{nativeBuildDownloadLink-wyUj7Oyi.mjs → nativeBuildDownloadLink-8nBXIZu0.mjs} +2 -2
  61. package/.output/server/_ssr/{nativeBuildInstall-i5f-2-qd.mjs → nativeBuildInstall-D8CQD14D.mjs} +3 -3
  62. package/.output/server/_ssr/{nativeBuilds-ByQdDnHG.mjs → nativeBuilds-D84Qo6jn.mjs} +2 -2
  63. package/.output/server/_ssr/{release-adoption-rpc-BUPLEJYw.mjs → release-adoption-rpc-CC31TdXP.mjs} +5 -5
  64. package/.output/server/_ssr/{remote-config-DvM_KKl6.mjs → remote-config-BTwMIdJy.mjs} +18 -18
  65. package/.output/server/_ssr/{remote-config-BMdoiYuB.mjs → remote-config-CxWJt-NA.mjs} +2 -2
  66. package/.output/server/_ssr/{remote-config-XmtJFUKn.mjs → remote-config-WK1MQtcB.mjs} +2 -2
  67. package/.output/server/_ssr/{remote-config-rpc-DFRsn7f8.mjs → remote-config-rpc-DxApmx2s.mjs} +3 -3
  68. package/.output/server/_ssr/{router-KM_t8okm.mjs → router-D26SaoFq.mjs} +23 -23
  69. package/.output/server/_ssr/{routes-Beckr53C.mjs → routes-BEGM59TV.mjs} +20 -20
  70. package/.output/server/_ssr/{routes-MrSajWvI.mjs → routes-C1iy2sJb.mjs} +10 -10
  71. package/.output/server/_ssr/{schema-migration-rpc-BqNKpOrg.mjs → schema-migration-rpc-CpFx-gh2.mjs} +3 -3
  72. package/.output/server/_ssr/{select-CUCLbsEW.mjs → select-CIz7S4Tb.mjs} +1 -1
  73. package/.output/server/_ssr/{server-DpE_idiZ.mjs → server-DwhLa_FJ.mjs} +3 -3
  74. package/.output/server/_ssr/{sidebar-xs2XmYh9.mjs → sidebar-Dwvgo8IR.mjs} +2 -2
  75. package/.output/server/_ssr/ssr.mjs +1 -1
  76. package/.output/server/_ssr/{switch-CWp_RWCq.mjs → switch-DeGndt4r.mjs} +2 -2
  77. package/.output/server/_ssr/{table-DtPvFx_v.mjs → table-CcyO8t_8.mjs} +1 -1
  78. package/.output/server/_ssr/{tabs-D0Jdy8v4.mjs → tabs-vNKtG-tj.mjs} +2 -2
  79. package/.output/server/{_tanstack-start-manifest_v-AYP07Vaf.mjs → _tanstack-start-manifest_v-Df6g3sSt.mjs} +9 -9
  80. package/.output/server/index.mjs +122 -122
  81. package/package.json +7 -7
  82. package/src/components/features/native-builds/BuiltInBundleCard.tsx +4 -4
  83. package/src/components/features/native-builds/InstallCard.tsx +12 -5
  84. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +13 -6
  85. package/src/components/features/native-builds/NativeBuildsTable.tsx +47 -11
  86. package/src/components/features/native-builds/SandboxBadge.tsx +15 -0
  87. package/src/components/features/native-builds/ServedNowCard.tsx +1 -1
  88. package/src/lib/server/nativeBuilds.ts +1 -1
  89. package/.output/public/assets/StoreSubmission-F00RL5rI.js +0 -1
  90. package/.output/public/assets/native-builds-cT9Ha-jZ.js +0 -1
  91. package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +0 -1
  92. package/.output/public/assets/styles-bNNic0NS.css +0 -2
@@ -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-DpE_idiZ.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-DOGHWAlV.js
3
+ import { i as getRequest } from "./server-DwhLa_FJ.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-Ck3SvXA8.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-BO8fBOxh.mjs");
11
+ const { getConsoleAccess } = await import("./auth.server-CmoG6_cL.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-BO8fBOxh.mjs");
20
+ const { getConsoleAuthProviders } = await import("./auth.server-CmoG6_cL.mjs");
21
21
  return getConsoleAuthProviders(getRequest());
22
22
  });
23
23
  //#endregion
@@ -8,7 +8,7 @@ import { n as projectCompiledCatalog, r as projectCompiledRollbackCatalog, t as
8
8
  import { t as isRemoteDatabase } from "./databaseConfig-XAvDetmn.mjs";
9
9
  import { n as defineTable, t as defineAggregate } from "./schema-3oDJJFWa.mjs";
10
10
  import { r as rangesIntersect } from "../_libs/verkit.mjs";
11
- //#region node_modules/.nitro/vite/services/ssr/assets/auth.server-BO8fBOxh.js
11
+ //#region node_modules/.nitro/vite/services/ssr/assets/auth.server-CmoG6_cL.js
12
12
  var SHA256_FILE_HASH_RE = /^[0-9a-f]{64}$/;
13
13
  var isContentAddressedAssetFileHash = (value) => {
14
14
  return typeof value === "string" && SHA256_FILE_HASH_RE.test(value);
@@ -1007,10 +1007,15 @@ var channels = defineTable({
1007
1007
  * or `versionCode`. `submitted_to`, `submitted_at_ms` and
1008
1008
  * `submitted_version` record the store track a build went to, when, and
1009
1009
  * the store's label of the build; they stay null for a build no store took.
1010
- * `store_build` is true on the build a person or a job says the store sells,
1011
- * and null on every other: deploys patch from it over the scope's newest build.
1012
- * It is never false, so `byStoreBuild` holds one entry per scope at most, on
1013
- * every store, and an unmarked row, older than the column or not, holds none.
1010
+ * `is_store_build` is true on the build a person or a job says the store
1011
+ * sells, and false on every other: deploys patch from it over the scope's
1012
+ * newest build. The engine copies the scope key into `store_build_scope_key`
1013
+ * for that build alone, so `byStoreBuild` holds one entry per scope at most,
1014
+ * on every store, while any number of a scope's builds hold none.
1015
+ * `is_sandbox` is true on a sandbox build, set when it registers and never
1016
+ * changed. Boolean columns follow one rule: `is_*` for a fact about the row or
1017
+ * `should_*` for an instruction to the client, never null; a unique index over
1018
+ * the rows where one is true keys a derived slot, not the boolean.
1014
1019
  */
1015
1020
  var nativeBuilds = defineTable({
1016
1021
  id: {
@@ -1088,12 +1093,16 @@ var nativeBuilds = defineTable({
1088
1093
  maxLength: 255,
1089
1094
  required: false
1090
1095
  },
1091
- store_build: {
1092
- type: "boolean",
1093
- required: false
1094
- }
1096
+ is_store_build: { type: "boolean" },
1097
+ is_sandbox: { type: "boolean" }
1095
1098
  }, {
1096
1099
  key: ["id"],
1100
+ derived: { store_build_scope_key: {
1101
+ type: "string",
1102
+ maxLength: 2048,
1103
+ ascii: true,
1104
+ compute: (row) => row.is_store_build ? row.scope_key : null
1105
+ } },
1097
1106
  indexes: {
1098
1107
  byScope: {
1099
1108
  eq: ["scope_key"],
@@ -1104,7 +1113,7 @@ var nativeBuilds = defineTable({
1104
1113
  sort: ["id"]
1105
1114
  },
1106
1115
  byStoreBuild: {
1107
- eq: ["scope_key", "store_build"],
1116
+ eq: ["store_build_scope_key"],
1108
1117
  sort: [],
1109
1118
  unique: true
1110
1119
  },
@@ -1943,7 +1952,8 @@ var fieldProblems = (definition, add) => {
1943
1952
  else if (field.required === false) add(`key field "${name}" is nullable`);
1944
1953
  else if (field.type === "json") add(`key field "${name}" is json`);
1945
1954
  }
1946
- for (const [name, { type, maxLength, ascii }] of Object.entries(definition.fields)) {
1955
+ const bounded = [...Object.entries(definition.fields), ...definition.kind === "table" ? Object.entries(definition.derived) : []];
1956
+ for (const [name, { type, maxLength, ascii }] of bounded) {
1947
1957
  if (maxLength !== void 0 && (type !== "string" || !Number.isSafeInteger(maxLength) || maxLength < 1)) add(`field "${name}" has an invalid maxLength`);
1948
1958
  if (ascii && type !== "string") add(`field "${name}" is ascii but not a string`);
1949
1959
  }
@@ -2060,11 +2070,13 @@ var resolveSchema = (modules) => {
2060
2070
  ...maxLength === void 0 ? {} : { maxLength },
2061
2071
  ...ascii ? { ascii } : {}
2062
2072
  }));
2063
- if (definition.kind === "table") for (const [field, { type, multi }] of Object.entries(definition.derived)) columns.push({
2073
+ if (definition.kind === "table") for (const [field, { type, multi, maxLength, ascii }] of Object.entries(definition.derived)) columns.push({
2064
2074
  name: field,
2065
2075
  type,
2066
2076
  nullable: true,
2067
- ...multi ? { multi } : {}
2077
+ ...multi ? { multi } : {},
2078
+ ...maxLength === void 0 ? {} : { maxLength },
2079
+ ...ascii ? { ascii } : {}
2068
2080
  });
2069
2081
  else columns.push(integer(SHARD_COLUMN), ...[...definition.counters, ...definition.gauges].map((metric) => integer(metric)), ...definition.distinct.map((metric) => ({
2070
2082
  name: metric,
@@ -2803,7 +2815,7 @@ var createEngine = (database, { plugins = [], now = Date.now } = {}) => {
2803
2815
  flush: () => engine.flush()
2804
2816
  };
2805
2817
  };
2806
- var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.21";
2818
+ var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.23";
2807
2819
  /**
2808
2820
  * `/version` on both mounts. The admin mount also lists the ids of the
2809
2821
  * plugins the server runs, sorted; apps never learn which plugins a server
@@ -3635,12 +3647,13 @@ var pick = (row) => ({
3635
3647
  submitted_to: row.submitted_to ?? null,
3636
3648
  submitted_at_ms: row.submitted_at_ms ?? null,
3637
3649
  submitted_version: row.submitted_version ?? null,
3638
- store_build: row.store_build === true ? true : null
3650
+ is_store_build: row.is_store_build === true,
3651
+ is_sandbox: row.is_sandbox === true
3639
3652
  });
3640
3653
  /**
3641
- * The channels only sandbox builds register on, which no store sells: the
3642
- * registry's convention, as `@hot-updater/protocol/native-artifact` checks it
3643
- * for a build's artifact.
3654
+ * The channels only sandbox builds register on: a registration's `sandbox`
3655
+ * must agree with it. The registry's convention, as
3656
+ * `@hot-updater/protocol/native-artifact` checks it for a build's artifact.
3644
3657
  */
3645
3658
  var SANDBOX_CHANNEL_PREFIX = "sandbox-";
3646
3659
  /**
@@ -3687,11 +3700,15 @@ var nativeBuildScopeKey = (scope) => {
3687
3700
  };
3688
3701
  /** Whether `bundleId` is a native build's built-in bundle: one unique read. */
3689
3702
  var isBuiltInBundle = async (db, bundleId) => await db.findOne("native_builds", { min_bundle_id: bundleId }) !== null;
3690
- var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, artifact }) => {
3703
+ var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, artifact }) => {
3691
3704
  if (!isUUIDv7(id)) return "id must be a UUIDv7";
3692
3705
  if (!isUUIDv7(minBundleId)) return "minBundleId must be the UUIDv7 a release build compiles in";
3693
3706
  if (platform !== "ios" && platform !== "android") return "platform must be ios or android";
3694
3707
  if (channel.trim().length === 0) return "channel is required";
3708
+ if (isSandbox !== void 0 && typeof isSandbox !== "boolean") return "isSandbox must be true or false";
3709
+ const reserved = channel.startsWith(SANDBOX_CHANNEL_PREFIX);
3710
+ if (isSandbox === true && !reserved) return `a sandbox build registers on a ${SANDBOX_CHANNEL_PREFIX}* channel, not ${channel}`;
3711
+ if (isSandbox !== true && reserved) return `channel ${channel} is reserved for sandbox builds`;
3695
3712
  if (gitCommitHash !== null && gitCommitHash.length > GIT_COMMIT_HASH_MAX_LENGTH) return `gitCommitHash must be at most ${GIT_COMMIT_HASH_MAX_LENGTH} characters`;
3696
3713
  if (fingerprintHash === null === (appVersion === null)) return "exactly one of fingerprintHash and appVersion is required";
3697
3714
  if (buildKey !== null && !BUILD_KEY.test(buildKey)) return "buildKey must be nbk1: and a SHA-256, or null";
@@ -3727,7 +3744,8 @@ var createNativeBuildApi = (db, { now = Date.now } = {}) => ({
3727
3744
  submitted_to: null,
3728
3745
  submitted_at_ms: null,
3729
3746
  submitted_version: null,
3730
- store_build: null
3747
+ is_store_build: false,
3748
+ is_sandbox: registration.isSandbox === true
3731
3749
  };
3732
3750
  for (let attempt = 1;; attempt += 1) {
3733
3751
  await insertChannel(db, {
@@ -3766,10 +3784,7 @@ var createNativeBuildApi = (db, { now = Date.now } = {}) => ({
3766
3784
  const buildKey = options?.buildKey;
3767
3785
  if (buildKey !== void 0 && !BUILD_KEY.test(buildKey)) throw new NativeBuildInputError("Invalid native build key: it must be nbk1: and a SHA-256.");
3768
3786
  if (options?.storeBuild) {
3769
- const marked = await db.findOne("native_builds", {
3770
- scope_key: scopeKey,
3771
- store_build: true
3772
- });
3787
+ const marked = await db.findOne("native_builds", { store_build_scope_key: scopeKey });
3773
3788
  return marked === null ? null : pick(marked);
3774
3789
  }
3775
3790
  const read = (limit, before) => {
@@ -3831,34 +3846,31 @@ var createNativeBuildApi = (db, { now = Date.now } = {}) => ({
3831
3846
  if (row === null) return null;
3832
3847
  const build = pick(row);
3833
3848
  if (!storeBuild) {
3834
- if (build.store_build !== null) tx.update("native_builds", row, { store_build: null });
3849
+ if (build.is_store_build) tx.update("native_builds", row, { is_store_build: false });
3835
3850
  return {
3836
3851
  nativeBuild: {
3837
3852
  ...build,
3838
- store_build: null
3853
+ is_store_build: false
3839
3854
  },
3840
3855
  previous: null
3841
3856
  };
3842
3857
  }
3843
- if (decodeChannelKey(build.channel_id.slice(8)).startsWith(SANDBOX_CHANNEL_PREFIX)) throw new NativeBuildInputError("A build on a sandbox channel can't be the store build.");
3844
- if (build.store_build !== null) return {
3858
+ if (build.is_sandbox) throw new NativeBuildInputError("A sandbox build can't be the store build.");
3859
+ if (build.is_store_build) return {
3845
3860
  nativeBuild: build,
3846
3861
  previous: null
3847
3862
  };
3848
- const holder = await tx.findOne("native_builds", {
3849
- scope_key: build.scope_key,
3850
- store_build: true
3851
- });
3852
- if (holder !== null) tx.update("native_builds", holder, { store_build: null });
3853
- tx.update("native_builds", row, { store_build: true });
3863
+ const holder = await tx.findOne("native_builds", { store_build_scope_key: build.scope_key });
3864
+ if (holder !== null) tx.update("native_builds", holder, { is_store_build: false });
3865
+ tx.update("native_builds", row, { is_store_build: true });
3854
3866
  return {
3855
3867
  nativeBuild: {
3856
3868
  ...build,
3857
- store_build: true
3869
+ is_store_build: true
3858
3870
  },
3859
3871
  previous: holder === null ? null : {
3860
3872
  ...pick(holder),
3861
- store_build: null
3873
+ is_store_build: false
3862
3874
  }
3863
3875
  };
3864
3876
  });
@@ -4803,7 +4815,7 @@ var refusingInvalid = async (operation) => {
4803
4815
  throw error;
4804
4816
  }
4805
4817
  };
4806
- var isNativeBuildRegistration = (value) => isRecord$1(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && isRecord$1(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord$1(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord$1(value.embeddedBundle.metadata));
4818
+ var isNativeBuildRegistration = (value) => isRecord$1(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && isRecord$1(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord$1(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord$1(value.embeddedBundle.metadata));
4807
4819
  var scopeKeyOf = (params) => decodeMaybe(requireRouteParam(params, "scopeKey")) ?? "";
4808
4820
  /** Every admin route's handler, by the name `ADMIN_ROUTES` mounts it under. */
4809
4821
  var createAdminRouteHandlers = () => ({
@@ -1,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { bt as require_react, ot as useRender, vt as mergeProps, yt 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-xs2XmYh9.mjs";
4
+ import { k as cn } from "./sidebar-Dwvgo8IR.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,6 +1,6 @@
1
1
  import "../_runtime.mjs";
2
2
  import { bt as require_react, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
- import { k as cn } from "./sidebar-xs2XmYh9.mjs";
3
+ import { k as cn } from "./sidebar-Dwvgo8IR.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-DpE_idiZ.mjs";
2
- import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-BO8fBOxh.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/config.server-AfVsZPlA.js
1
+ import { i as getRequest } from "./server-DwhLa_FJ.mjs";
2
+ import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-CmoG6_cL.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/config.server-ZWIt6mfE.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-fb0N6Nkh.js
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-access-AkctZ8ST.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-BO8fBOxh.mjs")]);
12
+ const [{ getRequest }, { requireConsoleAccess }] = await Promise.all([import("../_libs/_.mjs").then((n) => n.t), import("./auth.server-CmoG6_cL.mjs")]);
13
13
  await requireConsoleAccess(getRequest());
14
14
  return next();
15
15
  });
@@ -1,10 +1,10 @@
1
- import { n as consoleFeatures } from "./console-features-CgdQJQlX.mjs";
2
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
- import { A as createSsrRpc } from "./sidebar-xs2XmYh9.mjs";
4
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
5
- import { v as notFound } from "../_libs/@tanstack/react-router+[...].mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
+ import { A as createSsrRpc } from "./sidebar-Dwvgo8IR.mjs";
6
4
  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-VIcoTdNC.js
5
+ import { n as consoleFeatures } from "./console-features-CgdQJQlX.mjs";
6
+ import { v as notFound } from "../_libs/@tanstack/react-router+[...].mjs";
7
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-features-api-Bmu8qSBn.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-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-BNjlCLLR.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-D-jrGQD8.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-AfVsZPlA.mjs");
11
+ const { prepareConfig } = await import("./config.server-ZWIt6mfE.mjs");
12
12
  const { runtime } = await prepareConfig();
13
13
  return {
14
14
  features: await runtime.features(),
@@ -1,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { $ as DialogTitle$1, Q as DialogTrigger$1, at as DialogBackdrop, bt as require_react, et as DialogRoot, it as DialogClose, nt as DialogPopup, rt as DialogDescription$1, tt as DialogPortal$1, yt as require_jsx_runtime } 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-xs2XmYh9.mjs";
4
+ import { k as cn, t as Button$1 } from "./sidebar-Dwvgo8IR.mjs";
5
5
  require_react();
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  function Dialog$1({ ...props }) {
@@ -1,7 +1,7 @@
1
1
  import { yt 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-xs2XmYh9.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/empty-o55VPF-m.js
3
+ import { k as cn } from "./sidebar-Dwvgo8IR.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/empty-B2CjWEqi.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,8 +1,8 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { bt as require_react, yt 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-xs2XmYh9.mjs";
5
- //#region node_modules/.nitro/vite/services/ssr/assets/field-yKSsJRQo.js
4
+ import { k as cn } from "./sidebar-Dwvgo8IR.mjs";
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/field-CFjbaK8C.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,7 +1,7 @@
1
1
  import "../_runtime.mjs";
2
2
  import { bt as require_react, yt 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-xs2XmYh9.mjs";
4
+ import { k as cn, n as Input, t as Button$1 } from "./sidebar-Dwvgo8IR.mjs";
5
5
  require_react();
6
6
  var import_jsx_runtime = require_jsx_runtime();
7
7
  function Textarea({ className, ...props }) {
@@ -1,37 +1,37 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
4
  import { C as ComboboxTrigger$1, D as ScrollAreaViewport, E as ScrollAreaScrollbar, O as ScrollAreaRoot, S as ComboboxInput$1, T as ScrollAreaThumb, _ as ComboboxPositioner, b as ComboboxCollection$1, bt as require_react, d as ComboboxRoot, f as ComboboxEmpty$1, g as ComboboxPopup, h as ComboboxGroup$1, m as ComboboxGroupLabel, p as ComboboxItem$1, u as ComboboxItemIndicator, v as ComboboxPortal, w as ScrollAreaCorner, x as ComboboxClear$1, y as ComboboxList$1, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
4
5
  import { B as Copy, H as CircleOff, J as ChevronDown, K as ChevronRight, O as List, Y as Check, _ as RefreshCw, et as ArrowUpRight, g as RotateCcw, h as RotateCw, i as TriangleAlert, r as Undo2, t as X, tt as ArrowRight } 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-xs2XmYh9.mjs";
6
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
7
- import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
6
+ 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-Dwvgo8IR.mjs";
7
+ import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-jXV-z2bQ.mjs";
8
+ import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-P2fzkUwd.mjs";
9
+ 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-Dwk4SyVJ.mjs";
10
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-CcyO8t_8.mjs";
8
11
  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-o55VPF-m.mjs";
10
- import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-Ec0pJUEs.mjs";
11
- import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-DFQ0dCIK.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-C1y2G90R.mjs";
13
- import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DtPvFx_v.mjs";
14
12
  import { n as toast } from "../_libs/sonner.mjs";
13
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
14
+ import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-B2CjWEqi.mjs";
15
15
  import { w as isUUIDv7 } from "./dist-B6-irDRA.mjs";
16
16
  import { r as recoveryWindows, t as insightsPeriodEnd } from "./insights-recovery-DOkpqnQ8.mjs";
17
17
  import { a as failureReasonLabel, i as failureRate, o as failureStageLabel, r as failureDetailParts, s as formatRate, t as checkFailureRate } from "./insights-failures-DNQ9qVVf.mjs";
18
18
  import { t as groupFailureReports } from "./insights-errors-Bz3sWNZm.mjs";
19
19
  import { n as usageMetrics } from "./insights-usage-4KDIN3Kg.mjs";
20
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-C7sUFDwa.mjs";
21
- import { i as comparedBundleIds, n as InfoTooltip, t as DEFAULT_INSIGHTS_CHANNEL } from "./insights-search-CH_Q2pPQ.mjs";
22
- import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-BedUQeHn.mjs";
23
- import { t as Route } from "./insights-D1hSSSnf.mjs";
24
- import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-D0Jdy8v4.mjs";
21
+ import { i as comparedBundleIds, n as InfoTooltip, t as DEFAULT_INSIGHTS_CHANNEL } from "./insights-search-Bpn6HQCy.mjs";
22
+ import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-Dc4AiQJ-.mjs";
23
+ import { t as Route } from "./insights-CX3PQxhX.mjs";
24
+ import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-vNKtG-tj.mjs";
25
25
  import { t as PlatformIcon } from "./PlatformIcon-Cuhy0CIO.mjs";
26
- import { i as InputGroupInput, n as InputGroupAddon, r as InputGroupButton, t as InputGroup } from "./input-group-DlSVwRKN.mjs";
27
- import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-CUCLbsEW.mjs";
28
- import { S as useUpdateReleaseMutation, g as usePreflightReleaseMutation, i as useChannelsQuery } from "./api-D8gN7V0h.mjs";
29
- import { t as BundleIdDisplay } from "./BundleIdDisplay-gVoZLoqU.mjs";
30
- import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-CTt1yIIY.mjs";
31
- import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-CqJqdi-m.mjs";
32
- import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-CCZ9mS_F.mjs";
26
+ import { i as InputGroupInput, n as InputGroupAddon, r as InputGroupButton, t as InputGroup } from "./input-group-DeNexl2C.mjs";
27
+ import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-CIz7S4Tb.mjs";
28
+ import { S as useUpdateReleaseMutation, g as usePreflightReleaseMutation, i as useChannelsQuery } from "./api-6otHuUXZ.mjs";
29
+ import { t as BundleIdDisplay } from "./BundleIdDisplay-B3TQ2UPT.mjs";
30
+ import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-CquRnAc4.mjs";
31
+ import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-BRIlEf4s.mjs";
32
+ import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-DsF6iUEM.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-DmskI16o.js
34
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-Bs00fQC0.js
35
35
  var import_react = /* @__PURE__ */ __toESM(require_react());
36
36
  var import_jsx_runtime = require_jsx_runtime();
37
37
  var THEMES = {
@@ -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-VIcoTdNC.mjs";
3
- import { o as validateInsightsSearch } from "./insights-search-CH_Q2pPQ.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-D1hSSSnf.js
5
- var $$splitComponentImporter = () => import("./insights-DmskI16o.mjs");
6
- var $$splitNotFoundComponentImporter = () => import("./insights-oydyzlp4.mjs");
2
+ import { r as requireConsoleFeature } from "./console-features-api-Bmu8qSBn.mjs";
3
+ import { o as validateInsightsSearch } from "./insights-search-Bpn6HQCy.mjs";
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-CX3PQxhX.js
5
+ var $$splitComponentImporter = () => import("./insights-Bs00fQC0.mjs");
6
+ var $$splitNotFoundComponentImporter = () => import("./insights-D2LyzYDU.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-Dcibk9QQ.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-oydyzlp4.js
1
+ import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-8rgfIK09.mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-D2LyzYDU.js
3
3
  var SplitNotFoundComponent = ConsoleFeatureUnavailable;
4
4
  //#endregion
5
5
  export { SplitNotFoundComponent as notFoundComponent };
@@ -1,10 +1,10 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { A as createSsrRpc } from "./sidebar-xs2XmYh9.mjs";
3
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
+ import { A as createSsrRpc } from "./sidebar-Dwvgo8IR.mjs";
4
4
  import { i as useQuery, t as useInfiniteQuery } from "../_libs/tanstack__react-query.mjs";
5
5
  import { c as readUpdateFailuresInput } from "./insights-failures-DNQ9qVVf.mjs";
6
6
  import { n as readFailureReportsInput } from "./insights-errors-Bz3sWNZm.mjs";
7
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-api-BedUQeHn.js
7
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-api-Dc4AiQJ-.js
8
8
  var getUpdateFailuresRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readUpdateFailuresInput).handler(createSsrRpc("0d1dacdd1e5ee6b100e5c142fb9af03602b6f2c6fe6af79312b36c223d7f8f97"));
9
9
  var listFailureReportsRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readFailureReportsInput).handler(createSsrRpc("b4388826a9b515fb4d2113270aa8ded1c50ba13d7f07ac2b268c41396e87d0a3"));
10
10
  /** `insights()`'s defaults, for a server that does not report its periods. */
@@ -1,9 +1,9 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
4
  import { c as readUpdateFailuresInput } from "./insights-failures-DNQ9qVVf.mjs";
5
5
  import { n as readFailureReportsInput } from "./insights-errors-Bz3sWNZm.mjs";
6
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-failures-rpc-pyvkJiMW.js
6
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-failures-rpc-BJnk4PuZ.js
7
7
  var getUpdateFailuresRpc_createServerFn_handler = createServerRpc({
8
8
  id: "0d1dacdd1e5ee6b100e5c142fb9af03602b6f2c6fe6af79312b36c223d7f8f97",
9
9
  name: "getUpdateFailuresRpc",
@@ -11,7 +11,7 @@ var getUpdateFailuresRpc_createServerFn_handler = createServerRpc({
11
11
  }, (opts) => getUpdateFailuresRpc.__executeServer(opts));
12
12
  var getUpdateFailuresRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readUpdateFailuresInput).handler(getUpdateFailuresRpc_createServerFn_handler, async ({ data }) => {
13
13
  const [{ prepareConfig }, { getUpdateFailuresReport }, { requireFeature }] = await Promise.all([
14
- import("./config.server-AfVsZPlA.mjs"),
14
+ import("./config.server-ZWIt6mfE.mjs"),
15
15
  import("./updateFailures-DPYzv9bE.mjs"),
16
16
  import("./runtime.server-BsTTLV-B.mjs")
17
17
  ]);
@@ -25,7 +25,7 @@ var listFailureReportsRpc_createServerFn_handler = createServerRpc({
25
25
  }, (opts) => listFailureReportsRpc.__executeServer(opts));
26
26
  var listFailureReportsRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readFailureReportsInput).handler(listFailureReportsRpc_createServerFn_handler, async ({ data }) => {
27
27
  const [{ prepareConfig }, { listFailureReports }, { requireFeature }] = await Promise.all([
28
- import("./config.server-AfVsZPlA.mjs"),
28
+ import("./config.server-ZWIt6mfE.mjs"),
29
29
  import("./failureReports-C_CmBF4x.mjs"),
30
30
  import("./runtime.server-BsTTLV-B.mjs")
31
31
  ]);
@@ -1,8 +1,8 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
4
  import { n as readRecoveryInput } from "./insights-recovery-DOkpqnQ8.mjs";
5
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-recovery-rpc-C8oSWMSL.js
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-recovery-rpc-CUkpSkLZ.js
6
6
  function readBundleActivityInput(inputs) {
7
7
  if (!Array.isArray(inputs) || inputs.length > 20) throw new Error("Choose up to 20 bundles.");
8
8
  return inputs.map((input) => {
@@ -21,7 +21,7 @@ var getBundleActivityRpc_createServerFn_handler = createServerRpc({
21
21
  }, (opts) => getBundleActivityRpc.__executeServer(opts));
22
22
  var getBundleActivityRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readBundleActivityInput).handler(getBundleActivityRpc_createServerFn_handler, async ({ data }) => {
23
23
  const [{ prepareConfig }, { getBundleActivity }, { requireFeature }] = await Promise.all([
24
- import("./config.server-AfVsZPlA.mjs"),
24
+ import("./config.server-ZWIt6mfE.mjs"),
25
25
  import("./bundleActivity-BGVvqWx7.mjs"),
26
26
  import("./runtime.server-BsTTLV-B.mjs")
27
27
  ]);
@@ -1,10 +1,10 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-rpc-Bt3dM8UW.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-rpc-JOLiQk5w.js
5
5
  /** The Insights reads, once the console's access check and the feature guard pass. */
6
6
  var insightsReads = async () => {
7
- const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-AfVsZPlA.mjs"), import("./runtime.server-BsTTLV-B.mjs")]);
7
+ const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-ZWIt6mfE.mjs"), import("./runtime.server-BsTTLV-B.mjs")]);
8
8
  const { runtime } = await prepareConfig();
9
9
  return requireFeature(runtime, "insights");
10
10
  };
@@ -1,10 +1,10 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { bt as require_react, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { A as Info } from "../_libs/lucide-react.mjs";
4
- import { D as TooltipTrigger, T as TooltipContent, t as Button$1, w as Tooltip$1 } from "./sidebar-xs2XmYh9.mjs";
4
+ import { D as TooltipTrigger, T as TooltipContent, t as Button$1, w as Tooltip$1 } from "./sidebar-Dwvgo8IR.mjs";
5
5
  import { w as isUUIDv7 } from "./dist-B6-irDRA.mjs";
6
6
  import { r as extractTimestampFromUUIDv7 } from "./uuidv7-CmHbryZT.mjs";
7
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-search-CH_Q2pPQ.js
7
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-search-Bpn6HQCy.js
8
8
  var import_react = /* @__PURE__ */ __toESM(require_react());
9
9
  var import_jsx_runtime = require_jsx_runtime();
10
10
  function InfoTooltip({ label, children }) {
@@ -1,8 +1,8 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
3
3
  import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
4
4
  import { t as readAppUsageInput } from "./insights-usage-4KDIN3Kg.mjs";
5
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-CTZ63vhq.js
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-CilhlWkg.js
6
6
  var getAppUsageReportRpc_createServerFn_handler = createServerRpc({
7
7
  id: "8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e",
8
8
  name: "getAppUsageReportRpc",
@@ -18,7 +18,7 @@ var getAppUsageReportRpc = createServerFn({ method: "GET" }).middleware([console
18
18
  };
19
19
  }).handler(getAppUsageReportRpc_createServerFn_handler, async ({ data }) => {
20
20
  const [{ prepareConfig }, { getAppUsageReport }, { requireFeature }] = await Promise.all([
21
- import("./config.server-AfVsZPlA.mjs"),
21
+ import("./config.server-ZWIt6mfE.mjs"),
22
22
  import("./insightsUsage-DmQdJZqT.mjs"),
23
23
  import("./runtime.server-BsTTLV-B.mjs")
24
24
  ]);
@@ -1,9 +1,9 @@
1
1
  import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
2
+ import { t as consoleAccess } from "./console-access-AkctZ8ST.mjs";
2
3
  import { A as ProgressTrack$1, j as ProgressRoot, k as ProgressIndicator$1, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
- import { A as createSsrRpc, k as cn } from "./sidebar-xs2XmYh9.mjs";
4
- import { t as consoleAccess } from "./console-access-fb0N6Nkh.mjs";
4
+ import { A as createSsrRpc, k as cn } from "./sidebar-Dwvgo8IR.mjs";
5
5
  import { t as readAppUsageInput } from "./insights-usage-4KDIN3Kg.mjs";
6
- //#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-CTt1yIIY.js
6
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-CquRnAc4.js
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  function Progress$1({ className, children, value, ...props }) {
9
9
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ProgressRoot, {
@@ -1,5 +1,5 @@
1
- import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-Dcibk9QQ.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/insights_.distribution-DS8Dc6_5.js
1
+ import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-8rgfIK09.mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/insights_.distribution-D7-7KGSG.js
3
3
  /** How a distribution row's bundle reads aloud. */
4
4
  /** The bundle an app version's native build shipped, by its ID. */
5
5
  var SplitNotFoundComponent = ConsoleFeatureUnavailable;