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.
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/cli-adapters/claude.ts +13 -1
- package/src/cli-adapters/gemini.ts +17 -2
- package/src/commands/check.ts +108 -12
- package/src/commands/ci/list-jobs.ts +3 -2
- package/src/commands/clean.ts +29 -0
- package/src/commands/help.ts +1 -1
- package/src/commands/index.ts +2 -1
- package/src/commands/init.ts +4 -4
- package/src/commands/review.ts +108 -12
- package/src/commands/run.ts +109 -12
- package/src/commands/shared.ts +56 -10
- package/src/commands/validate.ts +20 -0
- package/src/config/schema.ts +5 -0
- package/src/config/validator.ts +6 -13
- package/src/core/change-detector.ts +1 -0
- package/src/core/entry-point.ts +48 -7
- package/src/core/runner.ts +90 -56
- package/src/gates/result.ts +32 -0
- package/src/gates/review.ts +428 -162
- package/src/index.ts +4 -2
- package/src/output/console-log.ts +146 -0
- package/src/output/console.ts +103 -9
- package/src/output/logger.ts +52 -8
- package/src/templates/run_gauntlet.template.md +20 -13
- package/src/utils/log-parser.ts +498 -162
- package/src/utils/session-ref.ts +82 -0
- package/src/commands/check.test.ts +0 -29
- package/src/commands/detect.test.ts +0 -43
- package/src/commands/health.test.ts +0 -93
- package/src/commands/help.test.ts +0 -44
- package/src/commands/init.test.ts +0 -130
- package/src/commands/list.test.ts +0 -121
- package/src/commands/rerun.ts +0 -160
- package/src/commands/review.test.ts +0 -31
- package/src/commands/run.test.ts +0 -27
- package/src/config/loader.test.ts +0 -151
- package/src/core/entry-point.test.ts +0 -61
- package/src/gates/review.test.ts +0 -291
package/src/gates/result.ts
CHANGED
|
@@ -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
|
}
|