@riddledc/riddle-proof 0.7.16 → 0.7.18
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/README.md +4 -0
- package/dist/basic-gameplay.cjs +50 -5
- package/dist/basic-gameplay.d.cts +21 -3
- package/dist/basic-gameplay.d.ts +21 -3
- package/dist/basic-gameplay.js +1 -1
- package/dist/{chunk-GHQR2VEI.js → chunk-6H742VFJ.js} +50 -5
- package/dist/{chunk-PZYQGRQ5.js → chunk-7T5WT2WO.js} +9 -0
- package/dist/cli.cjs +12 -1
- package/dist/cli.js +7 -3
- package/dist/index.cjs +60 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/profile.cjs +10 -0
- package/dist/profile.d.cts +3 -1
- package/dist/profile.d.ts +3 -1
- package/dist/profile.js +3 -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/README.md
CHANGED
|
@@ -154,6 +154,10 @@ reaching the intended state. Text-matched `click` actions prefer visible
|
|
|
154
154
|
matching elements, which keeps responsive layouts from selecting hidden desktop
|
|
155
155
|
or mobile-only links.
|
|
156
156
|
|
|
157
|
+
`target.timeout_sec` is optional. Use it for known-heavy profile targets so the
|
|
158
|
+
profile carries its own hosted Riddle worker budget; an explicit CLI `--timeout`
|
|
159
|
+
still overrides the profile value for one-off runs.
|
|
160
|
+
|
|
157
161
|
The result uses `riddle-proof.profile-result.v1` and separates product failures
|
|
158
162
|
from weak proof and environment blockers:
|
|
159
163
|
|
package/dist/basic-gameplay.cjs
CHANGED
|
@@ -440,6 +440,22 @@ function createBasicGameplayCatchRecords(assessment, evidence) {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
+
for (const failure of responsiveSetupFailures(route)) {
|
|
444
|
+
catches.push({
|
|
445
|
+
site: run.site || null,
|
|
446
|
+
route: route.name,
|
|
447
|
+
path: route.path,
|
|
448
|
+
code: failure.code,
|
|
449
|
+
label: failure.label,
|
|
450
|
+
type: failure.action_result?.action || "responsive_setup",
|
|
451
|
+
selector: stringValue(failure.action_result?.selector),
|
|
452
|
+
reason: failure.reason || "responsive_setup_failed",
|
|
453
|
+
phase: failure.viewport?.phase || void 0,
|
|
454
|
+
viewport: failure.viewport,
|
|
455
|
+
action_result: failure.action_result,
|
|
456
|
+
summary: `${route.name || route.path || "Route"}: responsive setup failed on ${failure.viewport?.label || "viewport"} (${failure.reason || "responsive_setup_failed"})`
|
|
457
|
+
});
|
|
458
|
+
}
|
|
443
459
|
for (const check of assessBasicGameplayProgressionChecks(route).filter((item) => item.ok === false)) {
|
|
444
460
|
catches.push({
|
|
445
461
|
site: run.site || null,
|
|
@@ -576,7 +592,7 @@ function findBasicGameplayEvidence(value, seen, depth = 0) {
|
|
|
576
592
|
return null;
|
|
577
593
|
}
|
|
578
594
|
function hasRouteShape(record) {
|
|
579
|
-
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults) && (record.path || record.name));
|
|
595
|
+
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults || record.responsive_viewports || record.responsiveViewports) && (record.path || record.name));
|
|
580
596
|
}
|
|
581
597
|
function changed(before, after) {
|
|
582
598
|
const bodyTextChanged = Boolean(before.body_text_hash && after.body_text_hash && before.body_text_hash !== after.body_text_hash);
|
|
@@ -596,12 +612,15 @@ function canvasHashes(canvases) {
|
|
|
596
612
|
}
|
|
597
613
|
function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
598
614
|
const progressionFailures = assessBasicGameplayProgressionChecks(route).filter((check) => check.ok === false);
|
|
599
|
-
|
|
600
|
-
|
|
615
|
+
const responsiveFailures = responsiveSetupFailures(route);
|
|
616
|
+
if (!progressionFailures.length && !responsiveFailures.length) return result;
|
|
617
|
+
const failures = new Set(result.failures);
|
|
618
|
+
if (progressionFailures.length) failures.add("progression_assertion_failed");
|
|
619
|
+
for (const failure of responsiveFailures) failures.add(failure.code);
|
|
601
620
|
return {
|
|
602
621
|
...result,
|
|
603
622
|
ok: false,
|
|
604
|
-
failures,
|
|
623
|
+
failures: [...failures],
|
|
605
624
|
suite_failures: [
|
|
606
625
|
...result.suite_failures || [],
|
|
607
626
|
...progressionFailures.map((check) => ({
|
|
@@ -612,10 +631,36 @@ function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
|
612
631
|
state_path: check.state_path || null,
|
|
613
632
|
state_call: check.state_call || null,
|
|
614
633
|
property_path: check.property_path || null
|
|
615
|
-
}))
|
|
634
|
+
})),
|
|
635
|
+
...responsiveFailures
|
|
616
636
|
]
|
|
617
637
|
};
|
|
618
638
|
}
|
|
639
|
+
function responsiveSetupFailures(route) {
|
|
640
|
+
const failures = [];
|
|
641
|
+
for (const viewport of responsiveViewportsForRoute(route)) {
|
|
642
|
+
for (const actionResult of listValue(viewport.setup_action_results || viewport.setupActionResults)) {
|
|
643
|
+
if (!actionResult || actionResult.ok !== false) continue;
|
|
644
|
+
failures.push({
|
|
645
|
+
code: "responsive_setup_failed",
|
|
646
|
+
label: `${viewport.label || "responsive"} ${actionResult.action || "setup action"}`,
|
|
647
|
+
reason: stringValue(actionResult.reason) || "responsive_setup_failed",
|
|
648
|
+
selector: stringValue(actionResult.selector),
|
|
649
|
+
viewport: {
|
|
650
|
+
label: viewport.label || null,
|
|
651
|
+
width: numberValue(viewport.width) || null,
|
|
652
|
+
height: numberValue(viewport.height) || null,
|
|
653
|
+
phase: viewport.phase || null
|
|
654
|
+
},
|
|
655
|
+
action_result: actionResult
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return failures;
|
|
660
|
+
}
|
|
661
|
+
function responsiveViewportsForRoute(route) {
|
|
662
|
+
return listValue(route.responsive_viewports || route.responsiveViewports).filter((item) => Boolean(recordValue(item)));
|
|
663
|
+
}
|
|
619
664
|
function progressionChecksForRoute(route) {
|
|
620
665
|
return listValue(route.progression_checks || route.progressionChecks).filter((item) => Boolean(recordValue(item)));
|
|
621
666
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION = "riddle-proof.basic-gameplay.v1";
|
|
2
2
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION = "riddle-proof.basic-gameplay.assessment.v1";
|
|
3
3
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION = "riddle-proof.basic-gameplay.catch.v1";
|
|
4
|
-
type BasicGameplayFailureCode = "route_http_error" | "fatal_page_error" | "route_blank_or_thin" | "no_game_surface" | "mobile_horizontal_overflow" | "primary_control_missing" | "primary_control_inert" | "progression_assertion_failed";
|
|
4
|
+
type BasicGameplayFailureCode = "route_http_error" | "fatal_page_error" | "route_blank_or_thin" | "no_game_surface" | "mobile_horizontal_overflow" | "primary_control_missing" | "primary_control_inert" | "progression_assertion_failed" | "responsive_setup_failed";
|
|
5
5
|
type BasicGameplayWarningCode = "canvas_inert" | "some_actions_failed" | "missing_reset_path" | "critical_console_error";
|
|
6
6
|
interface BasicGameplayCanvasState {
|
|
7
7
|
index?: number;
|
|
@@ -95,13 +95,29 @@ interface BasicGameplayProgressionCheck {
|
|
|
95
95
|
[key: string]: unknown;
|
|
96
96
|
}
|
|
97
97
|
interface BasicGameplaySuiteFailure {
|
|
98
|
-
code: "progression_assertion_failed";
|
|
98
|
+
code: "progression_assertion_failed" | "responsive_setup_failed";
|
|
99
99
|
label?: string;
|
|
100
100
|
reason?: string | null;
|
|
101
101
|
selector?: string | null;
|
|
102
102
|
state_path?: string | null;
|
|
103
103
|
state_call?: string | null;
|
|
104
104
|
property_path?: string | null;
|
|
105
|
+
viewport?: {
|
|
106
|
+
label?: string | null;
|
|
107
|
+
width?: number | null;
|
|
108
|
+
height?: number | null;
|
|
109
|
+
phase?: string | null;
|
|
110
|
+
};
|
|
111
|
+
action_result?: BasicGameplayActionResult;
|
|
112
|
+
}
|
|
113
|
+
interface BasicGameplayResponsiveViewportEvidence {
|
|
114
|
+
label?: string;
|
|
115
|
+
width?: number;
|
|
116
|
+
height?: number;
|
|
117
|
+
phase?: string;
|
|
118
|
+
setup_action_results?: BasicGameplayActionResult[];
|
|
119
|
+
setupActionResults?: BasicGameplayActionResult[];
|
|
120
|
+
[key: string]: unknown;
|
|
105
121
|
}
|
|
106
122
|
interface BasicGameplayMobileEvidence {
|
|
107
123
|
overflow_px?: number;
|
|
@@ -132,6 +148,8 @@ interface RiddleProofBasicGameplayRouteEvidence {
|
|
|
132
148
|
continuedCleanupActionResults?: BasicGameplayActionResult[];
|
|
133
149
|
restart_action_results?: BasicGameplayActionResult[];
|
|
134
150
|
restartActionResults?: BasicGameplayActionResult[];
|
|
151
|
+
responsive_viewports?: BasicGameplayResponsiveViewportEvidence[];
|
|
152
|
+
responsiveViewports?: BasicGameplayResponsiveViewportEvidence[];
|
|
135
153
|
progression_checks?: BasicGameplayProgressionCheck[];
|
|
136
154
|
progressionChecks?: BasicGameplayProgressionCheck[];
|
|
137
155
|
requires_reset?: boolean;
|
|
@@ -296,4 +314,4 @@ declare function createBasicGameplayCatchRecords(assessment: RiddleProofBasicGam
|
|
|
296
314
|
declare function createBasicGameplayCatchSummary(input: CreateBasicGameplayCatchSummaryInput, options?: AssessBasicGameplayOptions): RiddleProofBasicGameplayCatchSummary;
|
|
297
315
|
declare function extractBasicGameplayEvidence(...sources: unknown[]): RiddleProofBasicGameplayEvidence | null;
|
|
298
316
|
|
|
299
|
-
export { type AssessBasicGameplayOptions, type AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, type BasicGameplayActionResult, type BasicGameplayActionType, type BasicGameplayArtifactResolution, type BasicGameplayAssessmentSummary, type BasicGameplayCanvasState, type BasicGameplayCatchRecord, type BasicGameplayChangeSummary, type BasicGameplayFailureCode, type BasicGameplayFixReference, type BasicGameplayMetric, type BasicGameplayMobileEvidence, type BasicGameplayProgressCheckType, type BasicGameplayProgressionCheck, type BasicGameplayProofArtifact, type BasicGameplayRouteReference, type BasicGameplaySnapshot, type BasicGameplaySuiteFailure, type BasicGameplayWarningCode, type CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, type RiddleProofBasicGameplayAssessment, type RiddleProofBasicGameplayCatchSummary, type RiddleProofBasicGameplayEvidence, type RiddleProofBasicGameplayRouteAssessment, type RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString };
|
|
317
|
+
export { type AssessBasicGameplayOptions, type AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, type BasicGameplayActionResult, type BasicGameplayActionType, type BasicGameplayArtifactResolution, type BasicGameplayAssessmentSummary, type BasicGameplayCanvasState, type BasicGameplayCatchRecord, type BasicGameplayChangeSummary, type BasicGameplayFailureCode, type BasicGameplayFixReference, type BasicGameplayMetric, type BasicGameplayMobileEvidence, type BasicGameplayProgressCheckType, type BasicGameplayProgressionCheck, type BasicGameplayProofArtifact, type BasicGameplayResponsiveViewportEvidence, type BasicGameplayRouteReference, type BasicGameplaySnapshot, type BasicGameplaySuiteFailure, type BasicGameplayWarningCode, type CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, type RiddleProofBasicGameplayAssessment, type RiddleProofBasicGameplayCatchSummary, type RiddleProofBasicGameplayEvidence, type RiddleProofBasicGameplayRouteAssessment, type RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString };
|
package/dist/basic-gameplay.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION = "riddle-proof.basic-gameplay.v1";
|
|
2
2
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION = "riddle-proof.basic-gameplay.assessment.v1";
|
|
3
3
|
declare const RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION = "riddle-proof.basic-gameplay.catch.v1";
|
|
4
|
-
type BasicGameplayFailureCode = "route_http_error" | "fatal_page_error" | "route_blank_or_thin" | "no_game_surface" | "mobile_horizontal_overflow" | "primary_control_missing" | "primary_control_inert" | "progression_assertion_failed";
|
|
4
|
+
type BasicGameplayFailureCode = "route_http_error" | "fatal_page_error" | "route_blank_or_thin" | "no_game_surface" | "mobile_horizontal_overflow" | "primary_control_missing" | "primary_control_inert" | "progression_assertion_failed" | "responsive_setup_failed";
|
|
5
5
|
type BasicGameplayWarningCode = "canvas_inert" | "some_actions_failed" | "missing_reset_path" | "critical_console_error";
|
|
6
6
|
interface BasicGameplayCanvasState {
|
|
7
7
|
index?: number;
|
|
@@ -95,13 +95,29 @@ interface BasicGameplayProgressionCheck {
|
|
|
95
95
|
[key: string]: unknown;
|
|
96
96
|
}
|
|
97
97
|
interface BasicGameplaySuiteFailure {
|
|
98
|
-
code: "progression_assertion_failed";
|
|
98
|
+
code: "progression_assertion_failed" | "responsive_setup_failed";
|
|
99
99
|
label?: string;
|
|
100
100
|
reason?: string | null;
|
|
101
101
|
selector?: string | null;
|
|
102
102
|
state_path?: string | null;
|
|
103
103
|
state_call?: string | null;
|
|
104
104
|
property_path?: string | null;
|
|
105
|
+
viewport?: {
|
|
106
|
+
label?: string | null;
|
|
107
|
+
width?: number | null;
|
|
108
|
+
height?: number | null;
|
|
109
|
+
phase?: string | null;
|
|
110
|
+
};
|
|
111
|
+
action_result?: BasicGameplayActionResult;
|
|
112
|
+
}
|
|
113
|
+
interface BasicGameplayResponsiveViewportEvidence {
|
|
114
|
+
label?: string;
|
|
115
|
+
width?: number;
|
|
116
|
+
height?: number;
|
|
117
|
+
phase?: string;
|
|
118
|
+
setup_action_results?: BasicGameplayActionResult[];
|
|
119
|
+
setupActionResults?: BasicGameplayActionResult[];
|
|
120
|
+
[key: string]: unknown;
|
|
105
121
|
}
|
|
106
122
|
interface BasicGameplayMobileEvidence {
|
|
107
123
|
overflow_px?: number;
|
|
@@ -132,6 +148,8 @@ interface RiddleProofBasicGameplayRouteEvidence {
|
|
|
132
148
|
continuedCleanupActionResults?: BasicGameplayActionResult[];
|
|
133
149
|
restart_action_results?: BasicGameplayActionResult[];
|
|
134
150
|
restartActionResults?: BasicGameplayActionResult[];
|
|
151
|
+
responsive_viewports?: BasicGameplayResponsiveViewportEvidence[];
|
|
152
|
+
responsiveViewports?: BasicGameplayResponsiveViewportEvidence[];
|
|
135
153
|
progression_checks?: BasicGameplayProgressionCheck[];
|
|
136
154
|
progressionChecks?: BasicGameplayProgressionCheck[];
|
|
137
155
|
requires_reset?: boolean;
|
|
@@ -296,4 +314,4 @@ declare function createBasicGameplayCatchRecords(assessment: RiddleProofBasicGam
|
|
|
296
314
|
declare function createBasicGameplayCatchSummary(input: CreateBasicGameplayCatchSummaryInput, options?: AssessBasicGameplayOptions): RiddleProofBasicGameplayCatchSummary;
|
|
297
315
|
declare function extractBasicGameplayEvidence(...sources: unknown[]): RiddleProofBasicGameplayEvidence | null;
|
|
298
316
|
|
|
299
|
-
export { type AssessBasicGameplayOptions, type AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, type BasicGameplayActionResult, type BasicGameplayActionType, type BasicGameplayArtifactResolution, type BasicGameplayAssessmentSummary, type BasicGameplayCanvasState, type BasicGameplayCatchRecord, type BasicGameplayChangeSummary, type BasicGameplayFailureCode, type BasicGameplayFixReference, type BasicGameplayMetric, type BasicGameplayMobileEvidence, type BasicGameplayProgressCheckType, type BasicGameplayProgressionCheck, type BasicGameplayProofArtifact, type BasicGameplayRouteReference, type BasicGameplaySnapshot, type BasicGameplaySuiteFailure, type BasicGameplayWarningCode, type CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, type RiddleProofBasicGameplayAssessment, type RiddleProofBasicGameplayCatchSummary, type RiddleProofBasicGameplayEvidence, type RiddleProofBasicGameplayRouteAssessment, type RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString };
|
|
317
|
+
export { type AssessBasicGameplayOptions, type AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, type BasicGameplayActionResult, type BasicGameplayActionType, type BasicGameplayArtifactResolution, type BasicGameplayAssessmentSummary, type BasicGameplayCanvasState, type BasicGameplayCatchRecord, type BasicGameplayChangeSummary, type BasicGameplayFailureCode, type BasicGameplayFixReference, type BasicGameplayMetric, type BasicGameplayMobileEvidence, type BasicGameplayProgressCheckType, type BasicGameplayProgressionCheck, type BasicGameplayProofArtifact, type BasicGameplayResponsiveViewportEvidence, type BasicGameplayRouteReference, type BasicGameplaySnapshot, type BasicGameplaySuiteFailure, type BasicGameplayWarningCode, type CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, type RiddleProofBasicGameplayAssessment, type RiddleProofBasicGameplayCatchSummary, type RiddleProofBasicGameplayEvidence, type RiddleProofBasicGameplayRouteAssessment, type RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString };
|
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-6H742VFJ.js";
|
|
20
20
|
export {
|
|
21
21
|
BASIC_GAMEPLAY_ACTION_TYPES,
|
|
22
22
|
BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES,
|
|
@@ -400,6 +400,22 @@ function createBasicGameplayCatchRecords(assessment, evidence) {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
+
for (const failure of responsiveSetupFailures(route)) {
|
|
404
|
+
catches.push({
|
|
405
|
+
site: run.site || null,
|
|
406
|
+
route: route.name,
|
|
407
|
+
path: route.path,
|
|
408
|
+
code: failure.code,
|
|
409
|
+
label: failure.label,
|
|
410
|
+
type: failure.action_result?.action || "responsive_setup",
|
|
411
|
+
selector: stringValue(failure.action_result?.selector),
|
|
412
|
+
reason: failure.reason || "responsive_setup_failed",
|
|
413
|
+
phase: failure.viewport?.phase || void 0,
|
|
414
|
+
viewport: failure.viewport,
|
|
415
|
+
action_result: failure.action_result,
|
|
416
|
+
summary: `${route.name || route.path || "Route"}: responsive setup failed on ${failure.viewport?.label || "viewport"} (${failure.reason || "responsive_setup_failed"})`
|
|
417
|
+
});
|
|
418
|
+
}
|
|
403
419
|
for (const check of assessBasicGameplayProgressionChecks(route).filter((item) => item.ok === false)) {
|
|
404
420
|
catches.push({
|
|
405
421
|
site: run.site || null,
|
|
@@ -536,7 +552,7 @@ function findBasicGameplayEvidence(value, seen, depth = 0) {
|
|
|
536
552
|
return null;
|
|
537
553
|
}
|
|
538
554
|
function hasRouteShape(record) {
|
|
539
|
-
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults) && (record.path || record.name));
|
|
555
|
+
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults || record.responsive_viewports || record.responsiveViewports) && (record.path || record.name));
|
|
540
556
|
}
|
|
541
557
|
function changed(before, after) {
|
|
542
558
|
const bodyTextChanged = Boolean(before.body_text_hash && after.body_text_hash && before.body_text_hash !== after.body_text_hash);
|
|
@@ -556,12 +572,15 @@ function canvasHashes(canvases) {
|
|
|
556
572
|
}
|
|
557
573
|
function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
558
574
|
const progressionFailures = assessBasicGameplayProgressionChecks(route).filter((check) => check.ok === false);
|
|
559
|
-
|
|
560
|
-
|
|
575
|
+
const responsiveFailures = responsiveSetupFailures(route);
|
|
576
|
+
if (!progressionFailures.length && !responsiveFailures.length) return result;
|
|
577
|
+
const failures = new Set(result.failures);
|
|
578
|
+
if (progressionFailures.length) failures.add("progression_assertion_failed");
|
|
579
|
+
for (const failure of responsiveFailures) failures.add(failure.code);
|
|
561
580
|
return {
|
|
562
581
|
...result,
|
|
563
582
|
ok: false,
|
|
564
|
-
failures,
|
|
583
|
+
failures: [...failures],
|
|
565
584
|
suite_failures: [
|
|
566
585
|
...result.suite_failures || [],
|
|
567
586
|
...progressionFailures.map((check) => ({
|
|
@@ -572,10 +591,36 @@ function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
|
572
591
|
state_path: check.state_path || null,
|
|
573
592
|
state_call: check.state_call || null,
|
|
574
593
|
property_path: check.property_path || null
|
|
575
|
-
}))
|
|
594
|
+
})),
|
|
595
|
+
...responsiveFailures
|
|
576
596
|
]
|
|
577
597
|
};
|
|
578
598
|
}
|
|
599
|
+
function responsiveSetupFailures(route) {
|
|
600
|
+
const failures = [];
|
|
601
|
+
for (const viewport of responsiveViewportsForRoute(route)) {
|
|
602
|
+
for (const actionResult of listValue(viewport.setup_action_results || viewport.setupActionResults)) {
|
|
603
|
+
if (!actionResult || actionResult.ok !== false) continue;
|
|
604
|
+
failures.push({
|
|
605
|
+
code: "responsive_setup_failed",
|
|
606
|
+
label: `${viewport.label || "responsive"} ${actionResult.action || "setup action"}`,
|
|
607
|
+
reason: stringValue(actionResult.reason) || "responsive_setup_failed",
|
|
608
|
+
selector: stringValue(actionResult.selector),
|
|
609
|
+
viewport: {
|
|
610
|
+
label: viewport.label || null,
|
|
611
|
+
width: numberValue(viewport.width) || null,
|
|
612
|
+
height: numberValue(viewport.height) || null,
|
|
613
|
+
phase: viewport.phase || null
|
|
614
|
+
},
|
|
615
|
+
action_result: actionResult
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
return failures;
|
|
620
|
+
}
|
|
621
|
+
function responsiveViewportsForRoute(route) {
|
|
622
|
+
return listValue(route.responsive_viewports || route.responsiveViewports).filter((item) => Boolean(recordValue(item)));
|
|
623
|
+
}
|
|
579
624
|
function progressionChecksForRoute(route) {
|
|
580
625
|
return listValue(route.progression_checks || route.progressionChecks).filter((item) => Boolean(recordValue(item)));
|
|
581
626
|
}
|
|
@@ -38,6 +38,10 @@ function stringValue(value) {
|
|
|
38
38
|
function numberValue(value) {
|
|
39
39
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
40
40
|
}
|
|
41
|
+
function timeoutSecValue(value) {
|
|
42
|
+
const number = numberValue(value);
|
|
43
|
+
return number && number > 0 ? Math.ceil(number) : void 0;
|
|
44
|
+
}
|
|
41
45
|
function jsonRecord(value) {
|
|
42
46
|
if (!isRecord(value)) return void 0;
|
|
43
47
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, toJsonValue(child)]));
|
|
@@ -179,6 +183,7 @@ function normalizeRiddleProofProfile(input, options = {}) {
|
|
|
179
183
|
route,
|
|
180
184
|
viewports: options.viewports?.length ? options.viewports : normalizeViewports(targetInput.viewports),
|
|
181
185
|
auth: stringValue(targetInput.auth) || "none",
|
|
186
|
+
timeout_sec: timeoutSecValue(targetInput.timeout_sec) ?? timeoutSecValue(targetInput.timeoutSec) ?? timeoutSecValue(targetInput.riddle_timeout_sec) ?? timeoutSecValue(targetInput.riddleTimeoutSec),
|
|
182
187
|
wait_for_selector: stringValue(targetInput.wait_for_selector) || stringValue(targetInput.waitForSelector),
|
|
183
188
|
wait_ms: numberValue(targetInput.wait_ms) ?? numberValue(targetInput.waitMs),
|
|
184
189
|
setup_actions: normalizeSetupActions(targetInput.setup_actions ?? targetInput.setupActions)
|
|
@@ -198,6 +203,9 @@ function resolveRiddleProofProfileTargetUrl(profile) {
|
|
|
198
203
|
if (targetUrl) return targetUrl;
|
|
199
204
|
throw new Error("profile target URL could not be resolved.");
|
|
200
205
|
}
|
|
206
|
+
function resolveRiddleProofProfileTimeoutSec(profile, requestedTimeoutSec) {
|
|
207
|
+
return timeoutSecValue(requestedTimeoutSec) ?? timeoutSecValue(profile.target.timeout_sec);
|
|
208
|
+
}
|
|
201
209
|
function routeForViewport(viewport, targetUrl) {
|
|
202
210
|
if (viewport?.route) {
|
|
203
211
|
return {
|
|
@@ -1109,6 +1117,7 @@ export {
|
|
|
1109
1117
|
slugifyRiddleProofProfileName,
|
|
1110
1118
|
normalizeRiddleProofProfile,
|
|
1111
1119
|
resolveRiddleProofProfileTargetUrl,
|
|
1120
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
1112
1121
|
resolveRiddleProofProfileRouteUrl,
|
|
1113
1122
|
assessRiddleProofProfileEvidence,
|
|
1114
1123
|
summarizeRiddleProofProfileResult,
|
package/dist/cli.cjs
CHANGED
|
@@ -6818,6 +6818,10 @@ function stringValue2(value) {
|
|
|
6818
6818
|
function numberValue(value) {
|
|
6819
6819
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
6820
6820
|
}
|
|
6821
|
+
function timeoutSecValue(value) {
|
|
6822
|
+
const number = numberValue(value);
|
|
6823
|
+
return number && number > 0 ? Math.ceil(number) : void 0;
|
|
6824
|
+
}
|
|
6821
6825
|
function jsonRecord(value) {
|
|
6822
6826
|
if (!isRecord(value)) return void 0;
|
|
6823
6827
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, toJsonValue(child)]));
|
|
@@ -6959,6 +6963,7 @@ function normalizeRiddleProofProfile(input, options = {}) {
|
|
|
6959
6963
|
route,
|
|
6960
6964
|
viewports: options.viewports?.length ? options.viewports : normalizeViewports(targetInput.viewports),
|
|
6961
6965
|
auth: stringValue2(targetInput.auth) || "none",
|
|
6966
|
+
timeout_sec: timeoutSecValue(targetInput.timeout_sec) ?? timeoutSecValue(targetInput.timeoutSec) ?? timeoutSecValue(targetInput.riddle_timeout_sec) ?? timeoutSecValue(targetInput.riddleTimeoutSec),
|
|
6962
6967
|
wait_for_selector: stringValue2(targetInput.wait_for_selector) || stringValue2(targetInput.waitForSelector),
|
|
6963
6968
|
wait_ms: numberValue(targetInput.wait_ms) ?? numberValue(targetInput.waitMs),
|
|
6964
6969
|
setup_actions: normalizeSetupActions(targetInput.setup_actions ?? targetInput.setupActions)
|
|
@@ -6978,6 +6983,9 @@ function resolveRiddleProofProfileTargetUrl(profile) {
|
|
|
6978
6983
|
if (targetUrl) return targetUrl;
|
|
6979
6984
|
throw new Error("profile target URL could not be resolved.");
|
|
6980
6985
|
}
|
|
6986
|
+
function resolveRiddleProofProfileTimeoutSec(profile, requestedTimeoutSec) {
|
|
6987
|
+
return timeoutSecValue(requestedTimeoutSec) ?? timeoutSecValue(profile.target.timeout_sec);
|
|
6988
|
+
}
|
|
6981
6989
|
function routeForViewport(viewport, targetUrl) {
|
|
6982
6990
|
if (viewport?.route) {
|
|
6983
6991
|
return {
|
|
@@ -8189,7 +8197,10 @@ async function runProfileForCli(profile, options) {
|
|
|
8189
8197
|
url: targetUrl,
|
|
8190
8198
|
script: buildRiddleProofProfileScript(profile),
|
|
8191
8199
|
viewport: profile.target.viewports[0],
|
|
8192
|
-
timeoutSec:
|
|
8200
|
+
timeoutSec: resolveRiddleProofProfileTimeoutSec(
|
|
8201
|
+
profile,
|
|
8202
|
+
optionString(options, "timeout") ? Number(optionString(options, "timeout")) : void 0
|
|
8203
|
+
),
|
|
8193
8204
|
sync: options.sync === true ? true : void 0
|
|
8194
8205
|
});
|
|
8195
8206
|
} catch (error) {
|
package/dist/cli.js
CHANGED
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
extractRiddleProofProfileResult,
|
|
9
9
|
normalizeRiddleProofProfile,
|
|
10
10
|
profileStatusExitCode,
|
|
11
|
-
resolveRiddleProofProfileTargetUrl
|
|
12
|
-
|
|
11
|
+
resolveRiddleProofProfileTargetUrl,
|
|
12
|
+
resolveRiddleProofProfileTimeoutSec
|
|
13
|
+
} from "./chunk-7T5WT2WO.js";
|
|
13
14
|
import {
|
|
14
15
|
createRiddleApiClient,
|
|
15
16
|
parseRiddleViewport
|
|
@@ -360,7 +361,10 @@ async function runProfileForCli(profile, options) {
|
|
|
360
361
|
url: targetUrl,
|
|
361
362
|
script: buildRiddleProofProfileScript(profile),
|
|
362
363
|
viewport: profile.target.viewports[0],
|
|
363
|
-
timeoutSec:
|
|
364
|
+
timeoutSec: resolveRiddleProofProfileTimeoutSec(
|
|
365
|
+
profile,
|
|
366
|
+
optionString(options, "timeout") ? Number(optionString(options, "timeout")) : void 0
|
|
367
|
+
),
|
|
364
368
|
sync: options.sync === true ? true : void 0
|
|
365
369
|
});
|
|
366
370
|
} catch (error) {
|
package/dist/index.cjs
CHANGED
|
@@ -2996,6 +2996,7 @@ __export(index_exports, {
|
|
|
2996
2996
|
resolveRiddleApiKey: () => resolveRiddleApiKey,
|
|
2997
2997
|
resolveRiddleProofProfileRouteUrl: () => resolveRiddleProofProfileRouteUrl,
|
|
2998
2998
|
resolveRiddleProofProfileTargetUrl: () => resolveRiddleProofProfileTargetUrl,
|
|
2999
|
+
resolveRiddleProofProfileTimeoutSec: () => resolveRiddleProofProfileTimeoutSec,
|
|
2999
3000
|
riddleRequestJson: () => riddleRequestJson,
|
|
3000
3001
|
runCodexExecAgentDoctor: () => runCodexExecAgentDoctor,
|
|
3001
3002
|
runLocalAgentDoctor: () => runCodexExecAgentDoctor,
|
|
@@ -8209,6 +8210,22 @@ function createBasicGameplayCatchRecords(assessment, evidence) {
|
|
|
8209
8210
|
});
|
|
8210
8211
|
}
|
|
8211
8212
|
}
|
|
8213
|
+
for (const failure of responsiveSetupFailures(route)) {
|
|
8214
|
+
catches.push({
|
|
8215
|
+
site: run.site || null,
|
|
8216
|
+
route: route.name,
|
|
8217
|
+
path: route.path,
|
|
8218
|
+
code: failure.code,
|
|
8219
|
+
label: failure.label,
|
|
8220
|
+
type: failure.action_result?.action || "responsive_setup",
|
|
8221
|
+
selector: stringValue4(failure.action_result?.selector),
|
|
8222
|
+
reason: failure.reason || "responsive_setup_failed",
|
|
8223
|
+
phase: failure.viewport?.phase || void 0,
|
|
8224
|
+
viewport: failure.viewport,
|
|
8225
|
+
action_result: failure.action_result,
|
|
8226
|
+
summary: `${route.name || route.path || "Route"}: responsive setup failed on ${failure.viewport?.label || "viewport"} (${failure.reason || "responsive_setup_failed"})`
|
|
8227
|
+
});
|
|
8228
|
+
}
|
|
8212
8229
|
for (const check of assessBasicGameplayProgressionChecks(route).filter((item) => item.ok === false)) {
|
|
8213
8230
|
catches.push({
|
|
8214
8231
|
site: run.site || null,
|
|
@@ -8345,7 +8362,7 @@ function findBasicGameplayEvidence(value, seen, depth = 0) {
|
|
|
8345
8362
|
return null;
|
|
8346
8363
|
}
|
|
8347
8364
|
function hasRouteShape(record) {
|
|
8348
|
-
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults) && (record.path || record.name));
|
|
8365
|
+
return Boolean(record && (record.initial || record.after_action || record.afterAction || record.after_cleanup || record.afterCleanup || record.action_results || record.actionResults || record.continued_cleanup_action_results || record.continuedCleanupActionResults || record.responsive_viewports || record.responsiveViewports) && (record.path || record.name));
|
|
8349
8366
|
}
|
|
8350
8367
|
function changed(before, after) {
|
|
8351
8368
|
const bodyTextChanged = Boolean(before.body_text_hash && after.body_text_hash && before.body_text_hash !== after.body_text_hash);
|
|
@@ -8365,12 +8382,15 @@ function canvasHashes(canvases) {
|
|
|
8365
8382
|
}
|
|
8366
8383
|
function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
8367
8384
|
const progressionFailures = assessBasicGameplayProgressionChecks(route).filter((check) => check.ok === false);
|
|
8368
|
-
|
|
8369
|
-
|
|
8385
|
+
const responsiveFailures = responsiveSetupFailures(route);
|
|
8386
|
+
if (!progressionFailures.length && !responsiveFailures.length) return result;
|
|
8387
|
+
const failures = new Set(result.failures);
|
|
8388
|
+
if (progressionFailures.length) failures.add("progression_assertion_failed");
|
|
8389
|
+
for (const failure of responsiveFailures) failures.add(failure.code);
|
|
8370
8390
|
return {
|
|
8371
8391
|
...result,
|
|
8372
8392
|
ok: false,
|
|
8373
|
-
failures,
|
|
8393
|
+
failures: [...failures],
|
|
8374
8394
|
suite_failures: [
|
|
8375
8395
|
...result.suite_failures || [],
|
|
8376
8396
|
...progressionFailures.map((check) => ({
|
|
@@ -8381,10 +8401,36 @@ function augmentRouteAssessmentWithProgressionChecks(result, route) {
|
|
|
8381
8401
|
state_path: check.state_path || null,
|
|
8382
8402
|
state_call: check.state_call || null,
|
|
8383
8403
|
property_path: check.property_path || null
|
|
8384
|
-
}))
|
|
8404
|
+
})),
|
|
8405
|
+
...responsiveFailures
|
|
8385
8406
|
]
|
|
8386
8407
|
};
|
|
8387
8408
|
}
|
|
8409
|
+
function responsiveSetupFailures(route) {
|
|
8410
|
+
const failures = [];
|
|
8411
|
+
for (const viewport of responsiveViewportsForRoute(route)) {
|
|
8412
|
+
for (const actionResult of listValue2(viewport.setup_action_results || viewport.setupActionResults)) {
|
|
8413
|
+
if (!actionResult || actionResult.ok !== false) continue;
|
|
8414
|
+
failures.push({
|
|
8415
|
+
code: "responsive_setup_failed",
|
|
8416
|
+
label: `${viewport.label || "responsive"} ${actionResult.action || "setup action"}`,
|
|
8417
|
+
reason: stringValue4(actionResult.reason) || "responsive_setup_failed",
|
|
8418
|
+
selector: stringValue4(actionResult.selector),
|
|
8419
|
+
viewport: {
|
|
8420
|
+
label: viewport.label || null,
|
|
8421
|
+
width: numberValue2(viewport.width) || null,
|
|
8422
|
+
height: numberValue2(viewport.height) || null,
|
|
8423
|
+
phase: viewport.phase || null
|
|
8424
|
+
},
|
|
8425
|
+
action_result: actionResult
|
|
8426
|
+
});
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
return failures;
|
|
8430
|
+
}
|
|
8431
|
+
function responsiveViewportsForRoute(route) {
|
|
8432
|
+
return listValue2(route.responsive_viewports || route.responsiveViewports).filter((item) => Boolean(recordValue3(item)));
|
|
8433
|
+
}
|
|
8388
8434
|
function progressionChecksForRoute(route) {
|
|
8389
8435
|
return listValue2(route.progression_checks || route.progressionChecks).filter((item) => Boolean(recordValue3(item)));
|
|
8390
8436
|
}
|
|
@@ -8561,6 +8607,10 @@ function stringValue5(value) {
|
|
|
8561
8607
|
function numberValue3(value) {
|
|
8562
8608
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
8563
8609
|
}
|
|
8610
|
+
function timeoutSecValue(value) {
|
|
8611
|
+
const number = numberValue3(value);
|
|
8612
|
+
return number && number > 0 ? Math.ceil(number) : void 0;
|
|
8613
|
+
}
|
|
8564
8614
|
function jsonRecord(value) {
|
|
8565
8615
|
if (!isRecord2(value)) return void 0;
|
|
8566
8616
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, toJsonValue(child)]));
|
|
@@ -8702,6 +8752,7 @@ function normalizeRiddleProofProfile(input, options = {}) {
|
|
|
8702
8752
|
route,
|
|
8703
8753
|
viewports: options.viewports?.length ? options.viewports : normalizeViewports(targetInput.viewports),
|
|
8704
8754
|
auth: stringValue5(targetInput.auth) || "none",
|
|
8755
|
+
timeout_sec: timeoutSecValue(targetInput.timeout_sec) ?? timeoutSecValue(targetInput.timeoutSec) ?? timeoutSecValue(targetInput.riddle_timeout_sec) ?? timeoutSecValue(targetInput.riddleTimeoutSec),
|
|
8705
8756
|
wait_for_selector: stringValue5(targetInput.wait_for_selector) || stringValue5(targetInput.waitForSelector),
|
|
8706
8757
|
wait_ms: numberValue3(targetInput.wait_ms) ?? numberValue3(targetInput.waitMs),
|
|
8707
8758
|
setup_actions: normalizeSetupActions(targetInput.setup_actions ?? targetInput.setupActions)
|
|
@@ -8721,6 +8772,9 @@ function resolveRiddleProofProfileTargetUrl(profile) {
|
|
|
8721
8772
|
if (targetUrl) return targetUrl;
|
|
8722
8773
|
throw new Error("profile target URL could not be resolved.");
|
|
8723
8774
|
}
|
|
8775
|
+
function resolveRiddleProofProfileTimeoutSec(profile, requestedTimeoutSec) {
|
|
8776
|
+
return timeoutSecValue(requestedTimeoutSec) ?? timeoutSecValue(profile.target.timeout_sec);
|
|
8777
|
+
}
|
|
8724
8778
|
function routeForViewport(viewport, targetUrl) {
|
|
8725
8779
|
if (viewport?.route) {
|
|
8726
8780
|
return {
|
|
@@ -9954,6 +10008,7 @@ function createRiddleApiClient(config = {}) {
|
|
|
9954
10008
|
resolveRiddleApiKey,
|
|
9955
10009
|
resolveRiddleProofProfileRouteUrl,
|
|
9956
10010
|
resolveRiddleProofProfileTargetUrl,
|
|
10011
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
9957
10012
|
riddleRequestJson,
|
|
9958
10013
|
runCodexExecAgentDoctor,
|
|
9959
10014
|
runLocalAgentDoctor,
|
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,6 @@ export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunne
|
|
|
9
9
|
export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_DIAGNOSTIC_HISTORY_LIMIT, DEFAULT_DIAGNOSTIC_STRING_LIMIT, RIDDLE_PROOF_CAPTURE_DIAGNOSTIC_VERSION, RiddleProofArtifactSummary, RiddleProofCaptureArtifactSummary, RiddleProofCaptureDiagnostic, RiddleProofDiagnosticRedactionOptions, appendCaptureDiagnostic, createCaptureDiagnostic, redactForProofDiagnostics, summarizeCaptureArtifacts } from './diagnostics.cjs';
|
|
10
10
|
export { BuildVisualProofSessionInput, RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION, RIDDLE_PROOF_VISUAL_SESSION_VERSION, VisualProofSessionMismatch, buildVisualProofSession, compareVisualProofSessionFingerprint, parseVisualProofSession, visualSessionFingerprint, visualSessionFingerprintBasis } from './proof-session.cjs';
|
|
11
11
|
export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION, RIDDLE_PROOF_PLAYABILITY_VERSION, RiddleProofPlayabilityAssessment, RiddleProofPlayabilityEvidence, assessPlayabilityEvidence, extractPlayabilityEvidence, isRiddleProofPlayabilityMode } from './playability.cjs';
|
|
12
|
-
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.cjs';
|
|
13
|
-
export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileResult, RiddleProofProfileRouteEvidence, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.cjs';
|
|
12
|
+
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayResponsiveViewportEvidence, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.cjs';
|
|
13
|
+
export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileResult, RiddleProofProfileRouteEvidence, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.cjs';
|
|
14
14
|
export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RiddleApiError, RiddleClientConfig, RiddleFetch, RiddlePollJobResult, RiddlePreviewDeployResult, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, createRiddleApiClient, deployRiddleStaticPreview, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from './riddle-client.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunne
|
|
|
9
9
|
export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_DIAGNOSTIC_HISTORY_LIMIT, DEFAULT_DIAGNOSTIC_STRING_LIMIT, RIDDLE_PROOF_CAPTURE_DIAGNOSTIC_VERSION, RiddleProofArtifactSummary, RiddleProofCaptureArtifactSummary, RiddleProofCaptureDiagnostic, RiddleProofDiagnosticRedactionOptions, appendCaptureDiagnostic, createCaptureDiagnostic, redactForProofDiagnostics, summarizeCaptureArtifacts } from './diagnostics.js';
|
|
10
10
|
export { BuildVisualProofSessionInput, RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION, RIDDLE_PROOF_VISUAL_SESSION_VERSION, VisualProofSessionMismatch, buildVisualProofSession, compareVisualProofSessionFingerprint, parseVisualProofSession, visualSessionFingerprint, visualSessionFingerprintBasis } from './proof-session.js';
|
|
11
11
|
export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION, RIDDLE_PROOF_PLAYABILITY_VERSION, RiddleProofPlayabilityAssessment, RiddleProofPlayabilityEvidence, assessPlayabilityEvidence, extractPlayabilityEvidence, isRiddleProofPlayabilityMode } from './playability.js';
|
|
12
|
-
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.js';
|
|
13
|
-
export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileResult, RiddleProofProfileRouteEvidence, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.js';
|
|
12
|
+
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayResponsiveViewportEvidence, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.js';
|
|
13
|
+
export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileResult, RiddleProofProfileRouteEvidence, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.js';
|
|
14
14
|
export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RiddleApiError, RiddleClientConfig, RiddleFetch, RiddlePollJobResult, RiddlePreviewDeployResult, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, createRiddleApiClient, deployRiddleStaticPreview, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from './riddle-client.js';
|
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-6H742VFJ.js";
|
|
40
40
|
import {
|
|
41
41
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
42
42
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -55,9 +55,10 @@ import {
|
|
|
55
55
|
profileStatusExitCode,
|
|
56
56
|
resolveRiddleProofProfileRouteUrl,
|
|
57
57
|
resolveRiddleProofProfileTargetUrl,
|
|
58
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
58
59
|
slugifyRiddleProofProfileName,
|
|
59
60
|
summarizeRiddleProofProfileResult
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7T5WT2WO.js";
|
|
61
62
|
import {
|
|
62
63
|
DEFAULT_RIDDLE_API_BASE_URL,
|
|
63
64
|
DEFAULT_RIDDLE_API_KEY_FILE,
|
|
@@ -234,6 +235,7 @@ export {
|
|
|
234
235
|
resolveRiddleApiKey,
|
|
235
236
|
resolveRiddleProofProfileRouteUrl,
|
|
236
237
|
resolveRiddleProofProfileTargetUrl,
|
|
238
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
237
239
|
riddleRequestJson,
|
|
238
240
|
runCodexExecAgentDoctor,
|
|
239
241
|
runCodexExecAgentDoctor as runLocalAgentDoctor,
|
package/dist/profile.cjs
CHANGED
|
@@ -37,6 +37,7 @@ __export(profile_exports, {
|
|
|
37
37
|
profileStatusExitCode: () => profileStatusExitCode,
|
|
38
38
|
resolveRiddleProofProfileRouteUrl: () => resolveRiddleProofProfileRouteUrl,
|
|
39
39
|
resolveRiddleProofProfileTargetUrl: () => resolveRiddleProofProfileTargetUrl,
|
|
40
|
+
resolveRiddleProofProfileTimeoutSec: () => resolveRiddleProofProfileTimeoutSec,
|
|
40
41
|
slugifyRiddleProofProfileName: () => slugifyRiddleProofProfileName,
|
|
41
42
|
summarizeRiddleProofProfileResult: () => summarizeRiddleProofProfileResult
|
|
42
43
|
});
|
|
@@ -80,6 +81,10 @@ function stringValue(value) {
|
|
|
80
81
|
function numberValue(value) {
|
|
81
82
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
82
83
|
}
|
|
84
|
+
function timeoutSecValue(value) {
|
|
85
|
+
const number = numberValue(value);
|
|
86
|
+
return number && number > 0 ? Math.ceil(number) : void 0;
|
|
87
|
+
}
|
|
83
88
|
function jsonRecord(value) {
|
|
84
89
|
if (!isRecord(value)) return void 0;
|
|
85
90
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, toJsonValue(child)]));
|
|
@@ -221,6 +226,7 @@ function normalizeRiddleProofProfile(input, options = {}) {
|
|
|
221
226
|
route,
|
|
222
227
|
viewports: options.viewports?.length ? options.viewports : normalizeViewports(targetInput.viewports),
|
|
223
228
|
auth: stringValue(targetInput.auth) || "none",
|
|
229
|
+
timeout_sec: timeoutSecValue(targetInput.timeout_sec) ?? timeoutSecValue(targetInput.timeoutSec) ?? timeoutSecValue(targetInput.riddle_timeout_sec) ?? timeoutSecValue(targetInput.riddleTimeoutSec),
|
|
224
230
|
wait_for_selector: stringValue(targetInput.wait_for_selector) || stringValue(targetInput.waitForSelector),
|
|
225
231
|
wait_ms: numberValue(targetInput.wait_ms) ?? numberValue(targetInput.waitMs),
|
|
226
232
|
setup_actions: normalizeSetupActions(targetInput.setup_actions ?? targetInput.setupActions)
|
|
@@ -240,6 +246,9 @@ function resolveRiddleProofProfileTargetUrl(profile) {
|
|
|
240
246
|
if (targetUrl) return targetUrl;
|
|
241
247
|
throw new Error("profile target URL could not be resolved.");
|
|
242
248
|
}
|
|
249
|
+
function resolveRiddleProofProfileTimeoutSec(profile, requestedTimeoutSec) {
|
|
250
|
+
return timeoutSecValue(requestedTimeoutSec) ?? timeoutSecValue(profile.target.timeout_sec);
|
|
251
|
+
}
|
|
243
252
|
function routeForViewport(viewport, targetUrl) {
|
|
244
253
|
if (viewport?.route) {
|
|
245
254
|
return {
|
|
@@ -1159,6 +1168,7 @@ function extractRiddleProofProfileResult(input) {
|
|
|
1159
1168
|
profileStatusExitCode,
|
|
1160
1169
|
resolveRiddleProofProfileRouteUrl,
|
|
1161
1170
|
resolveRiddleProofProfileTargetUrl,
|
|
1171
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
1162
1172
|
slugifyRiddleProofProfileName,
|
|
1163
1173
|
summarizeRiddleProofProfileResult
|
|
1164
1174
|
});
|
package/dist/profile.d.cts
CHANGED
|
@@ -34,6 +34,7 @@ interface RiddleProofProfileTarget {
|
|
|
34
34
|
route?: string;
|
|
35
35
|
viewports: RiddleProofProfileViewport[];
|
|
36
36
|
auth?: "none" | (string & {});
|
|
37
|
+
timeout_sec?: number;
|
|
37
38
|
wait_for_selector?: string;
|
|
38
39
|
wait_ms?: number;
|
|
39
40
|
setup_actions?: RiddleProofProfileSetupAction[];
|
|
@@ -157,6 +158,7 @@ interface NormalizeRiddleProofProfileOptions {
|
|
|
157
158
|
declare function slugifyRiddleProofProfileName(value: string): string;
|
|
158
159
|
declare function normalizeRiddleProofProfile(input: unknown, options?: NormalizeRiddleProofProfileOptions): RiddleProofProfile;
|
|
159
160
|
declare function resolveRiddleProofProfileTargetUrl(profile: RiddleProofProfile): string;
|
|
161
|
+
declare function resolveRiddleProofProfileTimeoutSec(profile: RiddleProofProfile, requestedTimeoutSec?: number): number | undefined;
|
|
160
162
|
declare function resolveRiddleProofProfileRouteUrl(targetUrl: string, route: string): string;
|
|
161
163
|
declare function assessRiddleProofProfileEvidence(profile: RiddleProofProfile, evidence: RiddleProofProfileEvidence | undefined, options?: {
|
|
162
164
|
runner?: RiddleProofProfileRunner;
|
|
@@ -189,4 +191,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
|
|
|
189
191
|
declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
|
|
190
192
|
declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
|
|
191
193
|
|
|
192
|
-
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
|
194
|
+
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
package/dist/profile.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface RiddleProofProfileTarget {
|
|
|
34
34
|
route?: string;
|
|
35
35
|
viewports: RiddleProofProfileViewport[];
|
|
36
36
|
auth?: "none" | (string & {});
|
|
37
|
+
timeout_sec?: number;
|
|
37
38
|
wait_for_selector?: string;
|
|
38
39
|
wait_ms?: number;
|
|
39
40
|
setup_actions?: RiddleProofProfileSetupAction[];
|
|
@@ -157,6 +158,7 @@ interface NormalizeRiddleProofProfileOptions {
|
|
|
157
158
|
declare function slugifyRiddleProofProfileName(value: string): string;
|
|
158
159
|
declare function normalizeRiddleProofProfile(input: unknown, options?: NormalizeRiddleProofProfileOptions): RiddleProofProfile;
|
|
159
160
|
declare function resolveRiddleProofProfileTargetUrl(profile: RiddleProofProfile): string;
|
|
161
|
+
declare function resolveRiddleProofProfileTimeoutSec(profile: RiddleProofProfile, requestedTimeoutSec?: number): number | undefined;
|
|
160
162
|
declare function resolveRiddleProofProfileRouteUrl(targetUrl: string, route: string): string;
|
|
161
163
|
declare function assessRiddleProofProfileEvidence(profile: RiddleProofProfile, evidence: RiddleProofProfileEvidence | undefined, options?: {
|
|
162
164
|
runner?: RiddleProofProfileRunner;
|
|
@@ -189,4 +191,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
|
|
|
189
191
|
declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
|
|
190
192
|
declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
|
|
191
193
|
|
|
192
|
-
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
|
194
|
+
export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, extractRiddleProofProfileResult, normalizeRiddleProofProfile, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
|
package/dist/profile.js
CHANGED
|
@@ -16,9 +16,10 @@ import {
|
|
|
16
16
|
profileStatusExitCode,
|
|
17
17
|
resolveRiddleProofProfileRouteUrl,
|
|
18
18
|
resolveRiddleProofProfileTargetUrl,
|
|
19
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
19
20
|
slugifyRiddleProofProfileName,
|
|
20
21
|
summarizeRiddleProofProfileResult
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7T5WT2WO.js";
|
|
22
23
|
export {
|
|
23
24
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
24
25
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -37,6 +38,7 @@ export {
|
|
|
37
38
|
profileStatusExitCode,
|
|
38
39
|
resolveRiddleProofProfileRouteUrl,
|
|
39
40
|
resolveRiddleProofProfileTargetUrl,
|
|
41
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
40
42
|
slugifyRiddleProofProfileName,
|
|
41
43
|
summarizeRiddleProofProfileResult
|
|
42
44
|
};
|
|
@@ -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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|