@riddledc/riddle-proof 0.7.205 → 0.7.206
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 +25 -1
- package/dist/cli.js +25 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -17206,6 +17206,20 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17206
17206
|
const hasTextVisibility = profileHasPassedCheck(result, ["text_visible", "selector_text_visible", "selector_visible"]);
|
|
17207
17207
|
const hasTextAbsence = profileHasPassedCheck(result, ["text_absent", "selector_text_absent"]);
|
|
17208
17208
|
const hasMeasuredStateChange = hasNaturalInput || hasCanvasChange || valueReceipts.some((item) => setupReturnSummaryValue(item, ["changed"]) === true || setupReturnSummaryValue(item, ["nonWhiteDelta", "darkDelta", "pixelDelta", "movementDelta"]) !== void 0);
|
|
17209
|
+
const hasMovingPlayabilityReceipt = valueReceipts.some((item) => {
|
|
17210
|
+
const started = setupReturnSummaryValue(item, ["started", "runStarted", "playStarted"]) === true;
|
|
17211
|
+
const distance = cliFiniteNumber(setupReturnSummaryValue(item, ["distance", "distanceMeters", "travelDistance"]));
|
|
17212
|
+
const speed = cliFiniteNumber(setupReturnSummaryValue(item, ["speed", "velocity"]));
|
|
17213
|
+
return started && (distance !== void 0 && distance > 0 || speed !== void 0 && speed > 0);
|
|
17214
|
+
});
|
|
17215
|
+
const hasAcceptedPlayabilityInputReceipt = valueReceipts.some((item) => {
|
|
17216
|
+
const accepted = setupReturnSummaryValue(item, ["acceptedInput", "inputAccepted", "steeringAccepted", "touchInputAccepted"]) === true;
|
|
17217
|
+
const inputModality = (cliString(setupReturnSummaryValue(item, ["inputModality", "inputKind", "pointerType", "modality"])) || "").toLowerCase();
|
|
17218
|
+
const distance = cliFiniteNumber(setupReturnSummaryValue(item, ["distance", "distanceMeters", "travelDistance"]));
|
|
17219
|
+
const speed = cliFiniteNumber(setupReturnSummaryValue(item, ["speed", "velocity"]));
|
|
17220
|
+
const moving = distance !== void 0 && distance > 0 || speed !== void 0 && speed > 0;
|
|
17221
|
+
return accepted && Boolean(inputModality) && inputModality !== "none" && moving;
|
|
17222
|
+
});
|
|
17209
17223
|
const hasRouteExitAffordanceReceipt = profileHasRouteExitAffordanceReceipt(valueReceipts);
|
|
17210
17224
|
const hasCleanupBoundaryAffordanceReceipt = profileHasCleanupBoundaryAffordanceReceipt(valueReceipts);
|
|
17211
17225
|
const hasOfflineAudioMetricsReceipt = profileHasOfflineAudioMetricsReceipt(valueReceipts);
|
|
@@ -17251,7 +17265,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17251
17265
|
"tap_until receipt missing"
|
|
17252
17266
|
);
|
|
17253
17267
|
}
|
|
17254
|
-
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state"))) {
|
|
17268
|
+
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"))) {
|
|
17255
17269
|
return profileReceiptSignalStatus(
|
|
17256
17270
|
hasActiveRouteLocalProofReceipt,
|
|
17257
17271
|
"active route-local proof receipt present",
|
|
@@ -17418,6 +17432,16 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17418
17432
|
needsBoundaryScreenshots ? "multiple screenshots missing" : "screenshot evidence missing"
|
|
17419
17433
|
);
|
|
17420
17434
|
}
|
|
17435
|
+
if (text.includes("input") && (text.includes("playability") || text.includes("moving") || text.includes("steering") || text.includes("real") || text.includes("natural"))) {
|
|
17436
|
+
const needsAcceptedInput = text.includes("steering") || text.includes("accepted");
|
|
17437
|
+
const hasInputDispatch = inputDispatchCount > 0 || hasNaturalInput;
|
|
17438
|
+
const hasInputStateReceipt = needsAcceptedInput ? hasAcceptedPlayabilityInputReceipt : hasAcceptedPlayabilityInputReceipt || hasMovingPlayabilityReceipt;
|
|
17439
|
+
return profileReceiptSignalStatus(
|
|
17440
|
+
hasInputDispatch && hasInputStateReceipt,
|
|
17441
|
+
needsAcceptedInput ? "accepted playability input receipt present" : "playability input receipt present",
|
|
17442
|
+
needsAcceptedInput ? "accepted playability input receipt missing" : "playability input receipt missing"
|
|
17443
|
+
);
|
|
17444
|
+
}
|
|
17421
17445
|
if (text.includes("input dispatch") || text.includes("pointer") || text.includes("touch") || text.includes("key event") || text.includes("trusted-event")) {
|
|
17422
17446
|
return profileReceiptSignalStatus(inputDispatchCount > 0 || hasNaturalInput, "input dispatch evidence present", "input dispatch evidence missing");
|
|
17423
17447
|
}
|
package/dist/cli.js
CHANGED
|
@@ -1031,6 +1031,20 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1031
1031
|
const hasTextVisibility = profileHasPassedCheck(result, ["text_visible", "selector_text_visible", "selector_visible"]);
|
|
1032
1032
|
const hasTextAbsence = profileHasPassedCheck(result, ["text_absent", "selector_text_absent"]);
|
|
1033
1033
|
const hasMeasuredStateChange = hasNaturalInput || hasCanvasChange || valueReceipts.some((item) => setupReturnSummaryValue(item, ["changed"]) === true || setupReturnSummaryValue(item, ["nonWhiteDelta", "darkDelta", "pixelDelta", "movementDelta"]) !== void 0);
|
|
1034
|
+
const hasMovingPlayabilityReceipt = valueReceipts.some((item) => {
|
|
1035
|
+
const started = setupReturnSummaryValue(item, ["started", "runStarted", "playStarted"]) === true;
|
|
1036
|
+
const distance = cliFiniteNumber(setupReturnSummaryValue(item, ["distance", "distanceMeters", "travelDistance"]));
|
|
1037
|
+
const speed = cliFiniteNumber(setupReturnSummaryValue(item, ["speed", "velocity"]));
|
|
1038
|
+
return started && (distance !== void 0 && distance > 0 || speed !== void 0 && speed > 0);
|
|
1039
|
+
});
|
|
1040
|
+
const hasAcceptedPlayabilityInputReceipt = valueReceipts.some((item) => {
|
|
1041
|
+
const accepted = setupReturnSummaryValue(item, ["acceptedInput", "inputAccepted", "steeringAccepted", "touchInputAccepted"]) === true;
|
|
1042
|
+
const inputModality = (cliString(setupReturnSummaryValue(item, ["inputModality", "inputKind", "pointerType", "modality"])) || "").toLowerCase();
|
|
1043
|
+
const distance = cliFiniteNumber(setupReturnSummaryValue(item, ["distance", "distanceMeters", "travelDistance"]));
|
|
1044
|
+
const speed = cliFiniteNumber(setupReturnSummaryValue(item, ["speed", "velocity"]));
|
|
1045
|
+
const moving = distance !== void 0 && distance > 0 || speed !== void 0 && speed > 0;
|
|
1046
|
+
return accepted && Boolean(inputModality) && inputModality !== "none" && moving;
|
|
1047
|
+
});
|
|
1034
1048
|
const hasRouteExitAffordanceReceipt = profileHasRouteExitAffordanceReceipt(valueReceipts);
|
|
1035
1049
|
const hasCleanupBoundaryAffordanceReceipt = profileHasCleanupBoundaryAffordanceReceipt(valueReceipts);
|
|
1036
1050
|
const hasOfflineAudioMetricsReceipt = profileHasOfflineAudioMetricsReceipt(valueReceipts);
|
|
@@ -1076,7 +1090,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1076
1090
|
"tap_until receipt missing"
|
|
1077
1091
|
);
|
|
1078
1092
|
}
|
|
1079
|
-
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state"))) {
|
|
1093
|
+
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"))) {
|
|
1080
1094
|
return profileReceiptSignalStatus(
|
|
1081
1095
|
hasActiveRouteLocalProofReceipt,
|
|
1082
1096
|
"active route-local proof receipt present",
|
|
@@ -1243,6 +1257,16 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1243
1257
|
needsBoundaryScreenshots ? "multiple screenshots missing" : "screenshot evidence missing"
|
|
1244
1258
|
);
|
|
1245
1259
|
}
|
|
1260
|
+
if (text.includes("input") && (text.includes("playability") || text.includes("moving") || text.includes("steering") || text.includes("real") || text.includes("natural"))) {
|
|
1261
|
+
const needsAcceptedInput = text.includes("steering") || text.includes("accepted");
|
|
1262
|
+
const hasInputDispatch = inputDispatchCount > 0 || hasNaturalInput;
|
|
1263
|
+
const hasInputStateReceipt = needsAcceptedInput ? hasAcceptedPlayabilityInputReceipt : hasAcceptedPlayabilityInputReceipt || hasMovingPlayabilityReceipt;
|
|
1264
|
+
return profileReceiptSignalStatus(
|
|
1265
|
+
hasInputDispatch && hasInputStateReceipt,
|
|
1266
|
+
needsAcceptedInput ? "accepted playability input receipt present" : "playability input receipt present",
|
|
1267
|
+
needsAcceptedInput ? "accepted playability input receipt missing" : "playability input receipt missing"
|
|
1268
|
+
);
|
|
1269
|
+
}
|
|
1246
1270
|
if (text.includes("input dispatch") || text.includes("pointer") || text.includes("touch") || text.includes("key event") || text.includes("trusted-event")) {
|
|
1247
1271
|
return profileReceiptSignalStatus(inputDispatchCount > 0 || hasNaturalInput, "input dispatch evidence present", "input dispatch evidence missing");
|
|
1248
1272
|
}
|