@riddledc/riddle-proof 0.7.131 → 0.7.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZYD2SGEM.js → chunk-PKE223TX.js} +6 -2
- package/dist/cli.cjs +19 -2
- package/dist/cli.js +14 -1
- package/dist/index.cjs +6 -2
- package/dist/index.js +1 -1
- package/dist/profile.cjs +6 -2
- package/dist/profile.js +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
|
@@ -515,14 +515,16 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
515
515
|
action: profileSetupResultAction(result),
|
|
516
516
|
selector: result.selector ?? null,
|
|
517
517
|
frame_selector: result.frame_selector ?? null,
|
|
518
|
-
reason: result.reason ?? result.error ?? null
|
|
518
|
+
reason: result.reason ?? result.error ?? null,
|
|
519
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
519
520
|
})),
|
|
520
521
|
optional_failed: optionalFailed.map((result) => ({
|
|
521
522
|
ordinal: result.ordinal ?? null,
|
|
522
523
|
action: profileSetupResultAction(result),
|
|
523
524
|
selector: result.selector ?? null,
|
|
524
525
|
frame_selector: result.frame_selector ?? null,
|
|
525
|
-
reason: result.reason ?? result.error ?? null
|
|
526
|
+
reason: result.reason ?? result.error ?? null,
|
|
527
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
526
528
|
}))
|
|
527
529
|
};
|
|
528
530
|
})
|
|
@@ -3687,6 +3689,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
3687
3689
|
selector: result.selector ?? null,
|
|
3688
3690
|
frame_selector: result.frame_selector ?? null,
|
|
3689
3691
|
reason: result.reason || result.error || null,
|
|
3692
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
3690
3693
|
})),
|
|
3691
3694
|
optional_failed: optionalFailed.map((result) => ({
|
|
3692
3695
|
ordinal: result.ordinal ?? null,
|
|
@@ -3694,6 +3697,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
3694
3697
|
selector: result.selector ?? null,
|
|
3695
3698
|
frame_selector: result.frame_selector ?? null,
|
|
3696
3699
|
reason: result.reason || result.error || null,
|
|
3700
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
3697
3701
|
})),
|
|
3698
3702
|
};
|
|
3699
3703
|
}),
|
package/dist/cli.cjs
CHANGED
|
@@ -7452,14 +7452,16 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
7452
7452
|
action: profileSetupResultAction(result),
|
|
7453
7453
|
selector: result.selector ?? null,
|
|
7454
7454
|
frame_selector: result.frame_selector ?? null,
|
|
7455
|
-
reason: result.reason ?? result.error ?? null
|
|
7455
|
+
reason: result.reason ?? result.error ?? null,
|
|
7456
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
7456
7457
|
})),
|
|
7457
7458
|
optional_failed: optionalFailed.map((result) => ({
|
|
7458
7459
|
ordinal: result.ordinal ?? null,
|
|
7459
7460
|
action: profileSetupResultAction(result),
|
|
7460
7461
|
selector: result.selector ?? null,
|
|
7461
7462
|
frame_selector: result.frame_selector ?? null,
|
|
7462
|
-
reason: result.reason ?? result.error ?? null
|
|
7463
|
+
reason: result.reason ?? result.error ?? null,
|
|
7464
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
7463
7465
|
}))
|
|
7464
7466
|
};
|
|
7465
7467
|
})
|
|
@@ -10608,6 +10610,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
10608
10610
|
selector: result.selector ?? null,
|
|
10609
10611
|
frame_selector: result.frame_selector ?? null,
|
|
10610
10612
|
reason: result.reason || result.error || null,
|
|
10613
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
10611
10614
|
})),
|
|
10612
10615
|
optional_failed: optionalFailed.map((result) => ({
|
|
10613
10616
|
ordinal: result.ordinal ?? null,
|
|
@@ -10615,6 +10618,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
10615
10618
|
selector: result.selector ?? null,
|
|
10616
10619
|
frame_selector: result.frame_selector ?? null,
|
|
10617
10620
|
reason: result.reason || result.error || null,
|
|
10621
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
10618
10622
|
})),
|
|
10619
10623
|
};
|
|
10620
10624
|
}),
|
|
@@ -14325,6 +14329,19 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
14325
14329
|
const observedPath = cliString(viewport.observed_path);
|
|
14326
14330
|
lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
|
|
14327
14331
|
}
|
|
14332
|
+
const failedDetails = viewports.flatMap((viewport) => {
|
|
14333
|
+
const name = cliString(viewport.name) || "viewport";
|
|
14334
|
+
const failed = Array.isArray(viewport.failed) ? viewport.failed.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
14335
|
+
return failed.map((failure) => ({ name, failure }));
|
|
14336
|
+
});
|
|
14337
|
+
for (const { name, failure } of failedDetails.slice(0, 8)) {
|
|
14338
|
+
const action = cliString(failure.action) || "setup_action";
|
|
14339
|
+
const selector = cliString(failure.selector);
|
|
14340
|
+
const reason = cliString(failure.reason);
|
|
14341
|
+
const caseInsensitiveText = cliString(failure.case_insensitive_text);
|
|
14342
|
+
lines.push(`- failed ${name}: ${action}${selector ? ` ${markdownInlineCode(selector)}` : ""}${reason ? ` reason ${markdownInlineCode(reason)}` : ""}${caseInsensitiveText ? `; case-insensitive sample ${markdownInlineCode(caseInsensitiveText, 140)}` : ""}`);
|
|
14343
|
+
}
|
|
14344
|
+
if (failedDetails.length > 8) lines.push(`- ${failedDetails.length - 8} additional failed setup action(s) omitted.`);
|
|
14328
14345
|
if (viewports.length > 8) lines.push(`- ${viewports.length - 8} additional viewport(s) omitted from setup summary.`);
|
|
14329
14346
|
return lines;
|
|
14330
14347
|
}
|
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
profileStatusExitCode,
|
|
13
13
|
resolveRiddleProofProfileTargetUrl,
|
|
14
14
|
resolveRiddleProofProfileTimeoutSec
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PKE223TX.js";
|
|
16
16
|
import {
|
|
17
17
|
createRiddleApiClient,
|
|
18
18
|
parseRiddleViewport
|
|
@@ -605,6 +605,19 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
605
605
|
const observedPath = cliString(viewport.observed_path);
|
|
606
606
|
lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
|
|
607
607
|
}
|
|
608
|
+
const failedDetails = viewports.flatMap((viewport) => {
|
|
609
|
+
const name = cliString(viewport.name) || "viewport";
|
|
610
|
+
const failed = Array.isArray(viewport.failed) ? viewport.failed.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
611
|
+
return failed.map((failure) => ({ name, failure }));
|
|
612
|
+
});
|
|
613
|
+
for (const { name, failure } of failedDetails.slice(0, 8)) {
|
|
614
|
+
const action = cliString(failure.action) || "setup_action";
|
|
615
|
+
const selector = cliString(failure.selector);
|
|
616
|
+
const reason = cliString(failure.reason);
|
|
617
|
+
const caseInsensitiveText = cliString(failure.case_insensitive_text);
|
|
618
|
+
lines.push(`- failed ${name}: ${action}${selector ? ` ${markdownInlineCode(selector)}` : ""}${reason ? ` reason ${markdownInlineCode(reason)}` : ""}${caseInsensitiveText ? `; case-insensitive sample ${markdownInlineCode(caseInsensitiveText, 140)}` : ""}`);
|
|
619
|
+
}
|
|
620
|
+
if (failedDetails.length > 8) lines.push(`- ${failedDetails.length - 8} additional failed setup action(s) omitted.`);
|
|
608
621
|
if (viewports.length > 8) lines.push(`- ${viewports.length - 8} additional viewport(s) omitted from setup summary.`);
|
|
609
622
|
return lines;
|
|
610
623
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -9248,14 +9248,16 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
9248
9248
|
action: profileSetupResultAction(result),
|
|
9249
9249
|
selector: result.selector ?? null,
|
|
9250
9250
|
frame_selector: result.frame_selector ?? null,
|
|
9251
|
-
reason: result.reason ?? result.error ?? null
|
|
9251
|
+
reason: result.reason ?? result.error ?? null,
|
|
9252
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
9252
9253
|
})),
|
|
9253
9254
|
optional_failed: optionalFailed.map((result) => ({
|
|
9254
9255
|
ordinal: result.ordinal ?? null,
|
|
9255
9256
|
action: profileSetupResultAction(result),
|
|
9256
9257
|
selector: result.selector ?? null,
|
|
9257
9258
|
frame_selector: result.frame_selector ?? null,
|
|
9258
|
-
reason: result.reason ?? result.error ?? null
|
|
9259
|
+
reason: result.reason ?? result.error ?? null,
|
|
9260
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
9259
9261
|
}))
|
|
9260
9262
|
};
|
|
9261
9263
|
})
|
|
@@ -12420,6 +12422,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
12420
12422
|
selector: result.selector ?? null,
|
|
12421
12423
|
frame_selector: result.frame_selector ?? null,
|
|
12422
12424
|
reason: result.reason || result.error || null,
|
|
12425
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
12423
12426
|
})),
|
|
12424
12427
|
optional_failed: optionalFailed.map((result) => ({
|
|
12425
12428
|
ordinal: result.ordinal ?? null,
|
|
@@ -12427,6 +12430,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
12427
12430
|
selector: result.selector ?? null,
|
|
12428
12431
|
frame_selector: result.frame_selector ?? null,
|
|
12429
12432
|
reason: result.reason || result.error || null,
|
|
12433
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
12430
12434
|
})),
|
|
12431
12435
|
};
|
|
12432
12436
|
}),
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
resolveRiddleProofProfileTimeoutSec,
|
|
63
63
|
slugifyRiddleProofProfileName,
|
|
64
64
|
summarizeRiddleProofProfileResult
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PKE223TX.js";
|
|
66
66
|
import {
|
|
67
67
|
DEFAULT_RIDDLE_API_BASE_URL,
|
|
68
68
|
DEFAULT_RIDDLE_API_KEY_FILE,
|
package/dist/profile.cjs
CHANGED
|
@@ -562,14 +562,16 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
562
562
|
action: profileSetupResultAction(result),
|
|
563
563
|
selector: result.selector ?? null,
|
|
564
564
|
frame_selector: result.frame_selector ?? null,
|
|
565
|
-
reason: result.reason ?? result.error ?? null
|
|
565
|
+
reason: result.reason ?? result.error ?? null,
|
|
566
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
566
567
|
})),
|
|
567
568
|
optional_failed: optionalFailed.map((result) => ({
|
|
568
569
|
ordinal: result.ordinal ?? null,
|
|
569
570
|
action: profileSetupResultAction(result),
|
|
570
571
|
selector: result.selector ?? null,
|
|
571
572
|
frame_selector: result.frame_selector ?? null,
|
|
572
|
-
reason: result.reason ?? result.error ?? null
|
|
573
|
+
reason: result.reason ?? result.error ?? null,
|
|
574
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text)
|
|
573
575
|
}))
|
|
574
576
|
};
|
|
575
577
|
})
|
|
@@ -3734,6 +3736,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
3734
3736
|
selector: result.selector ?? null,
|
|
3735
3737
|
frame_selector: result.frame_selector ?? null,
|
|
3736
3738
|
reason: result.reason || result.error || null,
|
|
3739
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
3737
3740
|
})),
|
|
3738
3741
|
optional_failed: optionalFailed.map((result) => ({
|
|
3739
3742
|
ordinal: result.ordinal ?? null,
|
|
@@ -3741,6 +3744,7 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
3741
3744
|
selector: result.selector ?? null,
|
|
3742
3745
|
frame_selector: result.frame_selector ?? null,
|
|
3743
3746
|
reason: result.reason || result.error || null,
|
|
3747
|
+
case_insensitive_text: compactProfileSetupSummaryText(result.case_insensitive_text),
|
|
3744
3748
|
})),
|
|
3745
3749
|
};
|
|
3746
3750
|
}),
|
package/dist/profile.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveRiddleProofProfileTimeoutSec,
|
|
24
24
|
slugifyRiddleProofProfileName,
|
|
25
25
|
summarizeRiddleProofProfileResult
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PKE223TX.js";
|
|
27
27
|
export {
|
|
28
28
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
29
29
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|