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.
Files changed (55) hide show
  1. package/README.md +55 -87
  2. package/package.json +4 -2
  3. package/src/bun-plugins.d.ts +4 -0
  4. package/src/cli-adapters/claude.ts +139 -108
  5. package/src/cli-adapters/codex.ts +141 -117
  6. package/src/cli-adapters/cursor.ts +152 -0
  7. package/src/cli-adapters/gemini.ts +171 -139
  8. package/src/cli-adapters/github-copilot.ts +153 -0
  9. package/src/cli-adapters/index.ts +77 -48
  10. package/src/commands/check.test.ts +24 -20
  11. package/src/commands/check.ts +86 -59
  12. package/src/commands/ci/index.ts +15 -0
  13. package/src/commands/ci/init.ts +96 -0
  14. package/src/commands/ci/list-jobs.ts +78 -0
  15. package/src/commands/detect.test.ts +38 -32
  16. package/src/commands/detect.ts +89 -61
  17. package/src/commands/health.test.ts +67 -53
  18. package/src/commands/health.ts +167 -145
  19. package/src/commands/help.test.ts +37 -37
  20. package/src/commands/help.ts +31 -22
  21. package/src/commands/index.ts +10 -9
  22. package/src/commands/init.test.ts +120 -107
  23. package/src/commands/init.ts +514 -417
  24. package/src/commands/list.test.ts +87 -70
  25. package/src/commands/list.ts +28 -24
  26. package/src/commands/rerun.ts +157 -119
  27. package/src/commands/review.test.ts +26 -20
  28. package/src/commands/review.ts +86 -59
  29. package/src/commands/run.test.ts +22 -20
  30. package/src/commands/run.ts +85 -58
  31. package/src/commands/shared.ts +44 -35
  32. package/src/config/ci-loader.ts +33 -0
  33. package/src/config/ci-schema.ts +52 -0
  34. package/src/config/loader.test.ts +112 -90
  35. package/src/config/loader.ts +132 -123
  36. package/src/config/schema.ts +48 -47
  37. package/src/config/types.ts +28 -13
  38. package/src/config/validator.ts +521 -454
  39. package/src/core/change-detector.ts +122 -104
  40. package/src/core/entry-point.test.ts +60 -62
  41. package/src/core/entry-point.ts +120 -74
  42. package/src/core/job.ts +69 -59
  43. package/src/core/runner.ts +264 -230
  44. package/src/gates/check.ts +78 -69
  45. package/src/gates/result.ts +7 -7
  46. package/src/gates/review.test.ts +277 -138
  47. package/src/gates/review.ts +724 -561
  48. package/src/index.ts +18 -15
  49. package/src/output/console.ts +253 -214
  50. package/src/output/logger.ts +66 -52
  51. package/src/templates/run_gauntlet.template.md +18 -0
  52. package/src/templates/workflow.yml +77 -0
  53. package/src/utils/diff-parser.ts +64 -62
  54. package/src/utils/log-parser.ts +227 -206
  55. package/src/utils/sanitizer.ts +1 -1
@@ -1,23 +1,38 @@
1
- import { z } from 'zod';
2
- import {
3
- checkGateSchema,
4
- reviewGateSchema,
5
- reviewPromptFrontmatterSchema,
6
- entryPointSchema,
7
- gauntletConfigSchema,
8
- cliConfigSchema
9
- } from './schema.js';
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<typeof reviewPromptFrontmatterSchema>;
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
- project: GauntletConfig;
21
- checks: Record<string, CheckGateConfig>;
22
- reviews: Record<string, ReviewGateConfig & ReviewPromptFrontmatter>; // Merged with frontmatter
35
+ project: GauntletConfig;
36
+ checks: Record<string, CheckGateConfig>;
37
+ reviews: Record<string, ReviewGateConfig & ReviewPromptFrontmatter>; // Merged with frontmatter
23
38
  }