ccqa 1.26.0 → 1.26.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
@@ -20747,7 +20747,7 @@ const CLIENT_JS = `
20747
20747
  // Shared by the runs-list row and the run-detail header — the one place
20748
20748
  // both decide whether a run's own status badge speaks drift's vocabulary.
20749
20749
  function runStatusBadge(run) {
20750
- return run.kind === "drift" ? driftFoundBadge(driftRunState(run), "drift.run.") : statusBadge(run.status);
20750
+ return answersDrift(run) ? driftFoundBadge(driftRunState(run), "drift.run.") : statusBadge(run.status);
20751
20751
  }
20752
20752
 
20753
20753
  // Which command left the run, and whether its spec counts are a tally of
@@ -20811,6 +20811,16 @@ const CLIENT_JS = `
20811
20811
  return r.status === "failed" ? "found" : "clean";
20812
20812
  }
20813
20813
 
20814
+ /**
20815
+ * Whether a run's badge should say what the audit found, rather than how the
20816
+ * run itself is going. Only once it is over: an audit still streaming its
20817
+ * rows has no summary yet, and reading that absence as "no drift" claims the
20818
+ * one answer nobody has earned.
20819
+ */
20820
+ function answersDrift(run) {
20821
+ return run.kind === "drift" && run.status !== "running";
20822
+ }
20823
+
20814
20824
  /** A whole drift run's state. Label counts beat status for the same reason. */
20815
20825
  function driftRunState(run) {
20816
20826
  var d = driftSummary(run);
@@ -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;
@@ -615,9 +615,9 @@ type ReportSpecResult = z.infer<typeof ReportSpecResultSchema>;
615
615
  declare const RunReportDataSchema: z.ZodObject<{
616
616
  schemaVersion: z.ZodLiteral<1>;
617
617
  kind: z.ZodDefault<z.ZodEnum<{
618
+ record: "record";
618
619
  run: "run";
619
620
  drift: "drift";
620
- record: "record";
621
621
  }>>;
622
622
  createdAt: z.ZodString;
623
623
  runId: z.ZodNullable<z.ZodString>;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {