@riddledc/riddle-proof 0.7.16 → 0.7.17
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/{chunk-PZYQGRQ5.js → chunk-7T5WT2WO.js} +9 -0
- package/dist/cli.cjs +12 -1
- package/dist/cli.js +7 -3
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- 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
|
|
|
@@ -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,
|
|
@@ -8561,6 +8562,10 @@ function stringValue5(value) {
|
|
|
8561
8562
|
function numberValue3(value) {
|
|
8562
8563
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
8563
8564
|
}
|
|
8565
|
+
function timeoutSecValue(value) {
|
|
8566
|
+
const number = numberValue3(value);
|
|
8567
|
+
return number && number > 0 ? Math.ceil(number) : void 0;
|
|
8568
|
+
}
|
|
8564
8569
|
function jsonRecord(value) {
|
|
8565
8570
|
if (!isRecord2(value)) return void 0;
|
|
8566
8571
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, toJsonValue(child)]));
|
|
@@ -8702,6 +8707,7 @@ function normalizeRiddleProofProfile(input, options = {}) {
|
|
|
8702
8707
|
route,
|
|
8703
8708
|
viewports: options.viewports?.length ? options.viewports : normalizeViewports(targetInput.viewports),
|
|
8704
8709
|
auth: stringValue5(targetInput.auth) || "none",
|
|
8710
|
+
timeout_sec: timeoutSecValue(targetInput.timeout_sec) ?? timeoutSecValue(targetInput.timeoutSec) ?? timeoutSecValue(targetInput.riddle_timeout_sec) ?? timeoutSecValue(targetInput.riddleTimeoutSec),
|
|
8705
8711
|
wait_for_selector: stringValue5(targetInput.wait_for_selector) || stringValue5(targetInput.waitForSelector),
|
|
8706
8712
|
wait_ms: numberValue3(targetInput.wait_ms) ?? numberValue3(targetInput.waitMs),
|
|
8707
8713
|
setup_actions: normalizeSetupActions(targetInput.setup_actions ?? targetInput.setupActions)
|
|
@@ -8721,6 +8727,9 @@ function resolveRiddleProofProfileTargetUrl(profile) {
|
|
|
8721
8727
|
if (targetUrl) return targetUrl;
|
|
8722
8728
|
throw new Error("profile target URL could not be resolved.");
|
|
8723
8729
|
}
|
|
8730
|
+
function resolveRiddleProofProfileTimeoutSec(profile, requestedTimeoutSec) {
|
|
8731
|
+
return timeoutSecValue(requestedTimeoutSec) ?? timeoutSecValue(profile.target.timeout_sec);
|
|
8732
|
+
}
|
|
8724
8733
|
function routeForViewport(viewport, targetUrl) {
|
|
8725
8734
|
if (viewport?.route) {
|
|
8726
8735
|
return {
|
|
@@ -9954,6 +9963,7 @@ function createRiddleApiClient(config = {}) {
|
|
|
9954
9963
|
resolveRiddleApiKey,
|
|
9955
9964
|
resolveRiddleProofProfileRouteUrl,
|
|
9956
9965
|
resolveRiddleProofProfileTargetUrl,
|
|
9966
|
+
resolveRiddleProofProfileTimeoutSec,
|
|
9957
9967
|
riddleRequestJson,
|
|
9958
9968
|
runCodexExecAgentDoctor,
|
|
9959
9969
|
runLocalAgentDoctor,
|
package/dist/index.d.cts
CHANGED
|
@@ -10,5 +10,5 @@ export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_D
|
|
|
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
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';
|
|
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
|
@@ -10,5 +10,5 @@ export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_D
|
|
|
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
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';
|
|
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
|
@@ -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: "recon" | "author" | "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: "recon" | "author" | "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: "recon" | "author" | "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: "recon" | "author" | "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: "recon" | "author" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|