agent-gauntlet 0.1.10 → 0.1.12
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 +55 -87
- package/package.json +4 -2
- package/src/bun-plugins.d.ts +4 -0
- package/src/cli-adapters/claude.ts +139 -108
- package/src/cli-adapters/codex.ts +141 -117
- package/src/cli-adapters/cursor.ts +152 -0
- package/src/cli-adapters/gemini.ts +171 -139
- package/src/cli-adapters/github-copilot.ts +153 -0
- package/src/cli-adapters/index.ts +77 -48
- package/src/commands/check.test.ts +24 -20
- package/src/commands/check.ts +86 -59
- package/src/commands/ci/index.ts +15 -0
- package/src/commands/ci/init.ts +96 -0
- package/src/commands/ci/list-jobs.ts +78 -0
- package/src/commands/detect.test.ts +38 -32
- package/src/commands/detect.ts +89 -61
- package/src/commands/health.test.ts +67 -53
- package/src/commands/health.ts +167 -145
- package/src/commands/help.test.ts +37 -37
- package/src/commands/help.ts +31 -22
- package/src/commands/index.ts +10 -9
- package/src/commands/init.test.ts +120 -107
- package/src/commands/init.ts +514 -417
- package/src/commands/list.test.ts +87 -70
- package/src/commands/list.ts +28 -24
- package/src/commands/rerun.ts +157 -119
- package/src/commands/review.test.ts +26 -20
- package/src/commands/review.ts +86 -59
- package/src/commands/run.test.ts +22 -20
- package/src/commands/run.ts +85 -58
- package/src/commands/shared.ts +44 -35
- package/src/config/ci-loader.ts +33 -0
- package/src/config/ci-schema.ts +52 -0
- package/src/config/loader.test.ts +112 -90
- package/src/config/loader.ts +132 -123
- package/src/config/schema.ts +48 -47
- package/src/config/types.ts +28 -13
- package/src/config/validator.ts +521 -454
- package/src/core/change-detector.ts +122 -104
- package/src/core/entry-point.test.ts +60 -62
- package/src/core/entry-point.ts +120 -74
- package/src/core/job.ts +69 -59
- package/src/core/runner.ts +264 -230
- package/src/gates/check.ts +78 -69
- package/src/gates/result.ts +7 -7
- package/src/gates/review.test.ts +277 -138
- package/src/gates/review.ts +724 -561
- package/src/index.ts +18 -15
- package/src/output/console.ts +253 -214
- package/src/output/logger.ts +66 -52
- package/src/templates/run_gauntlet.template.md +18 -0
- package/src/templates/workflow.yml +77 -0
- package/src/utils/diff-parser.ts +64 -62
- package/src/utils/log-parser.ts +227 -206
- package/src/utils/sanitizer.ts +1 -1
package/src/config/types.ts
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
import type {
|
|
3
|
+
ciCheckConfigSchema,
|
|
4
|
+
ciConfigSchema,
|
|
5
|
+
ciSetupStepSchema,
|
|
6
|
+
runtimeConfigSchema,
|
|
7
|
+
serviceConfigSchema,
|
|
8
|
+
} from "./ci-schema.js";
|
|
9
|
+
import type {
|
|
10
|
+
checkGateSchema,
|
|
11
|
+
cliConfigSchema,
|
|
12
|
+
entryPointSchema,
|
|
13
|
+
gauntletConfigSchema,
|
|
14
|
+
reviewGateSchema,
|
|
15
|
+
reviewPromptFrontmatterSchema,
|
|
16
|
+
} from "./schema.js";
|
|
10
17
|
|
|
11
18
|
export type CheckGateConfig = z.infer<typeof checkGateSchema>;
|
|
12
19
|
export type ReviewGateConfig = z.infer<typeof reviewGateSchema>;
|
|
13
|
-
export type ReviewPromptFrontmatter = z.infer<
|
|
20
|
+
export type ReviewPromptFrontmatter = z.infer<
|
|
21
|
+
typeof reviewPromptFrontmatterSchema
|
|
22
|
+
>;
|
|
14
23
|
export type EntryPointConfig = z.infer<typeof entryPointSchema>;
|
|
15
24
|
export type GauntletConfig = z.infer<typeof gauntletConfigSchema>;
|
|
16
25
|
export type CLIConfig = z.infer<typeof cliConfigSchema>;
|
|
17
26
|
|
|
27
|
+
export type CIConfig = z.infer<typeof ciConfigSchema>;
|
|
28
|
+
export type CICheckConfig = z.infer<typeof ciCheckConfigSchema>;
|
|
29
|
+
export type CISetupStep = z.infer<typeof ciSetupStepSchema>;
|
|
30
|
+
export type RuntimeConfig = z.infer<typeof runtimeConfigSchema>;
|
|
31
|
+
export type ServiceConfig = z.infer<typeof serviceConfigSchema>;
|
|
32
|
+
|
|
18
33
|
// Combined type for the fully loaded configuration
|
|
19
34
|
export interface LoadedConfig {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
35
|
+
project: GauntletConfig;
|
|
36
|
+
checks: Record<string, CheckGateConfig>;
|
|
37
|
+
reviews: Record<string, ReviewGateConfig & ReviewPromptFrontmatter>; // Merged with frontmatter
|
|
23
38
|
}
|