ccqa 1.58.0 → 1.58.1
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/bin/ccqa.mjs
CHANGED
|
@@ -15464,7 +15464,7 @@ const JUDGE_CALL = "judgeByLlm";
|
|
|
15464
15464
|
* would notice.
|
|
15465
15465
|
*/
|
|
15466
15466
|
function headerPreserveRule(header, titleSuffix) {
|
|
15467
|
-
const parts = [header ? `the comment block
|
|
15467
|
+
const parts = [header ? `the comment block right below the draft's imports, verbatim` : "", titleSuffix ? `the \`${titleSuffix.trim()}\` suffix on the test's name` : ""].filter(Boolean);
|
|
15468
15468
|
return `**Keep ${parts.join(" and ")}.** Written from the case's own record, not decided per test; do not reword, move, or drop ${parts.length > 1 ? "either" : "it"}.`;
|
|
15469
15469
|
}
|
|
15470
15470
|
/**
|
|
@@ -15554,11 +15554,11 @@ function emitPlaywrightDraft(input) {
|
|
|
15554
15554
|
] : []
|
|
15555
15555
|
];
|
|
15556
15556
|
const source = [
|
|
15557
|
-
...input.header ? [input.header.trimEnd(), ""] : [],
|
|
15558
15557
|
`import { test, expect } from "@playwright/test";`,
|
|
15559
15558
|
...judgements.length > 0 ? [`import { ${JUDGE_CALL} } from ${j(JUDGE_MODULE)};`] : [],
|
|
15560
15559
|
...runId ? [runId.import] : [],
|
|
15561
15560
|
"",
|
|
15561
|
+
...input.header ? [input.header.trimEnd(), ""] : [],
|
|
15562
15562
|
...declaration,
|
|
15563
15563
|
""
|
|
15564
15564
|
].join("\n");
|
|
@@ -16208,7 +16208,7 @@ function injectedCallGaps(corpus, { markers, judgements, header, titleSuffix })
|
|
|
16208
16208
|
warnings.push(`step ${stepId}: the generated test no longer opens that step with the \`test.step\` title the draft wrote. The evidence table, the run's screenshots and the spec review read it back to attribute assertions, so a reshaped one makes all three report the step as deciding nothing. Keep the title unchanged.`);
|
|
16209
16209
|
}
|
|
16210
16210
|
const firstHeaderLine = stamped.header.split("\n")[0]?.trim() ?? "";
|
|
16211
|
-
if (firstHeaderLine && !corpus.includes(firstHeaderLine)) warnings.push("the generated test no longer
|
|
16211
|
+
if (firstHeaderLine && !corpus.includes(firstHeaderLine)) warnings.push("the generated test no longer carries the configured header — a rewrite pass dropped it, so the file does not say which case it came from");
|
|
16212
16212
|
if (stamped.titleSuffix && !corpus.includes(stamped.titleSuffix.trim())) warnings.push(`the generated test's name no longer ends with "${stamped.titleSuffix.trim()}" — a rewrite pass dropped the tag, and whatever selects tests by it will skip this one`);
|
|
16213
16213
|
for (const { step } of judgements) {
|
|
16214
16214
|
if (judgeCall(step).pattern.test(corpus)) continue;
|
|
@@ -35,9 +35,9 @@ declare const RunSchema: z.ZodObject<{
|
|
|
35
35
|
running: "running";
|
|
36
36
|
}>;
|
|
37
37
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
record: "record";
|
|
38
39
|
run: "run";
|
|
39
40
|
drift: "drift";
|
|
40
|
-
record: "record";
|
|
41
41
|
}>>;
|
|
42
42
|
drift: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
specs: z.ZodNumber;
|
|
@@ -831,9 +831,9 @@ type ReportSpecResult = z.infer<typeof ReportSpecResultSchema>;
|
|
|
831
831
|
declare const RunReportDataSchema: z.ZodObject<{
|
|
832
832
|
schemaVersion: z.ZodLiteral<1>;
|
|
833
833
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
834
|
+
record: "record";
|
|
834
835
|
run: "run";
|
|
835
836
|
drift: "drift";
|
|
836
|
-
record: "record";
|
|
837
837
|
}>>;
|
|
838
838
|
createdAt: z.ZodString;
|
|
839
839
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -35,9 +35,9 @@ declare const RunSchema: z.ZodObject<{
|
|
|
35
35
|
running: "running";
|
|
36
36
|
}>;
|
|
37
37
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
record: "record";
|
|
38
39
|
run: "run";
|
|
39
40
|
drift: "drift";
|
|
40
|
-
record: "record";
|
|
41
41
|
}>>;
|
|
42
42
|
drift: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
specs: z.ZodNumber;
|
|
@@ -831,9 +831,9 @@ type ReportSpecResult = z.infer<typeof ReportSpecResultSchema>;
|
|
|
831
831
|
declare const RunReportDataSchema: z.ZodObject<{
|
|
832
832
|
schemaVersion: z.ZodLiteral<1>;
|
|
833
833
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
834
|
+
record: "record";
|
|
834
835
|
run: "run";
|
|
835
836
|
drift: "drift";
|
|
836
|
-
record: "record";
|
|
837
837
|
}>>;
|
|
838
838
|
createdAt: z.ZodString;
|
|
839
839
|
runId: z.ZodNullable<z.ZodString>;
|
package/dist/package.json
CHANGED