@riddledc/riddle-proof 0.7.189 → 0.7.190
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 +26 -0
- package/dist/cli.js +26 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -16468,6 +16468,24 @@ function profileHasControlledLaunchReceipt(receipts, expected) {
|
|
|
16468
16468
|
return ["failure", "failed", "miss", "lost", "loss"].includes(shotKind) || ["failure", "failed", "miss", "lost", "loss"].includes(shotStatus) || ["failure", "failed", "miss", "lost", "loss"].includes(outcome);
|
|
16469
16469
|
});
|
|
16470
16470
|
}
|
|
16471
|
+
function profileHasRecoveredStateReceipt(receipts) {
|
|
16472
|
+
return receipts.some((receipt) => {
|
|
16473
|
+
const storedTo = cliString(receipt.return_stored_to) || "";
|
|
16474
|
+
const label = cliString(receipt.label) || "";
|
|
16475
|
+
const path7 = cliString(receipt.path) || cliString(receipt.function_name) || "";
|
|
16476
|
+
const summary = cliReturnSummaryLabel(receipt.return_summary) || "";
|
|
16477
|
+
const haystack = `${storedTo} ${label} ${path7} ${summary}`.toLowerCase();
|
|
16478
|
+
const labelsRecovery = haystack.includes("recover") || haystack.includes("repaired") || haystack.includes("repair") || haystack.includes("try fix") || haystack.includes("tryfix") || haystack.includes("after-fix") || haystack.includes("fixed");
|
|
16479
|
+
if (!labelsRecovery) return false;
|
|
16480
|
+
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
16481
|
+
const outcome = profileLowerSummaryValue(receipt, ["lastOutcome", "outcome", "result"]);
|
|
16482
|
+
const hasRecoveredState = ["valid", "success", "recovered", "fixed", "ready"].includes(status) || ["valid", "success", "recovered", "fixed", "ready"].includes(outcome);
|
|
16483
|
+
const hasValid = setupReturnSummaryValue(receipt, ["hasValid", "valid", "isValid"]) === true;
|
|
16484
|
+
const hasInvalid = setupReturnSummaryValue(receipt, ["hasInvalid", "invalid", "isInvalid"]);
|
|
16485
|
+
const success = setupReturnSummaryValue(receipt, ["success", "recovered", "fixed"]) === true;
|
|
16486
|
+
return hasRecoveredState || success || hasValid && hasInvalid === false;
|
|
16487
|
+
});
|
|
16488
|
+
}
|
|
16471
16489
|
function profilePackReceiptStatus(result, metadata, receipt) {
|
|
16472
16490
|
const text = receipt.toLowerCase();
|
|
16473
16491
|
const setupSummary = profileSetupSummaryRecord(result);
|
|
@@ -16523,6 +16541,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16523
16541
|
const hasTerminalLossReceipt = profileHasTerminalLossReceipt(valueReceipts);
|
|
16524
16542
|
const hasControlledFailureLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "failure");
|
|
16525
16543
|
const hasControlledSuccessLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "success");
|
|
16544
|
+
const hasRecoveredStateReceipt = profileHasRecoveredStateReceipt(valueReceipts);
|
|
16526
16545
|
const failedCleanupInventoryReason = profileFailedCleanupInventoryReason(setupViewports);
|
|
16527
16546
|
if (text.includes("artifact link") || text.includes("artifact path")) {
|
|
16528
16547
|
return profileReceiptSignalStatus(profileResultHasArtifact(result), "artifact references listed", "no artifact references found");
|
|
@@ -16589,6 +16608,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16589
16608
|
"controlled success launch receipt missing"
|
|
16590
16609
|
);
|
|
16591
16610
|
}
|
|
16611
|
+
if (text.includes("recovery action") || text.includes("recover action") || text.includes("try fix") || (text.includes("retry") || text.includes("repair")) && text.includes("action")) {
|
|
16612
|
+
return profileReceiptSignalStatus(
|
|
16613
|
+
visibleUiActionCount > 0 && hasRecoveredStateReceipt,
|
|
16614
|
+
"visible recovery-action receipt present",
|
|
16615
|
+
"visible recovery-action receipt missing"
|
|
16616
|
+
);
|
|
16617
|
+
}
|
|
16592
16618
|
if (text.includes("through visible ui") || text.includes("visible ui action") || text.includes("ui-routed") || text.includes("ui routed") || text.includes("visible") && text.includes("route") && text.includes("exit") && text.includes("action") || text.includes("visible") && text.includes("mode") && text.includes("exit") && text.includes("action")) {
|
|
16593
16619
|
return profileReceiptSignalStatus(
|
|
16594
16620
|
visibleUiActionCount > 0,
|
package/dist/cli.js
CHANGED
|
@@ -673,6 +673,24 @@ function profileHasControlledLaunchReceipt(receipts, expected) {
|
|
|
673
673
|
return ["failure", "failed", "miss", "lost", "loss"].includes(shotKind) || ["failure", "failed", "miss", "lost", "loss"].includes(shotStatus) || ["failure", "failed", "miss", "lost", "loss"].includes(outcome);
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
+
function profileHasRecoveredStateReceipt(receipts) {
|
|
677
|
+
return receipts.some((receipt) => {
|
|
678
|
+
const storedTo = cliString(receipt.return_stored_to) || "";
|
|
679
|
+
const label = cliString(receipt.label) || "";
|
|
680
|
+
const path2 = cliString(receipt.path) || cliString(receipt.function_name) || "";
|
|
681
|
+
const summary = cliReturnSummaryLabel(receipt.return_summary) || "";
|
|
682
|
+
const haystack = `${storedTo} ${label} ${path2} ${summary}`.toLowerCase();
|
|
683
|
+
const labelsRecovery = haystack.includes("recover") || haystack.includes("repaired") || haystack.includes("repair") || haystack.includes("try fix") || haystack.includes("tryfix") || haystack.includes("after-fix") || haystack.includes("fixed");
|
|
684
|
+
if (!labelsRecovery) return false;
|
|
685
|
+
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
686
|
+
const outcome = profileLowerSummaryValue(receipt, ["lastOutcome", "outcome", "result"]);
|
|
687
|
+
const hasRecoveredState = ["valid", "success", "recovered", "fixed", "ready"].includes(status) || ["valid", "success", "recovered", "fixed", "ready"].includes(outcome);
|
|
688
|
+
const hasValid = setupReturnSummaryValue(receipt, ["hasValid", "valid", "isValid"]) === true;
|
|
689
|
+
const hasInvalid = setupReturnSummaryValue(receipt, ["hasInvalid", "invalid", "isInvalid"]);
|
|
690
|
+
const success = setupReturnSummaryValue(receipt, ["success", "recovered", "fixed"]) === true;
|
|
691
|
+
return hasRecoveredState || success || hasValid && hasInvalid === false;
|
|
692
|
+
});
|
|
693
|
+
}
|
|
676
694
|
function profilePackReceiptStatus(result, metadata, receipt) {
|
|
677
695
|
const text = receipt.toLowerCase();
|
|
678
696
|
const setupSummary = profileSetupSummaryRecord(result);
|
|
@@ -728,6 +746,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
728
746
|
const hasTerminalLossReceipt = profileHasTerminalLossReceipt(valueReceipts);
|
|
729
747
|
const hasControlledFailureLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "failure");
|
|
730
748
|
const hasControlledSuccessLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "success");
|
|
749
|
+
const hasRecoveredStateReceipt = profileHasRecoveredStateReceipt(valueReceipts);
|
|
731
750
|
const failedCleanupInventoryReason = profileFailedCleanupInventoryReason(setupViewports);
|
|
732
751
|
if (text.includes("artifact link") || text.includes("artifact path")) {
|
|
733
752
|
return profileReceiptSignalStatus(profileResultHasArtifact(result), "artifact references listed", "no artifact references found");
|
|
@@ -794,6 +813,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
794
813
|
"controlled success launch receipt missing"
|
|
795
814
|
);
|
|
796
815
|
}
|
|
816
|
+
if (text.includes("recovery action") || text.includes("recover action") || text.includes("try fix") || (text.includes("retry") || text.includes("repair")) && text.includes("action")) {
|
|
817
|
+
return profileReceiptSignalStatus(
|
|
818
|
+
visibleUiActionCount > 0 && hasRecoveredStateReceipt,
|
|
819
|
+
"visible recovery-action receipt present",
|
|
820
|
+
"visible recovery-action receipt missing"
|
|
821
|
+
);
|
|
822
|
+
}
|
|
797
823
|
if (text.includes("through visible ui") || text.includes("visible ui action") || text.includes("ui-routed") || text.includes("ui routed") || text.includes("visible") && text.includes("route") && text.includes("exit") && text.includes("action") || text.includes("visible") && text.includes("mode") && text.includes("exit") && text.includes("action")) {
|
|
798
824
|
return profileReceiptSignalStatus(
|
|
799
825
|
visibleUiActionCount > 0,
|