@riddledc/riddle-proof 0.7.206 → 0.7.207
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 -0
- package/dist/cli.js +25 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -17041,6 +17041,23 @@ function profileHasTerminalLossReceipt(receipts) {
|
|
|
17041
17041
|
return lastFlightLost || outOfBounds || ["over", "lost", "loss", "failed", "failure", "game_over", "gameover"].includes(status) || ["lost", "loss", "failed", "failure", "game_over", "gameover"].includes(outcome);
|
|
17042
17042
|
});
|
|
17043
17043
|
}
|
|
17044
|
+
function profileHasTerminalGameOverReceipt(receipts) {
|
|
17045
|
+
return receipts.some((receipt) => {
|
|
17046
|
+
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
17047
|
+
const outcome = profileLowerSummaryValue(receipt, ["lastOutcome", "outcome", "terminalOutcome", "terminal", "result"]);
|
|
17048
|
+
const gameOver = setupReturnSummaryValue(receipt, ["gameOver", "game_over", "isGameOver"]) === true;
|
|
17049
|
+
const caught = setupReturnSummaryValue(receipt, ["caught", "playerCaught", "wasCaught"]) === true;
|
|
17050
|
+
const storedTo = cliString(receipt.return_stored_to) || "";
|
|
17051
|
+
const label = cliString(receipt.label) || "";
|
|
17052
|
+
const path7 = cliString(receipt.path) || cliString(receipt.function_name) || "";
|
|
17053
|
+
const slot = cliString(setupReturnSummaryValue(receipt, ["slot"])) || "";
|
|
17054
|
+
const haystack = `${storedTo} ${label} ${path7} ${slot}`.toLowerCase();
|
|
17055
|
+
const labelsTerminal = haystack.includes("gameover") || haystack.includes("game_over") || haystack.includes("game-over") || haystack.includes("game over") || haystack.includes("terminal") || haystack.includes("caught") || haystack.includes("catch");
|
|
17056
|
+
const terminalStatus = ["over", "game_over", "gameover"].includes(status) || ["game_over", "gameover"].includes(outcome);
|
|
17057
|
+
if (!labelsTerminal && !caught && !gameOver && !terminalStatus) return false;
|
|
17058
|
+
return gameOver || caught || terminalStatus;
|
|
17059
|
+
});
|
|
17060
|
+
}
|
|
17044
17061
|
function profileHasTerminalSuccessReceipt(receipts) {
|
|
17045
17062
|
return receipts.some((receipt) => {
|
|
17046
17063
|
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
@@ -17225,6 +17242,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17225
17242
|
const hasOfflineAudioMetricsReceipt = profileHasOfflineAudioMetricsReceipt(valueReceipts);
|
|
17226
17243
|
const hasActiveRouteLocalProofReceipt = profileHasActiveRouteLocalProofReceipt(valueReceipts);
|
|
17227
17244
|
const hasTerminalLossReceipt = profileHasTerminalLossReceipt(valueReceipts);
|
|
17245
|
+
const hasTerminalGameOverReceipt = profileHasTerminalGameOverReceipt(valueReceipts);
|
|
17228
17246
|
const hasTerminalSuccessReceipt = profileHasTerminalSuccessReceipt(valueReceipts);
|
|
17229
17247
|
const hasControlledFailureLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "failure");
|
|
17230
17248
|
const hasControlledSuccessLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "success");
|
|
@@ -17313,6 +17331,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
17313
17331
|
"terminal loss receipt missing"
|
|
17314
17332
|
);
|
|
17315
17333
|
}
|
|
17334
|
+
if (text.includes("terminal") && (text.includes("game-over") || text.includes("game over") || text.includes("gameover") || text.includes("caught") || text.includes("catch"))) {
|
|
17335
|
+
return profileReceiptSignalStatus(
|
|
17336
|
+
hasTerminalGameOverReceipt,
|
|
17337
|
+
"terminal game-over receipt present",
|
|
17338
|
+
"terminal game-over receipt missing"
|
|
17339
|
+
);
|
|
17340
|
+
}
|
|
17316
17341
|
if (text.includes("success") && text.includes("terminal")) {
|
|
17317
17342
|
return profileReceiptSignalStatus(
|
|
17318
17343
|
hasTerminalSuccessReceipt,
|
package/dist/cli.js
CHANGED
|
@@ -866,6 +866,23 @@ function profileHasTerminalLossReceipt(receipts) {
|
|
|
866
866
|
return lastFlightLost || outOfBounds || ["over", "lost", "loss", "failed", "failure", "game_over", "gameover"].includes(status) || ["lost", "loss", "failed", "failure", "game_over", "gameover"].includes(outcome);
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
+
function profileHasTerminalGameOverReceipt(receipts) {
|
|
870
|
+
return receipts.some((receipt) => {
|
|
871
|
+
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
872
|
+
const outcome = profileLowerSummaryValue(receipt, ["lastOutcome", "outcome", "terminalOutcome", "terminal", "result"]);
|
|
873
|
+
const gameOver = setupReturnSummaryValue(receipt, ["gameOver", "game_over", "isGameOver"]) === true;
|
|
874
|
+
const caught = setupReturnSummaryValue(receipt, ["caught", "playerCaught", "wasCaught"]) === true;
|
|
875
|
+
const storedTo = cliString(receipt.return_stored_to) || "";
|
|
876
|
+
const label = cliString(receipt.label) || "";
|
|
877
|
+
const path2 = cliString(receipt.path) || cliString(receipt.function_name) || "";
|
|
878
|
+
const slot = cliString(setupReturnSummaryValue(receipt, ["slot"])) || "";
|
|
879
|
+
const haystack = `${storedTo} ${label} ${path2} ${slot}`.toLowerCase();
|
|
880
|
+
const labelsTerminal = haystack.includes("gameover") || haystack.includes("game_over") || haystack.includes("game-over") || haystack.includes("game over") || haystack.includes("terminal") || haystack.includes("caught") || haystack.includes("catch");
|
|
881
|
+
const terminalStatus = ["over", "game_over", "gameover"].includes(status) || ["game_over", "gameover"].includes(outcome);
|
|
882
|
+
if (!labelsTerminal && !caught && !gameOver && !terminalStatus) return false;
|
|
883
|
+
return gameOver || caught || terminalStatus;
|
|
884
|
+
});
|
|
885
|
+
}
|
|
869
886
|
function profileHasTerminalSuccessReceipt(receipts) {
|
|
870
887
|
return receipts.some((receipt) => {
|
|
871
888
|
const status = profileLowerSummaryValue(receipt, ["status", "state", "phase"]);
|
|
@@ -1050,6 +1067,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1050
1067
|
const hasOfflineAudioMetricsReceipt = profileHasOfflineAudioMetricsReceipt(valueReceipts);
|
|
1051
1068
|
const hasActiveRouteLocalProofReceipt = profileHasActiveRouteLocalProofReceipt(valueReceipts);
|
|
1052
1069
|
const hasTerminalLossReceipt = profileHasTerminalLossReceipt(valueReceipts);
|
|
1070
|
+
const hasTerminalGameOverReceipt = profileHasTerminalGameOverReceipt(valueReceipts);
|
|
1053
1071
|
const hasTerminalSuccessReceipt = profileHasTerminalSuccessReceipt(valueReceipts);
|
|
1054
1072
|
const hasControlledFailureLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "failure");
|
|
1055
1073
|
const hasControlledSuccessLaunchReceipt = profileHasControlledLaunchReceipt(valueReceipts, "success");
|
|
@@ -1138,6 +1156,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
1138
1156
|
"terminal loss receipt missing"
|
|
1139
1157
|
);
|
|
1140
1158
|
}
|
|
1159
|
+
if (text.includes("terminal") && (text.includes("game-over") || text.includes("game over") || text.includes("gameover") || text.includes("caught") || text.includes("catch"))) {
|
|
1160
|
+
return profileReceiptSignalStatus(
|
|
1161
|
+
hasTerminalGameOverReceipt,
|
|
1162
|
+
"terminal game-over receipt present",
|
|
1163
|
+
"terminal game-over receipt missing"
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1141
1166
|
if (text.includes("success") && text.includes("terminal")) {
|
|
1142
1167
|
return profileReceiptSignalStatus(
|
|
1143
1168
|
hasTerminalSuccessReceipt,
|