@riddledc/riddle-proof 0.7.13 → 0.7.14
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/basic-gameplay.cjs +8 -0
- package/dist/basic-gameplay.d.cts +1 -1
- package/dist/basic-gameplay.d.ts +1 -1
- package/dist/basic-gameplay.js +1 -1
- package/dist/{chunk-I5D7F46V.js → chunk-4KTD7CWM.js} +8 -0
- package/dist/index.cjs +8 -0
- package/dist/index.js +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
package/dist/basic-gameplay.cjs
CHANGED
|
@@ -63,6 +63,9 @@ var BASIC_GAMEPLAY_ACTION_TYPES = [
|
|
|
63
63
|
var BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES = [
|
|
64
64
|
"selector_count_increases",
|
|
65
65
|
"selector_count_at_least",
|
|
66
|
+
"selector_count_equals",
|
|
67
|
+
"selector_count_equal",
|
|
68
|
+
"selector_count_eq",
|
|
66
69
|
"selector_absent",
|
|
67
70
|
"selector_text_matches",
|
|
68
71
|
"number_increases",
|
|
@@ -246,6 +249,11 @@ function assessBasicGameplayProgressionCheck(check) {
|
|
|
246
249
|
if (numericValue(check.min) === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
247
250
|
ok = numberValue(after?.count) >= numberValue(check.min);
|
|
248
251
|
reason = ok ? null : "selector_count_below_min";
|
|
252
|
+
} else if (type === "selector_count_equals" || type === "selector_count_equal" || type === "selector_count_eq") {
|
|
253
|
+
const expected = numericValue(check.expected ?? check.count ?? check.value);
|
|
254
|
+
if (expected === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
255
|
+
ok = numericValue(after?.count) !== null && expected !== null && numberValue(after?.count) === expected;
|
|
256
|
+
reason = ok ? null : "selector_count_did_not_equal_expected";
|
|
249
257
|
} else if (type === "selector_absent") {
|
|
250
258
|
ok = !after?.present || numberValue(after?.count) === 0;
|
|
251
259
|
reason = ok ? null : "selector_still_present";
|
|
@@ -37,7 +37,7 @@ interface BasicGameplayActionResult {
|
|
|
37
37
|
[key: string]: unknown;
|
|
38
38
|
}
|
|
39
39
|
declare const BASIC_GAMEPLAY_ACTION_TYPES: readonly ["wait", "key", "key-down", "key-up", "hold-key", "repeat", "click", "click-by-text", "set-input-value", "canvas-click", "canvas-pointer-down", "canvas-pointer-move", "canvas-pointer-up", "wait-for-text", "window-call", "evaluate"];
|
|
40
|
-
declare const BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES: readonly ["selector_count_increases", "selector_count_at_least", "selector_absent", "selector_text_matches", "number_increases", "number_decreases", "number_at_least", "number_gte", "number_unchanged", "number_stays_equal", "number_equals", "canvas_hash_changes", "screenshot_hash_changes", "visual_hash_changes", "state_changes"];
|
|
40
|
+
declare const BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES: readonly ["selector_count_increases", "selector_count_at_least", "selector_count_equals", "selector_count_equal", "selector_count_eq", "selector_absent", "selector_text_matches", "number_increases", "number_decreases", "number_at_least", "number_gte", "number_unchanged", "number_stays_equal", "number_equals", "canvas_hash_changes", "screenshot_hash_changes", "visual_hash_changes", "state_changes"];
|
|
41
41
|
type BasicGameplayActionType = typeof BASIC_GAMEPLAY_ACTION_TYPES[number] | (string & {});
|
|
42
42
|
type BasicGameplayProgressCheckType = typeof BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES[number] | (string & {});
|
|
43
43
|
interface BasicGameplayMetric {
|
package/dist/basic-gameplay.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface BasicGameplayActionResult {
|
|
|
37
37
|
[key: string]: unknown;
|
|
38
38
|
}
|
|
39
39
|
declare const BASIC_GAMEPLAY_ACTION_TYPES: readonly ["wait", "key", "key-down", "key-up", "hold-key", "repeat", "click", "click-by-text", "set-input-value", "canvas-click", "canvas-pointer-down", "canvas-pointer-move", "canvas-pointer-up", "wait-for-text", "window-call", "evaluate"];
|
|
40
|
-
declare const BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES: readonly ["selector_count_increases", "selector_count_at_least", "selector_absent", "selector_text_matches", "number_increases", "number_decreases", "number_at_least", "number_gte", "number_unchanged", "number_stays_equal", "number_equals", "canvas_hash_changes", "screenshot_hash_changes", "visual_hash_changes", "state_changes"];
|
|
40
|
+
declare const BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES: readonly ["selector_count_increases", "selector_count_at_least", "selector_count_equals", "selector_count_equal", "selector_count_eq", "selector_absent", "selector_text_matches", "number_increases", "number_decreases", "number_at_least", "number_gte", "number_unchanged", "number_stays_equal", "number_equals", "canvas_hash_changes", "screenshot_hash_changes", "visual_hash_changes", "state_changes"];
|
|
41
41
|
type BasicGameplayActionType = typeof BASIC_GAMEPLAY_ACTION_TYPES[number] | (string & {});
|
|
42
42
|
type BasicGameplayProgressCheckType = typeof BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES[number] | (string & {});
|
|
43
43
|
interface BasicGameplayMetric {
|
package/dist/basic-gameplay.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
extractBasicGameplayEvidence,
|
|
17
17
|
resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
|
|
18
18
|
sanitizeBasicGameplayJsonString
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4KTD7CWM.js";
|
|
20
20
|
export {
|
|
21
21
|
BASIC_GAMEPLAY_ACTION_TYPES,
|
|
22
22
|
BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES,
|
|
@@ -23,6 +23,9 @@ var BASIC_GAMEPLAY_ACTION_TYPES = [
|
|
|
23
23
|
var BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES = [
|
|
24
24
|
"selector_count_increases",
|
|
25
25
|
"selector_count_at_least",
|
|
26
|
+
"selector_count_equals",
|
|
27
|
+
"selector_count_equal",
|
|
28
|
+
"selector_count_eq",
|
|
26
29
|
"selector_absent",
|
|
27
30
|
"selector_text_matches",
|
|
28
31
|
"number_increases",
|
|
@@ -206,6 +209,11 @@ function assessBasicGameplayProgressionCheck(check) {
|
|
|
206
209
|
if (numericValue(check.min) === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
207
210
|
ok = numberValue(after?.count) >= numberValue(check.min);
|
|
208
211
|
reason = ok ? null : "selector_count_below_min";
|
|
212
|
+
} else if (type === "selector_count_equals" || type === "selector_count_equal" || type === "selector_count_eq") {
|
|
213
|
+
const expected = numericValue(check.expected ?? check.count ?? check.value);
|
|
214
|
+
if (expected === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
215
|
+
ok = numericValue(after?.count) !== null && expected !== null && numberValue(after?.count) === expected;
|
|
216
|
+
reason = ok ? null : "selector_count_did_not_equal_expected";
|
|
209
217
|
} else if (type === "selector_absent") {
|
|
210
218
|
ok = !after?.present || numberValue(after?.count) === 0;
|
|
211
219
|
reason = ok ? null : "selector_still_present";
|
package/dist/index.cjs
CHANGED
|
@@ -7832,6 +7832,9 @@ var BASIC_GAMEPLAY_ACTION_TYPES = [
|
|
|
7832
7832
|
var BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES = [
|
|
7833
7833
|
"selector_count_increases",
|
|
7834
7834
|
"selector_count_at_least",
|
|
7835
|
+
"selector_count_equals",
|
|
7836
|
+
"selector_count_equal",
|
|
7837
|
+
"selector_count_eq",
|
|
7835
7838
|
"selector_absent",
|
|
7836
7839
|
"selector_text_matches",
|
|
7837
7840
|
"number_increases",
|
|
@@ -8015,6 +8018,11 @@ function assessBasicGameplayProgressionCheck(check) {
|
|
|
8015
8018
|
if (numericValue3(check.min) === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
8016
8019
|
ok = numberValue2(after?.count) >= numberValue2(check.min);
|
|
8017
8020
|
reason = ok ? null : "selector_count_below_min";
|
|
8021
|
+
} else if (type === "selector_count_equals" || type === "selector_count_equal" || type === "selector_count_eq") {
|
|
8022
|
+
const expected = numericValue3(check.expected ?? check.count ?? check.value);
|
|
8023
|
+
if (expected === null && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
|
|
8024
|
+
ok = numericValue3(after?.count) !== null && expected !== null && numberValue2(after?.count) === expected;
|
|
8025
|
+
reason = ok ? null : "selector_count_did_not_equal_expected";
|
|
8018
8026
|
} else if (type === "selector_absent") {
|
|
8019
8027
|
ok = !after?.present || numberValue2(after?.count) === 0;
|
|
8020
8028
|
reason = ok ? null : "selector_still_present";
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
extractBasicGameplayEvidence,
|
|
37
37
|
resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
|
|
38
38
|
sanitizeBasicGameplayJsonString
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4KTD7CWM.js";
|
|
40
40
|
import {
|
|
41
41
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
42
42
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|