@riddledc/riddle-proof 0.7.154 → 0.7.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +48 -13
- package/dist/cli.js +48 -13
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -14858,7 +14858,7 @@ function runProfileSplitViewportsOption(options) {
|
|
|
14858
14858
|
return optionBoolean(options, "splitViewports") ?? false;
|
|
14859
14859
|
}
|
|
14860
14860
|
var DEFAULT_PROFILE_UNSUBMITTED_RETRY_TIMEOUT_MS = 9e4;
|
|
14861
|
-
var DEFAULT_PROFILE_UNSUBMITTED_RETRIES =
|
|
14861
|
+
var DEFAULT_PROFILE_UNSUBMITTED_RETRIES = 2;
|
|
14862
14862
|
function optionNumber(options, ...keys) {
|
|
14863
14863
|
for (const key of keys) {
|
|
14864
14864
|
const value = optionString(options, key);
|
|
@@ -15393,6 +15393,33 @@ function cliReturnSummaryLabel(value) {
|
|
|
15393
15393
|
}).filter(Boolean);
|
|
15394
15394
|
return parts.length ? parts.join(", ") : void 0;
|
|
15395
15395
|
}
|
|
15396
|
+
function balancedSetupReceiptDetails(groups, limit) {
|
|
15397
|
+
if (limit <= 0) return [];
|
|
15398
|
+
const total = groups.reduce((sum, group) => sum + group.length, 0);
|
|
15399
|
+
if (total <= limit) return groups.flat();
|
|
15400
|
+
const selected = [];
|
|
15401
|
+
const indexes = new Array(groups.length).fill(0);
|
|
15402
|
+
const nonEmptyIndexes = groups.map((group, index) => group.length ? index : -1).filter((index) => index >= 0);
|
|
15403
|
+
for (const index of nonEmptyIndexes) {
|
|
15404
|
+
if (selected.length >= limit) return selected;
|
|
15405
|
+
selected.push(groups[index][0]);
|
|
15406
|
+
indexes[index] = 1;
|
|
15407
|
+
}
|
|
15408
|
+
while (selected.length < limit) {
|
|
15409
|
+
let progressed = false;
|
|
15410
|
+
for (const index of nonEmptyIndexes) {
|
|
15411
|
+
const nextIndex = indexes[index];
|
|
15412
|
+
const next = groups[index][nextIndex];
|
|
15413
|
+
if (!next) continue;
|
|
15414
|
+
selected.push(next);
|
|
15415
|
+
indexes[index] = nextIndex + 1;
|
|
15416
|
+
progressed = true;
|
|
15417
|
+
if (selected.length >= limit) break;
|
|
15418
|
+
}
|
|
15419
|
+
if (!progressed) break;
|
|
15420
|
+
}
|
|
15421
|
+
return selected;
|
|
15422
|
+
}
|
|
15396
15423
|
function cliStringArray(value) {
|
|
15397
15424
|
return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && Boolean(entry.trim())) : [];
|
|
15398
15425
|
}
|
|
@@ -15538,12 +15565,14 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
15538
15565
|
const observedPath = cliString(viewport.observed_path);
|
|
15539
15566
|
lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
|
|
15540
15567
|
}
|
|
15541
|
-
const
|
|
15568
|
+
const rangeValueGroups = viewports.map((viewport) => {
|
|
15542
15569
|
const name = cliString(viewport.name) || "viewport";
|
|
15543
15570
|
const receipts = Array.isArray(viewport.set_range_value) ? viewport.set_range_value.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
15544
15571
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
15545
15572
|
});
|
|
15546
|
-
|
|
15573
|
+
const rangeValueDetails = rangeValueGroups.flat();
|
|
15574
|
+
const sampledRangeValueDetails = balancedSetupReceiptDetails(rangeValueGroups, 12);
|
|
15575
|
+
for (const { name, receipt } of sampledRangeValueDetails) {
|
|
15547
15576
|
const selector = cliString(receipt.selector) || "input[type=range]";
|
|
15548
15577
|
const requested = cliValueLabel(receipt.requested_value);
|
|
15549
15578
|
const actual = cliValueLabel(receipt.actual_value);
|
|
@@ -15556,13 +15585,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
15556
15585
|
const reason = cliString(receipt.reason);
|
|
15557
15586
|
lines.push(`- ${name} set_range_value: ${ok}, ${markdownInlineCode(selector)}${requested === void 0 ? "" : ` requested ${markdownInlineCode(requested, 80)}`}${actual === void 0 ? "" : ` -> ${markdownInlineCode(actual, 80)}`}${before === void 0 ? "" : `, before ${markdownInlineCode(before, 80)}`}${valueAsNumber === void 0 ? "" : `, number ${valueAsNumber}`}${min === void 0 && max === void 0 ? "" : `, range ${min === void 0 ? "?" : markdownInlineCode(min, 40)}..${max === void 0 ? "?" : markdownInlineCode(max, 40)}`}${step === void 0 ? "" : ` step ${markdownInlineCode(step, 40)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
15558
15587
|
}
|
|
15559
|
-
if (rangeValueDetails.length >
|
|
15560
|
-
const
|
|
15588
|
+
if (rangeValueDetails.length > sampledRangeValueDetails.length) lines.push(`- ${rangeValueDetails.length - sampledRangeValueDetails.length} additional set_range_value receipt(s) omitted.`);
|
|
15589
|
+
const windowCallGroups = viewports.map((viewport) => {
|
|
15561
15590
|
const name = cliString(viewport.name) || "viewport";
|
|
15562
15591
|
const receipts = Array.isArray(viewport.window_call) ? viewport.window_call.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
15563
15592
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
15564
15593
|
});
|
|
15565
|
-
|
|
15594
|
+
const windowCallDetails = windowCallGroups.flat();
|
|
15595
|
+
const sampledWindowCallDetails = balancedSetupReceiptDetails(windowCallGroups, 12);
|
|
15596
|
+
for (const { name, receipt } of sampledWindowCallDetails) {
|
|
15566
15597
|
const path7 = cliString(receipt.path) || "window_function";
|
|
15567
15598
|
const storedTo = cliString(receipt.return_stored_to);
|
|
15568
15599
|
const returned = cliValueLabel(receipt.returned);
|
|
@@ -15573,13 +15604,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
15573
15604
|
const reason = cliString(receipt.reason);
|
|
15574
15605
|
lines.push(`- ${name} window_call: ${ok}, ${markdownInlineCode(path7)}${storedTo ? `, stored ${markdownInlineCode(storedTo)}` : ""}, return ${captured}${expected === void 0 ? "" : `, expected ${markdownInlineCode(expected, 80)}`}${returnSummary ? `, summary ${markdownInlineCode(returnSummary, 140)}` : ""}${returned === void 0 ? "" : `, returned ${markdownInlineCode(returned, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
15575
15606
|
}
|
|
15576
|
-
if (windowCallDetails.length >
|
|
15577
|
-
const
|
|
15607
|
+
if (windowCallDetails.length > sampledWindowCallDetails.length) lines.push(`- ${windowCallDetails.length - sampledWindowCallDetails.length} additional window_call receipt(s) omitted.`);
|
|
15608
|
+
const windowEvalGroups = viewports.map((viewport) => {
|
|
15578
15609
|
const name = cliString(viewport.name) || "viewport";
|
|
15579
15610
|
const receipts = Array.isArray(viewport.window_eval) ? viewport.window_eval.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
15580
15611
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
15581
15612
|
});
|
|
15582
|
-
|
|
15613
|
+
const windowEvalDetails = windowEvalGroups.flat();
|
|
15614
|
+
const sampledWindowEvalDetails = balancedSetupReceiptDetails(windowEvalGroups, 12);
|
|
15615
|
+
for (const { name, receipt } of sampledWindowEvalDetails) {
|
|
15583
15616
|
const scriptLength = cliFiniteNumber(receipt.script_length);
|
|
15584
15617
|
const storedTo = cliString(receipt.return_stored_to);
|
|
15585
15618
|
const returned = cliValueLabel(receipt.returned);
|
|
@@ -15590,13 +15623,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
15590
15623
|
const reason = cliString(receipt.reason);
|
|
15591
15624
|
lines.push(`- ${name} window_eval: ${ok}${scriptLength === void 0 ? "" : `, script ${scriptLength} chars`}${storedTo ? `, stored ${markdownInlineCode(storedTo)}` : ""}, return ${captured}${expected === void 0 ? "" : `, expected ${markdownInlineCode(expected, 80)}`}${returnSummary ? `, summary ${markdownInlineCode(returnSummary, 140)}` : ""}${returned === void 0 ? "" : `, returned ${markdownInlineCode(returned, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
15592
15625
|
}
|
|
15593
|
-
if (windowEvalDetails.length >
|
|
15594
|
-
const
|
|
15626
|
+
if (windowEvalDetails.length > sampledWindowEvalDetails.length) lines.push(`- ${windowEvalDetails.length - sampledWindowEvalDetails.length} additional window_eval receipt(s) omitted.`);
|
|
15627
|
+
const windowCallUntilGroups = viewports.map((viewport) => {
|
|
15595
15628
|
const name = cliString(viewport.name) || "viewport";
|
|
15596
15629
|
const receipts = Array.isArray(viewport.window_call_until) ? viewport.window_call_until.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
15597
15630
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
15598
15631
|
});
|
|
15599
|
-
|
|
15632
|
+
const windowCallUntilDetails = windowCallUntilGroups.flat();
|
|
15633
|
+
const sampledWindowCallUntilDetails = balancedSetupReceiptDetails(windowCallUntilGroups, 12);
|
|
15634
|
+
for (const { name, receipt } of sampledWindowCallUntilDetails) {
|
|
15600
15635
|
const path7 = cliString(receipt.path) || "window_function";
|
|
15601
15636
|
const untilPath = cliString(receipt.until_path) || "until_path";
|
|
15602
15637
|
const expected = cliValueLabel(receipt.until_expected_value);
|
|
@@ -15608,7 +15643,7 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
15608
15643
|
const callText = callCount === void 0 ? "" : ` in ${callCount}${maxCalls === void 0 ? "" : `/${maxCalls}`} call(s)`;
|
|
15609
15644
|
lines.push(`- ${name} window_call_until: ${ok}, ${markdownInlineCode(path7)} until ${markdownInlineCode(untilPath)}${expected === void 0 ? "" : ` == ${markdownInlineCode(expected, 80)}`}${callText}${actual === void 0 ? "" : `, observed ${markdownInlineCode(actual, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
15610
15645
|
}
|
|
15611
|
-
if (windowCallUntilDetails.length >
|
|
15646
|
+
if (windowCallUntilDetails.length > sampledWindowCallUntilDetails.length) lines.push(`- ${windowCallUntilDetails.length - sampledWindowCallUntilDetails.length} additional window_call_until receipt(s) omitted.`);
|
|
15612
15647
|
const failedDetails = viewports.flatMap((viewport) => {
|
|
15613
15648
|
const name = cliString(viewport.name) || "viewport";
|
|
15614
15649
|
const failed = Array.isArray(viewport.failed) ? viewport.failed.map(cliRecord).filter((item) => Boolean(item)) : [];
|
package/dist/cli.js
CHANGED
|
@@ -109,7 +109,7 @@ function runProfileSplitViewportsOption(options) {
|
|
|
109
109
|
return optionBoolean(options, "splitViewports") ?? false;
|
|
110
110
|
}
|
|
111
111
|
var DEFAULT_PROFILE_UNSUBMITTED_RETRY_TIMEOUT_MS = 9e4;
|
|
112
|
-
var DEFAULT_PROFILE_UNSUBMITTED_RETRIES =
|
|
112
|
+
var DEFAULT_PROFILE_UNSUBMITTED_RETRIES = 2;
|
|
113
113
|
function optionNumber(options, ...keys) {
|
|
114
114
|
for (const key of keys) {
|
|
115
115
|
const value = optionString(options, key);
|
|
@@ -644,6 +644,33 @@ function cliReturnSummaryLabel(value) {
|
|
|
644
644
|
}).filter(Boolean);
|
|
645
645
|
return parts.length ? parts.join(", ") : void 0;
|
|
646
646
|
}
|
|
647
|
+
function balancedSetupReceiptDetails(groups, limit) {
|
|
648
|
+
if (limit <= 0) return [];
|
|
649
|
+
const total = groups.reduce((sum, group) => sum + group.length, 0);
|
|
650
|
+
if (total <= limit) return groups.flat();
|
|
651
|
+
const selected = [];
|
|
652
|
+
const indexes = new Array(groups.length).fill(0);
|
|
653
|
+
const nonEmptyIndexes = groups.map((group, index) => group.length ? index : -1).filter((index) => index >= 0);
|
|
654
|
+
for (const index of nonEmptyIndexes) {
|
|
655
|
+
if (selected.length >= limit) return selected;
|
|
656
|
+
selected.push(groups[index][0]);
|
|
657
|
+
indexes[index] = 1;
|
|
658
|
+
}
|
|
659
|
+
while (selected.length < limit) {
|
|
660
|
+
let progressed = false;
|
|
661
|
+
for (const index of nonEmptyIndexes) {
|
|
662
|
+
const nextIndex = indexes[index];
|
|
663
|
+
const next = groups[index][nextIndex];
|
|
664
|
+
if (!next) continue;
|
|
665
|
+
selected.push(next);
|
|
666
|
+
indexes[index] = nextIndex + 1;
|
|
667
|
+
progressed = true;
|
|
668
|
+
if (selected.length >= limit) break;
|
|
669
|
+
}
|
|
670
|
+
if (!progressed) break;
|
|
671
|
+
}
|
|
672
|
+
return selected;
|
|
673
|
+
}
|
|
647
674
|
function cliStringArray(value) {
|
|
648
675
|
return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && Boolean(entry.trim())) : [];
|
|
649
676
|
}
|
|
@@ -789,12 +816,14 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
789
816
|
const observedPath = cliString(viewport.observed_path);
|
|
790
817
|
lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
|
|
791
818
|
}
|
|
792
|
-
const
|
|
819
|
+
const rangeValueGroups = viewports.map((viewport) => {
|
|
793
820
|
const name = cliString(viewport.name) || "viewport";
|
|
794
821
|
const receipts = Array.isArray(viewport.set_range_value) ? viewport.set_range_value.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
795
822
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
796
823
|
});
|
|
797
|
-
|
|
824
|
+
const rangeValueDetails = rangeValueGroups.flat();
|
|
825
|
+
const sampledRangeValueDetails = balancedSetupReceiptDetails(rangeValueGroups, 12);
|
|
826
|
+
for (const { name, receipt } of sampledRangeValueDetails) {
|
|
798
827
|
const selector = cliString(receipt.selector) || "input[type=range]";
|
|
799
828
|
const requested = cliValueLabel(receipt.requested_value);
|
|
800
829
|
const actual = cliValueLabel(receipt.actual_value);
|
|
@@ -807,13 +836,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
807
836
|
const reason = cliString(receipt.reason);
|
|
808
837
|
lines.push(`- ${name} set_range_value: ${ok}, ${markdownInlineCode(selector)}${requested === void 0 ? "" : ` requested ${markdownInlineCode(requested, 80)}`}${actual === void 0 ? "" : ` -> ${markdownInlineCode(actual, 80)}`}${before === void 0 ? "" : `, before ${markdownInlineCode(before, 80)}`}${valueAsNumber === void 0 ? "" : `, number ${valueAsNumber}`}${min === void 0 && max === void 0 ? "" : `, range ${min === void 0 ? "?" : markdownInlineCode(min, 40)}..${max === void 0 ? "?" : markdownInlineCode(max, 40)}`}${step === void 0 ? "" : ` step ${markdownInlineCode(step, 40)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
809
838
|
}
|
|
810
|
-
if (rangeValueDetails.length >
|
|
811
|
-
const
|
|
839
|
+
if (rangeValueDetails.length > sampledRangeValueDetails.length) lines.push(`- ${rangeValueDetails.length - sampledRangeValueDetails.length} additional set_range_value receipt(s) omitted.`);
|
|
840
|
+
const windowCallGroups = viewports.map((viewport) => {
|
|
812
841
|
const name = cliString(viewport.name) || "viewport";
|
|
813
842
|
const receipts = Array.isArray(viewport.window_call) ? viewport.window_call.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
814
843
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
815
844
|
});
|
|
816
|
-
|
|
845
|
+
const windowCallDetails = windowCallGroups.flat();
|
|
846
|
+
const sampledWindowCallDetails = balancedSetupReceiptDetails(windowCallGroups, 12);
|
|
847
|
+
for (const { name, receipt } of sampledWindowCallDetails) {
|
|
817
848
|
const path2 = cliString(receipt.path) || "window_function";
|
|
818
849
|
const storedTo = cliString(receipt.return_stored_to);
|
|
819
850
|
const returned = cliValueLabel(receipt.returned);
|
|
@@ -824,13 +855,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
824
855
|
const reason = cliString(receipt.reason);
|
|
825
856
|
lines.push(`- ${name} window_call: ${ok}, ${markdownInlineCode(path2)}${storedTo ? `, stored ${markdownInlineCode(storedTo)}` : ""}, return ${captured}${expected === void 0 ? "" : `, expected ${markdownInlineCode(expected, 80)}`}${returnSummary ? `, summary ${markdownInlineCode(returnSummary, 140)}` : ""}${returned === void 0 ? "" : `, returned ${markdownInlineCode(returned, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
826
857
|
}
|
|
827
|
-
if (windowCallDetails.length >
|
|
828
|
-
const
|
|
858
|
+
if (windowCallDetails.length > sampledWindowCallDetails.length) lines.push(`- ${windowCallDetails.length - sampledWindowCallDetails.length} additional window_call receipt(s) omitted.`);
|
|
859
|
+
const windowEvalGroups = viewports.map((viewport) => {
|
|
829
860
|
const name = cliString(viewport.name) || "viewport";
|
|
830
861
|
const receipts = Array.isArray(viewport.window_eval) ? viewport.window_eval.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
831
862
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
832
863
|
});
|
|
833
|
-
|
|
864
|
+
const windowEvalDetails = windowEvalGroups.flat();
|
|
865
|
+
const sampledWindowEvalDetails = balancedSetupReceiptDetails(windowEvalGroups, 12);
|
|
866
|
+
for (const { name, receipt } of sampledWindowEvalDetails) {
|
|
834
867
|
const scriptLength = cliFiniteNumber(receipt.script_length);
|
|
835
868
|
const storedTo = cliString(receipt.return_stored_to);
|
|
836
869
|
const returned = cliValueLabel(receipt.returned);
|
|
@@ -841,13 +874,15 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
841
874
|
const reason = cliString(receipt.reason);
|
|
842
875
|
lines.push(`- ${name} window_eval: ${ok}${scriptLength === void 0 ? "" : `, script ${scriptLength} chars`}${storedTo ? `, stored ${markdownInlineCode(storedTo)}` : ""}, return ${captured}${expected === void 0 ? "" : `, expected ${markdownInlineCode(expected, 80)}`}${returnSummary ? `, summary ${markdownInlineCode(returnSummary, 140)}` : ""}${returned === void 0 ? "" : `, returned ${markdownInlineCode(returned, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
843
876
|
}
|
|
844
|
-
if (windowEvalDetails.length >
|
|
845
|
-
const
|
|
877
|
+
if (windowEvalDetails.length > sampledWindowEvalDetails.length) lines.push(`- ${windowEvalDetails.length - sampledWindowEvalDetails.length} additional window_eval receipt(s) omitted.`);
|
|
878
|
+
const windowCallUntilGroups = viewports.map((viewport) => {
|
|
846
879
|
const name = cliString(viewport.name) || "viewport";
|
|
847
880
|
const receipts = Array.isArray(viewport.window_call_until) ? viewport.window_call_until.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
848
881
|
return receipts.map((receipt) => ({ name, receipt }));
|
|
849
882
|
});
|
|
850
|
-
|
|
883
|
+
const windowCallUntilDetails = windowCallUntilGroups.flat();
|
|
884
|
+
const sampledWindowCallUntilDetails = balancedSetupReceiptDetails(windowCallUntilGroups, 12);
|
|
885
|
+
for (const { name, receipt } of sampledWindowCallUntilDetails) {
|
|
851
886
|
const path2 = cliString(receipt.path) || "window_function";
|
|
852
887
|
const untilPath = cliString(receipt.until_path) || "until_path";
|
|
853
888
|
const expected = cliValueLabel(receipt.until_expected_value);
|
|
@@ -859,7 +894,7 @@ function profileSetupSummaryMarkdown(result) {
|
|
|
859
894
|
const callText = callCount === void 0 ? "" : ` in ${callCount}${maxCalls === void 0 ? "" : `/${maxCalls}`} call(s)`;
|
|
860
895
|
lines.push(`- ${name} window_call_until: ${ok}, ${markdownInlineCode(path2)} until ${markdownInlineCode(untilPath)}${expected === void 0 ? "" : ` == ${markdownInlineCode(expected, 80)}`}${callText}${actual === void 0 ? "" : `, observed ${markdownInlineCode(actual, 80)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
|
|
861
896
|
}
|
|
862
|
-
if (windowCallUntilDetails.length >
|
|
897
|
+
if (windowCallUntilDetails.length > sampledWindowCallUntilDetails.length) lines.push(`- ${windowCallUntilDetails.length - sampledWindowCallUntilDetails.length} additional window_call_until receipt(s) omitted.`);
|
|
863
898
|
const failedDetails = viewports.flatMap((viewport) => {
|
|
864
899
|
const name = cliString(viewport.name) || "viewport";
|
|
865
900
|
const failed = Array.isArray(viewport.failed) ? viewport.failed.map(cliRecord).filter((item) => Boolean(item)) : [];
|
|
@@ -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;
|