@riddledc/riddle-proof 0.7.220 → 0.7.221
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 +7 -3
- package/dist/cli.js +7 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -17432,15 +17432,19 @@ function profileHasRestartReadyReceipt(receipts) {
|
|
|
17432
17432
|
const statusText = profileLowerSummaryValue(receipt, ["statusText", "status", "message"]);
|
|
17433
17433
|
const summary = cliReturnSummaryLabel(receipt.return_summary) || "";
|
|
17434
17434
|
const haystack = `${storedTo} ${label} ${path7} ${slot} ${statusText} ${summary}`.toLowerCase();
|
|
17435
|
-
const labelsRestart = haystack.includes("restart") || haystack.includes("play again") || haystack.includes("play-again") || haystack.includes("playagain") || haystack.includes("retry");
|
|
17435
|
+
const labelsRestart = haystack.includes("restart") || haystack.includes("reset") || haystack.includes("reset-ready") || haystack.includes("reset ready") || haystack.includes("play again") || haystack.includes("play-again") || haystack.includes("playagain") || haystack.includes("retry");
|
|
17436
17436
|
if (!labelsRestart) return false;
|
|
17437
17437
|
const ok = receipt.ok !== false && setupReturnSummaryValue(receipt, ["ok"]) !== false;
|
|
17438
17438
|
const controlsEnabled = setupReturnSummaryValue(receipt, ["controlsEnabled", "inputControlsEnabled", "inputEnabled", "canInput"]) === true || setupReturnSummaryValue(receipt, ["shortDisabled"]) === false && setupReturnSummaryValue(receipt, ["longDisabled"]) === false;
|
|
17439
17439
|
const level = cliFiniteNumber(setupReturnSummaryValue(receipt, ["level"]));
|
|
17440
17440
|
const streak = cliFiniteNumber(setupReturnSummaryValue(receipt, ["streak"]));
|
|
17441
17441
|
const best = cliFiniteNumber(setupReturnSummaryValue(receipt, ["best"]));
|
|
17442
|
-
const readyState = statusText.includes("your turn") || statusText.includes("ready") || setupReturnSummaryValue(receipt, ["ready", "restartReady", "restart_ready"]) === true;
|
|
17443
|
-
|
|
17442
|
+
const readyState = statusText.includes("your turn") || statusText.includes("ready") || setupReturnSummaryValue(receipt, ["ready", "restartReady", "restart_ready", "resetReady", "reset_ready"]) === true;
|
|
17443
|
+
const hiddenCount = cliFiniteNumber(setupReturnSummaryValue(receipt, ["hiddenCount", "hidden_count"]));
|
|
17444
|
+
const moves = cliFiniteNumber(setupReturnSummaryValue(receipt, ["moves", "moveCount", "move_count"]));
|
|
17445
|
+
const winner = setupReturnSummaryValue(receipt, ["hasWinner", "winner", "won", "gameWon"]);
|
|
17446
|
+
const resetBoardReady = hiddenCount !== void 0 && hiddenCount > 0 && moves === 0 && winner === false;
|
|
17447
|
+
return ok && controlsEnabled && (readyState || resetBoardReady || level !== void 0 || streak !== void 0 || best !== void 0);
|
|
17444
17448
|
});
|
|
17445
17449
|
}
|
|
17446
17450
|
function profileMetadataHasGeneratedOutputContract(metadata) {
|
package/dist/cli.js
CHANGED
|
@@ -1141,15 +1141,19 @@ function profileHasRestartReadyReceipt(receipts) {
|
|
|
1141
1141
|
const statusText = profileLowerSummaryValue(receipt, ["statusText", "status", "message"]);
|
|
1142
1142
|
const summary = cliReturnSummaryLabel(receipt.return_summary) || "";
|
|
1143
1143
|
const haystack = `${storedTo} ${label} ${path2} ${slot} ${statusText} ${summary}`.toLowerCase();
|
|
1144
|
-
const labelsRestart = haystack.includes("restart") || haystack.includes("play again") || haystack.includes("play-again") || haystack.includes("playagain") || haystack.includes("retry");
|
|
1144
|
+
const labelsRestart = haystack.includes("restart") || haystack.includes("reset") || haystack.includes("reset-ready") || haystack.includes("reset ready") || haystack.includes("play again") || haystack.includes("play-again") || haystack.includes("playagain") || haystack.includes("retry");
|
|
1145
1145
|
if (!labelsRestart) return false;
|
|
1146
1146
|
const ok = receipt.ok !== false && setupReturnSummaryValue(receipt, ["ok"]) !== false;
|
|
1147
1147
|
const controlsEnabled = setupReturnSummaryValue(receipt, ["controlsEnabled", "inputControlsEnabled", "inputEnabled", "canInput"]) === true || setupReturnSummaryValue(receipt, ["shortDisabled"]) === false && setupReturnSummaryValue(receipt, ["longDisabled"]) === false;
|
|
1148
1148
|
const level = cliFiniteNumber(setupReturnSummaryValue(receipt, ["level"]));
|
|
1149
1149
|
const streak = cliFiniteNumber(setupReturnSummaryValue(receipt, ["streak"]));
|
|
1150
1150
|
const best = cliFiniteNumber(setupReturnSummaryValue(receipt, ["best"]));
|
|
1151
|
-
const readyState = statusText.includes("your turn") || statusText.includes("ready") || setupReturnSummaryValue(receipt, ["ready", "restartReady", "restart_ready"]) === true;
|
|
1152
|
-
|
|
1151
|
+
const readyState = statusText.includes("your turn") || statusText.includes("ready") || setupReturnSummaryValue(receipt, ["ready", "restartReady", "restart_ready", "resetReady", "reset_ready"]) === true;
|
|
1152
|
+
const hiddenCount = cliFiniteNumber(setupReturnSummaryValue(receipt, ["hiddenCount", "hidden_count"]));
|
|
1153
|
+
const moves = cliFiniteNumber(setupReturnSummaryValue(receipt, ["moves", "moveCount", "move_count"]));
|
|
1154
|
+
const winner = setupReturnSummaryValue(receipt, ["hasWinner", "winner", "won", "gameWon"]);
|
|
1155
|
+
const resetBoardReady = hiddenCount !== void 0 && hiddenCount > 0 && moves === 0 && winner === false;
|
|
1156
|
+
return ok && controlsEnabled && (readyState || resetBoardReady || level !== void 0 || streak !== void 0 || best !== void 0);
|
|
1153
1157
|
});
|
|
1154
1158
|
}
|
|
1155
1159
|
function profileMetadataHasGeneratedOutputContract(metadata) {
|