@riddledc/riddle-proof 0.7.209 → 0.7.210
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/dist/cli.cjs +19 -2
- package/dist/cli.js +19 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -17024,8 +17024,25 @@ function profileHasActiveRouteLocalProofReceipt(receipts) {
|
|
|
17024
17024
|
const enabled = setupReturnSummaryValue(receipt, ["enabled", "proofEnabled", "proof_enabled"]) === true;
|
|
17025
17025
|
const ready = setupReturnSummaryValue(receipt, ["ready", "proofReady", "proof_ready"]) === true;
|
|
17026
17026
|
const supportsProofFeature = setupReturnSummaryValue(receipt, ["supportsOfflineAudio", "supportsProof", "proofSupported"]) === true;
|
|
17027
|
+
const autopilotActive = setupReturnSummaryValue(receipt, ["autopilot", "autopilotEnabled", "autopilot_enabled"]) === true;
|
|
17028
|
+
const runtimeMetricPresent = [
|
|
17029
|
+
"metricsPresent",
|
|
17030
|
+
"frameMetricsPresent",
|
|
17031
|
+
"runtimeMetricsPresent",
|
|
17032
|
+
"routeMetricsPresent"
|
|
17033
|
+
].some((name) => setupReturnSummaryValue(receipt, [name]) === true);
|
|
17034
|
+
const runtimeMetricMeasured = [
|
|
17035
|
+
"heightPx",
|
|
17036
|
+
"centerPx",
|
|
17037
|
+
"targetHeight",
|
|
17038
|
+
"frameCount",
|
|
17039
|
+
"elapsedMs",
|
|
17040
|
+
"distance",
|
|
17041
|
+
"speed",
|
|
17042
|
+
"velocity"
|
|
17043
|
+
].some((name) => cliFiniteNumber(setupReturnSummaryValue(receipt, [name])) !== void 0);
|
|
17027
17044
|
return Boolean(
|
|
17028
|
-
proofVersion || enabled || ready || supportsProofFeature || globalCount !== void 0 && globalCount > 0 || Array.isArray(globalNames) && globalNames.length > 0
|
|
17045
|
+
proofVersion || enabled || ready || supportsProofFeature || autopilotActive || runtimeMetricPresent || runtimeMetricMeasured || globalCount !== void 0 && globalCount > 0 || Array.isArray(globalNames) && globalNames.length > 0
|
|
17029
17046
|
);
|
|
17030
17047
|
});
|
|
17031
17048
|
}
|
|
@@ -17349,7 +17366,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17349
17366
|
"tap_until receipt missing"
|
|
17350
17367
|
);
|
|
17351
17368
|
}
|
|
17352
|
-
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state") || text.includes("proof globals") || text.includes("playability state"))) {
|
|
17369
|
+
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state") || text.includes("proof globals") || text.includes("playability state") || text.includes("runtime metric") || text.includes("runtime metrics") || text.includes("route metric") || text.includes("route metrics"))) {
|
|
17353
17370
|
return profileReceiptSignalStatus(
|
|
17354
17371
|
hasActiveRouteLocalProofReceipt,
|
|
17355
17372
|
"active route-local proof receipt present",
|
package/dist/cli.js
CHANGED
|
@@ -849,8 +849,25 @@ function profileHasActiveRouteLocalProofReceipt(receipts) {
|
|
|
849
849
|
const enabled = setupReturnSummaryValue(receipt, ["enabled", "proofEnabled", "proof_enabled"]) === true;
|
|
850
850
|
const ready = setupReturnSummaryValue(receipt, ["ready", "proofReady", "proof_ready"]) === true;
|
|
851
851
|
const supportsProofFeature = setupReturnSummaryValue(receipt, ["supportsOfflineAudio", "supportsProof", "proofSupported"]) === true;
|
|
852
|
+
const autopilotActive = setupReturnSummaryValue(receipt, ["autopilot", "autopilotEnabled", "autopilot_enabled"]) === true;
|
|
853
|
+
const runtimeMetricPresent = [
|
|
854
|
+
"metricsPresent",
|
|
855
|
+
"frameMetricsPresent",
|
|
856
|
+
"runtimeMetricsPresent",
|
|
857
|
+
"routeMetricsPresent"
|
|
858
|
+
].some((name) => setupReturnSummaryValue(receipt, [name]) === true);
|
|
859
|
+
const runtimeMetricMeasured = [
|
|
860
|
+
"heightPx",
|
|
861
|
+
"centerPx",
|
|
862
|
+
"targetHeight",
|
|
863
|
+
"frameCount",
|
|
864
|
+
"elapsedMs",
|
|
865
|
+
"distance",
|
|
866
|
+
"speed",
|
|
867
|
+
"velocity"
|
|
868
|
+
].some((name) => cliFiniteNumber(setupReturnSummaryValue(receipt, [name])) !== void 0);
|
|
852
869
|
return Boolean(
|
|
853
|
-
proofVersion || enabled || ready || supportsProofFeature || globalCount !== void 0 && globalCount > 0 || Array.isArray(globalNames) && globalNames.length > 0
|
|
870
|
+
proofVersion || enabled || ready || supportsProofFeature || autopilotActive || runtimeMetricPresent || runtimeMetricMeasured || globalCount !== void 0 && globalCount > 0 || Array.isArray(globalNames) && globalNames.length > 0
|
|
854
871
|
);
|
|
855
872
|
});
|
|
856
873
|
}
|
|
@@ -1174,7 +1191,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1174
1191
|
"tap_until receipt missing"
|
|
1175
1192
|
);
|
|
1176
1193
|
}
|
|
1177
|
-
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state") || text.includes("proof globals") || text.includes("playability state"))) {
|
|
1194
|
+
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state") || text.includes("proof globals") || text.includes("playability state") || text.includes("runtime metric") || text.includes("runtime metrics") || text.includes("route metric") || text.includes("route metrics"))) {
|
|
1178
1195
|
return profileReceiptSignalStatus(
|
|
1179
1196
|
hasActiveRouteLocalProofReceipt,
|
|
1180
1197
|
"active route-local proof receipt present",
|