@hot-updater/console 1.2.0-rc.21 → 1.2.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/StoreSubmission-CGFw9Mjw.js +1 -0
- package/.output/public/assets/{index-Cde2QQJq.js → index-i5bn-u_u.js} +2 -2
- package/.output/public/assets/{native-builds-v5wez34c.js → native-builds-B4pD_O7E.js} +2 -2
- package/.output/public/assets/native-builds-CKSg6cCF.js +1 -0
- package/.output/public/assets/native-builds_._buildId-D8YN2nuE.js +1 -0
- package/.output/public/assets/{native-builds_._buildId-BBwE8Pcc.js → native-builds_._buildId-DnflZszD.js} +2 -2
- package/.output/public/assets/styles-83XEjOMT.css +2 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-C-9gAWtP.mjs → __23tanstack-start-server-fn-resolver-CqmGqsCf.mjs} +49 -49
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-gVoZLoqU.mjs → BundleIdDisplay-DKzerkt2.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-Dcibk9QQ.mjs → ConsoleFeatureUnavailable-CGHUzMT7.mjs} +5 -5
- package/.output/server/_ssr/{EventDetails-CCZ9mS_F.mjs → EventDetails-CW5BuINX.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-BxHC8iAG.mjs → HashValueDisplay-B2q2ERkY.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CqJqdi-m.mjs → InsightsPageHeader-BmRtEJBU.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-BLIrdxfa.mjs → NotFoundPage-D9z2l-z3.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-B1Sy1q_O.mjs → RelativeTime-0fTpchA0.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-BmWPR_Tb.mjs → RolloutPercentageBadge-BK9s6lRs.mjs} +3 -3
- package/.output/server/_ssr/{StoreSubmission-DIsoEgf-.mjs → StoreSubmission-DFVHx80N.mjs} +13 -3
- package/.output/server/_ssr/{TargetDisplay-C2ROSppY.mjs → TargetDisplay-DkpULH7H.mjs} +4 -4
- package/.output/server/_ssr/{alert-dialog-C1y2G90R.mjs → alert-dialog-CxqpyGYz.mjs} +1 -1
- package/.output/server/_ssr/{api-D8gN7V0h.mjs → api-CiOdv1kS.mjs} +3 -3
- package/.output/server/_ssr/{api-keys-DybL9aTC.mjs → api-keys-BQKh6ZGX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-W6eabF-V.mjs → api-keys-CB0m7Py8.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-rpc-CEaSDqVK.mjs → api-keys-rpc-BofO_aCG.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DloD35JY.mjs → api-rpc-Dj5gSySe.mjs} +9 -9
- package/.output/server/_ssr/{auth-rpc-DOGHWAlV.mjs → auth-rpc-DfnPI5lv.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-BO8fBOxh.mjs → auth.server-B9EYuuAd.mjs} +49 -37
- package/.output/server/_ssr/{badge-DFQ0dCIK.mjs → badge-CYeoWPOd.mjs} +1 -1
- package/.output/server/_ssr/{card-Ec0pJUEs.mjs → card-NEBHHGZu.mjs} +1 -1
- package/.output/server/_ssr/{config.server-AfVsZPlA.mjs → config.server-BTIrLhiH.mjs} +3 -3
- package/.output/server/_ssr/{console-access-fb0N6Nkh.mjs → console-access-ByHDrgoN.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-VIcoTdNC.mjs → console-features-api-DGI39r8E.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-BNjlCLLR.mjs → console-features-rpc-CyulT2ae.mjs} +3 -3
- package/.output/server/_ssr/{dialog-CqqX-d24.mjs → dialog-BEhLuqo7.mjs} +1 -1
- package/.output/server/_ssr/{empty-o55VPF-m.mjs → empty-CQbX9Rww.mjs} +2 -2
- package/.output/server/_ssr/{field-yKSsJRQo.mjs → field-C22YvQzr.mjs} +2 -2
- package/.output/server/_ssr/{input-group-DlSVwRKN.mjs → input-group-aMRxXJ0R.mjs} +1 -1
- package/.output/server/_ssr/{insights-oydyzlp4.mjs → insights-Cp5JAezy.mjs} +2 -2
- package/.output/server/_ssr/{insights-D1hSSSnf.mjs → insights-D4P6kDJw.mjs} +5 -5
- package/.output/server/_ssr/{insights-DmskI16o.mjs → insights-QJ4IMIDa.mjs} +19 -19
- package/.output/server/_ssr/{insights-api-BedUQeHn.mjs → insights-api-DAdiA7Vl.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-pyvkJiMW.mjs → insights-failures-rpc-CEnf87Av.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-C8oSWMSL.mjs → insights-recovery-rpc-BBCIMOuF.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-Bt3dM8UW.mjs → insights-rpc-B08Jfrow.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CH_Q2pPQ.mjs → insights-search-CEkMOZ90.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-CTt1yIIY.mjs → insights-usage-rpc-CF9avOn-.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-CTZ63vhq.mjs → insights-usage-rpc-IdutLuXu.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DG4pvrB8.mjs → insights_.distribution-5-ccoWvP.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-DS8Dc6_5.mjs → insights_.distribution-C7R85n7b.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CxB6jrKu.mjs → insights_.distribution-DhJJ1kiK.mjs} +5 -5
- package/.output/server/_ssr/{installations-ChOjrcPZ.mjs → installations-BR3I0OuV.mjs} +4 -4
- package/.output/server/_ssr/{installations-BgVrlTdW.mjs → installations-BRjjwSQS.mjs} +11 -11
- package/.output/server/_ssr/{installations-_PSpNZM6.mjs → installations-DYzmMSOa.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-CHOxmjmm.mjs → native-builds-S4x5ReBK.mjs} +51 -31
- package/.output/server/_ssr/{native-builds-DqJ41IA-.mjs → native-builds-gM76NiAI.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-C1lMUjaj.mjs → native-builds_._buildId-C5Y3QYDD.mjs} +32 -28
- package/.output/server/_ssr/{native-builds_._buildId-Bb-mVQnh.mjs → native-builds_._buildId-Dq0IUPFP.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildDownloadLink-wyUj7Oyi.mjs → nativeBuildDownloadLink-BJ0v8peF.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-i5f-2-qd.mjs → nativeBuildInstall-Cvh3E39_.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuilds-ByQdDnHG.mjs → nativeBuilds-D84Qo6jn.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-BUPLEJYw.mjs → release-adoption-rpc-D_l0i2k2.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-BMdoiYuB.mjs → remote-config-CFbIFNRX.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DvM_KKl6.mjs → remote-config-DVYGVpPm.mjs} +17 -17
- package/.output/server/_ssr/{remote-config-XmtJFUKn.mjs → remote-config-UWKIqnxv.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-DFRsn7f8.mjs → remote-config-rpc-C6_i-WQD.mjs} +3 -3
- package/.output/server/_ssr/{router-KM_t8okm.mjs → router-CCbvwPmc.mjs} +22 -22
- package/.output/server/_ssr/{routes-MrSajWvI.mjs → routes-Bl06X54f.mjs} +8 -8
- package/.output/server/_ssr/{routes-Beckr53C.mjs → routes-DAyIdgoY.mjs} +19 -19
- package/.output/server/_ssr/{schema-migration-rpc-BqNKpOrg.mjs → schema-migration-rpc-BZr71Ubh.mjs} +3 -3
- package/.output/server/_ssr/{select-CUCLbsEW.mjs → select-3TA7xhiz.mjs} +1 -1
- package/.output/server/_ssr/{server-DpE_idiZ.mjs → server-BhcERMRJ.mjs} +3 -3
- package/.output/server/_ssr/{sidebar-xs2XmYh9.mjs → sidebar-DA36V52n.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{switch-CWp_RWCq.mjs → switch-LPZF-jY_.mjs} +2 -2
- package/.output/server/_ssr/{table-DtPvFx_v.mjs → table-Di_642iX.mjs} +1 -1
- package/.output/server/_ssr/{tabs-D0Jdy8v4.mjs → tabs-B70kDhg4.mjs} +2 -2
- package/.output/server/{_tanstack-start-manifest_v-AYP07Vaf.mjs → _tanstack-start-manifest_v-DsL0Uqjn.mjs} +9 -9
- package/.output/server/index.mjs +155 -155
- package/package.json +7 -7
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +4 -4
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +13 -6
- package/src/components/features/native-builds/NativeBuildsTable.tsx +47 -11
- package/src/components/features/native-builds/SandboxBadge.tsx +15 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +1 -1
- package/src/lib/server/nativeBuilds.ts +1 -1
- package/.output/public/assets/StoreSubmission-F00RL5rI.js +0 -1
- package/.output/public/assets/native-builds-cT9Ha-jZ.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +0 -1
- 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-
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-
|
|
3
|
+
import { i as getRequest } from "./server-BhcERMRJ.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/auth-rpc-DfnPI5lv.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-
|
|
11
|
+
const { getConsoleAccess } = await import("./auth.server-B9EYuuAd.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-
|
|
20
|
+
const { getConsoleAuthProviders } = await import("./auth.server-B9EYuuAd.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-
|
|
11
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/auth.server-B9EYuuAd.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
|
-
* `
|
|
1011
|
-
* and
|
|
1012
|
-
*
|
|
1013
|
-
*
|
|
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
|
-
|
|
1092
|
-
|
|
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: ["
|
|
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
|
-
|
|
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.
|
|
2818
|
+
var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.22";
|
|
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
|
-
|
|
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
|
|
3642
|
-
* registry's convention, as
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
3853
|
+
is_store_build: false
|
|
3839
3854
|
},
|
|
3840
3855
|
previous: null
|
|
3841
3856
|
};
|
|
3842
3857
|
}
|
|
3843
|
-
if (
|
|
3844
|
-
if (build.
|
|
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
|
-
|
|
3850
|
-
|
|
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
|
-
|
|
3869
|
+
is_store_build: true
|
|
3858
3870
|
},
|
|
3859
3871
|
previous: holder === null ? null : {
|
|
3860
3872
|
...pick(holder),
|
|
3861
|
-
|
|
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-
|
|
4
|
+
import { k as cn } from "./sidebar-DA36V52n.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-
|
|
3
|
+
import { k as cn } from "./sidebar-DA36V52n.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-
|
|
2
|
-
import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/config.server-
|
|
1
|
+
import { i as getRequest } from "./server-BhcERMRJ.mjs";
|
|
2
|
+
import { requireConsoleAccess, t as resolveConsoleConfig } from "./auth.server-B9EYuuAd.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/config.server-BTIrLhiH.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-
|
|
2
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/console-access-ByHDrgoN.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-
|
|
12
|
+
const [{ getRequest }, { requireConsoleAccess }] = await Promise.all([import("../_libs/_.mjs").then((n) => n.t), import("./auth.server-B9EYuuAd.mjs")]);
|
|
13
13
|
await requireConsoleAccess(getRequest());
|
|
14
14
|
return next();
|
|
15
15
|
});
|
package/.output/server/_ssr/{console-features-api-VIcoTdNC.mjs → console-features-api-DGI39r8E.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as consoleFeatures } from "./console-features-CgdQJQlX.mjs";
|
|
2
2
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
3
|
-
import { A as createSsrRpc } from "./sidebar-
|
|
4
|
-
import { t as consoleAccess } from "./console-access-
|
|
3
|
+
import { A as createSsrRpc } from "./sidebar-DA36V52n.mjs";
|
|
4
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
7
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/console-features-api-DGI39r8E.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"];
|
package/.output/server/_ssr/{console-features-rpc-BNjlCLLR.mjs → console-features-rpc-CyulT2ae.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
2
|
-
import { t as consoleAccess } from "./console-access-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.mjs";
|
|
3
3
|
import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/console-features-rpc-CyulT2ae.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-
|
|
11
|
+
const { prepareConfig } = await import("./config.server-BTIrLhiH.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-
|
|
4
|
+
import { k as cn, t as Button$1 } from "./sidebar-DA36V52n.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-
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/empty-
|
|
3
|
+
import { k as cn } from "./sidebar-DA36V52n.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/empty-CQbX9Rww.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-
|
|
5
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/field-
|
|
4
|
+
import { k as cn } from "./sidebar-DA36V52n.mjs";
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/field-C22YvQzr.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-
|
|
4
|
+
import { k as cn, n as Input, t as Button$1 } from "./sidebar-DA36V52n.mjs";
|
|
5
5
|
require_react();
|
|
6
6
|
var import_jsx_runtime = require_jsx_runtime();
|
|
7
7
|
function Textarea({ className, ...props }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insights-
|
|
1
|
+
import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-CGHUzMT7.mjs";
|
|
2
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-Cp5JAezy.js
|
|
3
3
|
var SplitNotFoundComponent = ConsoleFeatureUnavailable;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { SplitNotFoundComponent as notFoundComponent };
|
|
@@ -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-
|
|
3
|
-
import { o as validateInsightsSearch } from "./insights-search-
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insights-
|
|
5
|
-
var $$splitComponentImporter = () => import("./insights-
|
|
6
|
-
var $$splitNotFoundComponentImporter = () => import("./insights-
|
|
2
|
+
import { r as requireConsoleFeature } from "./console-features-api-DGI39r8E.mjs";
|
|
3
|
+
import { o as validateInsightsSearch } from "./insights-search-CEkMOZ90.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-D4P6kDJw.js
|
|
5
|
+
var $$splitComponentImporter = () => import("./insights-QJ4IMIDa.mjs");
|
|
6
|
+
var $$splitNotFoundComponentImporter = () => import("./insights-Cp5JAezy.mjs");
|
|
7
7
|
var Route = createFileRoute("/insights")({
|
|
8
8
|
beforeLoad: ({ context }) => requireConsoleFeature(context.queryClient, "insightsAnalytics"),
|
|
9
9
|
notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, "notFoundComponent"),
|
|
@@ -2,15 +2,15 @@ import { i as __toESM } from "../_runtime.mjs";
|
|
|
2
2
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
3
3
|
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
4
|
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-
|
|
6
|
-
import { t as consoleAccess } from "./console-access-
|
|
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-DA36V52n.mjs";
|
|
6
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
10
|
-
import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-
|
|
11
|
-
import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-
|
|
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-
|
|
13
|
-
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-
|
|
9
|
+
import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-CQbX9Rww.mjs";
|
|
10
|
+
import { a as CardHeader, i as CardFooter, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-NEBHHGZu.mjs";
|
|
11
|
+
import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-CYeoWPOd.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-CxqpyGYz.mjs";
|
|
13
|
+
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-Di_642iX.mjs";
|
|
14
14
|
import { n as toast } from "../_libs/sonner.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";
|
|
@@ -18,20 +18,20 @@ import { a as failureReasonLabel, i as failureRate, o as failureStageLabel, r as
|
|
|
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-
|
|
22
|
-
import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-
|
|
23
|
-
import { t as Route } from "./insights-
|
|
24
|
-
import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-
|
|
21
|
+
import { i as comparedBundleIds, n as InfoTooltip, t as DEFAULT_INSIGHTS_CHANNEL } from "./insights-search-CEkMOZ90.mjs";
|
|
22
|
+
import { i as useFailureReportsQuery, l as useInsightsRetention, r as keepsTwelveMonths, t as DEFAULT_INSIGHTS_RETENTION, u as useUpdateFailuresQuery } from "./insights-api-DAdiA7Vl.mjs";
|
|
23
|
+
import { t as Route } from "./insights-D4P6kDJw.mjs";
|
|
24
|
+
import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs$1 } from "./tabs-B70kDhg4.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-
|
|
27
|
-
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-
|
|
28
|
-
import { S as useUpdateReleaseMutation, g as usePreflightReleaseMutation, i as useChannelsQuery } from "./api-
|
|
29
|
-
import { t as BundleIdDisplay } from "./BundleIdDisplay-
|
|
30
|
-
import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-
|
|
31
|
-
import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-
|
|
32
|
-
import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-
|
|
26
|
+
import { i as InputGroupInput, n as InputGroupAddon, r as InputGroupButton, t as InputGroup } from "./input-group-aMRxXJ0R.mjs";
|
|
27
|
+
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-3TA7xhiz.mjs";
|
|
28
|
+
import { S as useUpdateReleaseMutation, g as usePreflightReleaseMutation, i as useChannelsQuery } from "./api-CiOdv1kS.mjs";
|
|
29
|
+
import { t as BundleIdDisplay } from "./BundleIdDisplay-DKzerkt2.mjs";
|
|
30
|
+
import { n as getAppUsageReportRpc, t as Progress$1 } from "./insights-usage-rpc-CF9avOn-.mjs";
|
|
31
|
+
import { i as InsightsPeriodSelector, n as InsightsErrorAlert, o as UsagePeriodSelector, r as InsightsPageHeader } from "./InsightsPageHeader-BmRtEJBU.mjs";
|
|
32
|
+
import { i as HttpResponseBody, n as EventTimestamp, o as useInsightsTimeFormat, t as EventBundleTransition } from "./EventDetails-CW5BuINX.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-
|
|
34
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-QJ4IMIDa.js
|
|
35
35
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
36
36
|
var import_jsx_runtime = require_jsx_runtime();
|
|
37
37
|
var THEMES = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
2
|
-
import { A as createSsrRpc } from "./sidebar-
|
|
3
|
-
import { t as consoleAccess } from "./console-access-
|
|
2
|
+
import { A as createSsrRpc } from "./sidebar-DA36V52n.mjs";
|
|
3
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
7
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-api-DAdiA7Vl.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-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
6
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-failures-rpc-CEnf87Av.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-
|
|
14
|
+
import("./config.server-BTIrLhiH.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-
|
|
28
|
+
import("./config.server-BTIrLhiH.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-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-recovery-rpc-BBCIMOuF.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-
|
|
24
|
+
import("./config.server-BTIrLhiH.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-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.mjs";
|
|
3
3
|
import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insights-rpc-
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-rpc-B08Jfrow.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-
|
|
7
|
+
const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-BTIrLhiH.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-
|
|
4
|
+
import { D as TooltipTrigger, T as TooltipContent, t as Button$1, w as Tooltip$1 } from "./sidebar-DA36V52n.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-
|
|
7
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-search-CEkMOZ90.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 }) {
|
package/.output/server/_ssr/{insights-usage-rpc-CTt1yIIY.mjs → insights-usage-rpc-CF9avOn-.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
2
2
|
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-
|
|
4
|
-
import { t as consoleAccess } from "./console-access-
|
|
3
|
+
import { A as createSsrRpc, k as cn } from "./sidebar-DA36V52n.mjs";
|
|
4
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.mjs";
|
|
5
5
|
import { t as readAppUsageInput } from "./insights-usage-4KDIN3Kg.mjs";
|
|
6
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-
|
|
6
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-CF9avOn-.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, {
|
package/.output/server/_ssr/{insights-usage-rpc-CTZ63vhq.mjs → insights-usage-rpc-IdutLuXu.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
2
|
-
import { t as consoleAccess } from "./console-access-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ByHDrgoN.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-
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/insights-usage-rpc-IdutLuXu.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-
|
|
21
|
+
import("./config.server-BTIrLhiH.mjs"),
|
|
22
22
|
import("./insightsUsage-DmQdJZqT.mjs"),
|
|
23
23
|
import("./runtime.server-BsTTLV-B.mjs")
|
|
24
24
|
]);
|