agent-gauntlet 0.2.2 → 0.4.0

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.
Files changed (40) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/src/cli-adapters/claude.ts +13 -1
  4. package/src/cli-adapters/gemini.ts +17 -2
  5. package/src/commands/check.ts +108 -12
  6. package/src/commands/ci/list-jobs.ts +3 -2
  7. package/src/commands/clean.ts +29 -0
  8. package/src/commands/help.ts +1 -1
  9. package/src/commands/index.ts +2 -1
  10. package/src/commands/init.ts +4 -4
  11. package/src/commands/review.ts +108 -12
  12. package/src/commands/run.ts +109 -12
  13. package/src/commands/shared.ts +56 -10
  14. package/src/commands/validate.ts +20 -0
  15. package/src/config/schema.ts +5 -0
  16. package/src/config/validator.ts +6 -13
  17. package/src/core/change-detector.ts +1 -0
  18. package/src/core/entry-point.ts +48 -7
  19. package/src/core/runner.ts +90 -56
  20. package/src/gates/result.ts +32 -0
  21. package/src/gates/review.ts +428 -162
  22. package/src/index.ts +4 -2
  23. package/src/output/console-log.ts +146 -0
  24. package/src/output/console.ts +103 -9
  25. package/src/output/logger.ts +52 -8
  26. package/src/templates/run_gauntlet.template.md +20 -13
  27. package/src/utils/log-parser.ts +498 -162
  28. package/src/utils/session-ref.ts +82 -0
  29. package/src/commands/check.test.ts +0 -29
  30. package/src/commands/detect.test.ts +0 -43
  31. package/src/commands/health.test.ts +0 -93
  32. package/src/commands/help.test.ts +0 -44
  33. package/src/commands/init.test.ts +0 -130
  34. package/src/commands/list.test.ts +0 -121
  35. package/src/commands/rerun.ts +0 -160
  36. package/src/commands/review.test.ts +0 -31
  37. package/src/commands/run.test.ts +0 -27
  38. package/src/config/loader.test.ts +0 -151
  39. package/src/core/entry-point.test.ts +0 -61
  40. package/src/gates/review.test.ts +0 -291
@@ -1,5 +1,23 @@
1
1
  export type GateStatus = "pass" | "fail" | "error";
2
2
 
3
+ export interface PreviousViolation {
4
+ file: string;
5
+ line: number | string;
6
+ issue: string;
7
+ fix?: string;
8
+ priority?: "critical" | "high" | "medium" | "low";
9
+ status?: "new" | "fixed" | "skipped";
10
+ result?: string | null;
11
+ }
12
+
13
+ export interface ReviewFullJsonOutput {
14
+ adapter: string;
15
+ timestamp: string;
16
+ status: "pass" | "fail" | "error";
17
+ rawOutput: string;
18
+ violations: PreviousViolation[];
19
+ }
20
+
3
21
  export interface GateResult {
4
22
  jobId: string;
5
23
  status: GateStatus;
@@ -8,10 +26,24 @@ export interface GateResult {
8
26
  logPath?: string; // path to full log
9
27
  logPaths?: string[]; // paths to multiple logs (e.g. per-agent logs)
10
28
  fixInstructions?: string; // Markdown content for fixing failures
29
+ errorCount?: number; // Number of active failures/violations
30
+ skipped?: Array<{
31
+ file: string;
32
+ line: number | string;
33
+ issue: string;
34
+ result?: string | null;
35
+ }>;
11
36
  subResults?: Array<{
12
37
  nameSuffix: string;
13
38
  status: GateStatus;
14
39
  message: string;
15
40
  logPath?: string;
41
+ errorCount?: number;
42
+ skipped?: Array<{
43
+ file: string;
44
+ line: number | string;
45
+ issue: string;
46
+ result?: string | null;
47
+ }>;
16
48
  }>;
17
49
  }