@vibe-validate/cli 0.14.3 → 0.15.0-rc.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.
Files changed (83) hide show
  1. package/README.md +26 -6
  2. package/bin/vibe-validate +131 -0
  3. package/config-templates/minimal.yaml +1 -1
  4. package/config-templates/typescript-library.yaml +1 -1
  5. package/config-templates/typescript-nodejs.yaml +1 -1
  6. package/config-templates/typescript-react.yaml +1 -1
  7. package/dist/bin.js +18 -4
  8. package/dist/bin.js.map +1 -1
  9. package/dist/commands/cleanup.d.ts +1 -1
  10. package/dist/commands/cleanup.d.ts.map +1 -1
  11. package/dist/commands/cleanup.js +108 -2
  12. package/dist/commands/cleanup.js.map +1 -1
  13. package/dist/commands/config.js +1 -1
  14. package/dist/commands/doctor.d.ts.map +1 -1
  15. package/dist/commands/doctor.js +45 -6
  16. package/dist/commands/doctor.js.map +1 -1
  17. package/dist/commands/generate-workflow.d.ts.map +1 -1
  18. package/dist/commands/generate-workflow.js +3 -11
  19. package/dist/commands/generate-workflow.js.map +1 -1
  20. package/dist/commands/history.d.ts.map +1 -1
  21. package/dist/commands/history.js +263 -68
  22. package/dist/commands/history.js.map +1 -1
  23. package/dist/commands/init.d.ts.map +1 -1
  24. package/dist/commands/init.js +7 -0
  25. package/dist/commands/init.js.map +1 -1
  26. package/dist/commands/pre-commit.d.ts.map +1 -1
  27. package/dist/commands/pre-commit.js +6 -2
  28. package/dist/commands/pre-commit.js.map +1 -1
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +618 -214
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/commands/state.d.ts.map +1 -1
  33. package/dist/commands/state.js +4 -7
  34. package/dist/commands/state.js.map +1 -1
  35. package/dist/commands/validate.d.ts.map +1 -1
  36. package/dist/commands/validate.js +5 -6
  37. package/dist/commands/validate.js.map +1 -1
  38. package/dist/commands/watch-pr.d.ts.map +1 -1
  39. package/dist/commands/watch-pr.js +33 -16
  40. package/dist/commands/watch-pr.js.map +1 -1
  41. package/dist/schemas/run-result-schema-export.d.ts +32 -0
  42. package/dist/schemas/run-result-schema-export.d.ts.map +1 -0
  43. package/dist/schemas/run-result-schema-export.js +40 -0
  44. package/dist/schemas/run-result-schema-export.js.map +1 -0
  45. package/dist/schemas/run-result-schema.d.ts +850 -0
  46. package/dist/schemas/run-result-schema.d.ts.map +1 -0
  47. package/dist/schemas/run-result-schema.js +67 -0
  48. package/dist/schemas/run-result-schema.js.map +1 -0
  49. package/dist/schemas/watch-pr-schema.d.ts +420 -22
  50. package/dist/schemas/watch-pr-schema.d.ts.map +1 -1
  51. package/dist/schemas/watch-pr-schema.js +2 -2
  52. package/dist/schemas/watch-pr-schema.js.map +1 -1
  53. package/dist/scripts/generate-run-result-schema.d.ts +10 -0
  54. package/dist/scripts/generate-run-result-schema.d.ts.map +1 -0
  55. package/dist/scripts/generate-run-result-schema.js +20 -0
  56. package/dist/scripts/generate-run-result-schema.js.map +1 -0
  57. package/dist/services/ci-provider.d.ts +21 -6
  58. package/dist/services/ci-provider.d.ts.map +1 -1
  59. package/dist/services/ci-providers/github-actions.d.ts +1 -5
  60. package/dist/services/ci-providers/github-actions.d.ts.map +1 -1
  61. package/dist/services/ci-providers/github-actions.js +9 -30
  62. package/dist/services/ci-providers/github-actions.js.map +1 -1
  63. package/dist/utils/config-error-reporter.js +1 -1
  64. package/dist/utils/config-error-reporter.js.map +1 -1
  65. package/dist/utils/pid-lock.d.ts.map +1 -1
  66. package/dist/utils/pid-lock.js +3 -6
  67. package/dist/utils/pid-lock.js.map +1 -1
  68. package/dist/utils/project-id.d.ts.map +1 -1
  69. package/dist/utils/project-id.js +3 -4
  70. package/dist/utils/project-id.js.map +1 -1
  71. package/dist/utils/runner-adapter.js +3 -2
  72. package/dist/utils/runner-adapter.js.map +1 -1
  73. package/dist/utils/temp-files.d.ts +67 -0
  74. package/dist/utils/temp-files.d.ts.map +1 -0
  75. package/dist/utils/temp-files.js +202 -0
  76. package/dist/utils/temp-files.js.map +1 -0
  77. package/dist/utils/validate-workflow.d.ts.map +1 -1
  78. package/dist/utils/validate-workflow.js +17 -12
  79. package/dist/utils/validate-workflow.js.map +1 -1
  80. package/dist/vibe-validate +131 -0
  81. package/package.json +11 -9
  82. package/run-result.schema.json +186 -0
  83. package/watch-pr-result.schema.json +128 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-result-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/run-result-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;gBAIJ,CAAC;gBAET,CAAA;kBAAwC,CAAC;gBACjD,CAAC;oBACF,CAAC;mBAAsD,CAAC;oBAGlD,CAAC;;;gBAE8B,CAAC;gBAClB,CAAC;kBAGtB,CAAC;gBAAsC,CAAC;oBAGrC,CAAC;mBACqC,CAAC;oBAEpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsBkjB,CAAC;;;;;;uBAAiM,CAAC;;;;;qBAA0J,CAAC;;;;;;uBAAiM,CAAC;;;;;;;gBAA0L,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;gBAAsC,CAAC;oBAA0C,CAAC;mBAAsD,CAAC;oBAA0C,CAAC;;gBAAmD,CAAC;oBAA0C,CAAC;gBAAsC,CAAC;;;;qBAAyH,CAAC;;;;;;uBAAiM,CAAC;;;;;;;gBAA6K,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;gBAAsC,CAAC;oBAA0C,CAAC;mBAAsD,CAAC;oBAA0C,CAAC;;gBAAmD,CAAC;oBAA0C,CAAC;gBAAsC,CAAC;;;;qBAAyH,CAAC;;;;;;uBAAiM,CAAC;;;;IA1Ch1F,wCAAwC;;;;;;;;;;;;;;IAGxC,kFAAkF;;;;;;;;;;;;;;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F,wCAAwC;;;;;;;;;;;;;;QAGxC,kFAAkF;;;CAuBb,CAAC;AAE1E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;gBAxCN,CAAC;gBAET,CAAA;kBAAwC,CAAC;gBACjD,CAAC;oBACF,CAAC;mBAAsD,CAAC;oBAGlD,CAAC;;;gBAE8B,CAAC;gBAClB,CAAC;kBAGtB,CAAC;gBAAsC,CAAC;oBAGrC,CAAC;mBACqC,CAAC;oBAEpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsBkjB,CAAC;;;;;;uBAAiM,CAAC;;;;;qBAA0J,CAAC;;;;;;uBAAiM,CAAC;;;;;;;gBAA0L,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;gBAAsC,CAAC;oBAA0C,CAAC;mBAAsD,CAAC;oBAA0C,CAAC;;gBAAmD,CAAC;oBAA0C,CAAC;gBAAsC,CAAC;;;;qBAAyH,CAAC;;;;;;uBAAiM,CAAC;;;;;;;gBAA6K,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;gBAAsC,CAAC;oBAA0C,CAAC;mBAAsD,CAAC;oBAA0C,CAAC;;gBAAmD,CAAC;oBAA0C,CAAC;gBAAsC,CAAC;;;;qBAAyH,CAAC;;;;;;uBAAiM,CAAC;;;;IA1Ch1F,wCAAwC;;;;;;;;;;;;;;IAGxC,kFAAkF;;+BAsCf,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Zod Schema for Run Command Results
3
+ *
4
+ * This schema defines the structure of `vibe-validate run` output and enables
5
+ * runtime validation and JSON Schema generation for documentation.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import { z } from 'zod';
10
+ import { OperationMetadataSchema, CommandExecutionSchema, OutputFilesSchema, createSafeValidator, createStrictValidator } from '@vibe-validate/core';
11
+ /**
12
+ * Run Result Schema
13
+ *
14
+ * Extends OperationMetadataSchema + CommandExecutionSchema with run-specific fields.
15
+ *
16
+ * Output structure from `vibe-validate run` command execution.
17
+ * This is the YAML written to stdout and cached in git notes.
18
+ *
19
+ * Field ordering is optimized for LLM consumption:
20
+ * - Command execution (command, exitCode, durationSecs, extraction)
21
+ * - Operation metadata (timestamp, treeHash)
22
+ * - Run-specific (outputFiles, isCachedResult, suggestedDirectCommand)
23
+ *
24
+ * v0.15.0 BREAKING CHANGES:
25
+ * - Now extends CommandExecutionSchema (consistent with StepResult)
26
+ * - Added durationSecs field
27
+ * - Added outputFiles with organized temp structure (stdout.log, stderr.log, combined.jsonl)
28
+ * - REMOVED fullOutputFile (use outputFiles.combined instead)
29
+ * - REMOVED suggestedDirectCommand (command now contains unwrapped command)
30
+ */
31
+ export const RunResultSchema = OperationMetadataSchema
32
+ .merge(CommandExecutionSchema)
33
+ .extend({
34
+ /** Organized output files (v0.15.0+) */
35
+ outputFiles: OutputFilesSchema.optional(),
36
+ /** Whether this result is from cache (true) or fresh execution (false/omitted) */
37
+ isCachedResult: z.boolean().optional(),
38
+ }).passthrough(); // Allow additional fields from nested YAML merging (e.g., phases)
39
+ /**
40
+ * Safe validation function for RunResult (uses shared utility)
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * const result = safeValidateRunResult(parsedYaml);
45
+ * if (result.success) {
46
+ * console.log('Valid run result:', result.data);
47
+ * } else {
48
+ * console.error('Invalid data:', result.errors);
49
+ * }
50
+ * ```
51
+ */
52
+ export const safeValidateRunResult = createSafeValidator(RunResultSchema);
53
+ /**
54
+ * Strict validation function for RunResult (uses shared utility)
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * try {
59
+ * const result = validateRunResult(parsedYaml);
60
+ * // Use validated result
61
+ * } catch (error) {
62
+ * console.error('Validation failed:', error);
63
+ * }
64
+ * ```
65
+ */
66
+ export const validateRunResult = createStrictValidator(RunResultSchema);
67
+ //# sourceMappingURL=run-result-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-result-schema.js","sourceRoot":"","sources":["../../src/schemas/run-result-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB;KACnD,KAAK,CAAC,sBAAsB,CAAC;KAC7B,MAAM,CAAC;IACN,wCAAwC;IACxC,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAEzC,kFAAkF;IAClF,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,kEAAkE;AAQtF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;AAE1E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,eAAe,CAAC,CAAC"}
@@ -51,8 +51,6 @@ export declare const WatchPRResultSchema: z.ZodObject<{
51
51
  timestamp: z.ZodOptional<z.ZodString>;
52
52
  treeHash: z.ZodOptional<z.ZodString>;
53
53
  failedStep: z.ZodOptional<z.ZodString>;
54
- rerunCommand: z.ZodOptional<z.ZodString>;
55
- failedStepOutput: z.ZodOptional<z.ZodString>;
56
54
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
55
  name: z.ZodString;
58
56
  passed: z.ZodBoolean;
@@ -61,14 +59,202 @@ export declare const WatchPRResultSchema: z.ZodObject<{
61
59
  passed: z.ZodBoolean;
62
60
  durationSecs: z.ZodOptional<z.ZodNumber>;
63
61
  output: z.ZodOptional<z.ZodString>;
62
+ extraction: z.ZodOptional<z.ZodObject<{
63
+ summary: z.ZodString;
64
+ totalErrors: z.ZodNumber;
65
+ errors: z.ZodArray<z.ZodObject<{
66
+ file: z.ZodOptional<z.ZodString>;
67
+ line: z.ZodOptional<z.ZodNumber>;
68
+ column: z.ZodOptional<z.ZodNumber>;
69
+ message: z.ZodString;
70
+ code: z.ZodOptional<z.ZodString>;
71
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
72
+ context: z.ZodOptional<z.ZodString>;
73
+ guidance: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ message: string;
76
+ file?: string | undefined;
77
+ line?: number | undefined;
78
+ column?: number | undefined;
79
+ code?: string | undefined;
80
+ severity?: "error" | "warning" | undefined;
81
+ context?: string | undefined;
82
+ guidance?: string | undefined;
83
+ }, {
84
+ message: string;
85
+ file?: string | undefined;
86
+ line?: number | undefined;
87
+ column?: number | undefined;
88
+ code?: string | undefined;
89
+ severity?: "error" | "warning" | undefined;
90
+ context?: string | undefined;
91
+ guidance?: string | undefined;
92
+ }>, "many">;
93
+ guidance: z.ZodOptional<z.ZodString>;
94
+ errorSummary: z.ZodOptional<z.ZodString>;
95
+ metadata: z.ZodOptional<z.ZodObject<{
96
+ detection: z.ZodOptional<z.ZodObject<{
97
+ extractor: z.ZodString;
98
+ confidence: z.ZodNumber;
99
+ patterns: z.ZodArray<z.ZodString, "many">;
100
+ reason: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ extractor: string;
103
+ confidence: number;
104
+ patterns: string[];
105
+ reason: string;
106
+ }, {
107
+ extractor: string;
108
+ confidence: number;
109
+ patterns: string[];
110
+ reason: string;
111
+ }>>;
112
+ confidence: z.ZodNumber;
113
+ completeness: z.ZodNumber;
114
+ issues: z.ZodArray<z.ZodString, "many">;
115
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ issues: string[];
118
+ confidence: number;
119
+ completeness: number;
120
+ detection?: {
121
+ extractor: string;
122
+ confidence: number;
123
+ patterns: string[];
124
+ reason: string;
125
+ } | undefined;
126
+ suggestions?: string[] | undefined;
127
+ }, {
128
+ issues: string[];
129
+ confidence: number;
130
+ completeness: number;
131
+ detection?: {
132
+ extractor: string;
133
+ confidence: number;
134
+ patterns: string[];
135
+ reason: string;
136
+ } | undefined;
137
+ suggestions?: string[] | undefined;
138
+ }>>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ summary: string;
141
+ totalErrors: number;
142
+ errors: {
143
+ message: string;
144
+ file?: string | undefined;
145
+ line?: number | undefined;
146
+ column?: number | undefined;
147
+ code?: string | undefined;
148
+ severity?: "error" | "warning" | undefined;
149
+ context?: string | undefined;
150
+ guidance?: string | undefined;
151
+ }[];
152
+ guidance?: string | undefined;
153
+ errorSummary?: string | undefined;
154
+ metadata?: {
155
+ issues: string[];
156
+ confidence: number;
157
+ completeness: number;
158
+ detection?: {
159
+ extractor: string;
160
+ confidence: number;
161
+ patterns: string[];
162
+ reason: string;
163
+ } | undefined;
164
+ suggestions?: string[] | undefined;
165
+ } | undefined;
166
+ }, {
167
+ summary: string;
168
+ totalErrors: number;
169
+ errors: {
170
+ message: string;
171
+ file?: string | undefined;
172
+ line?: number | undefined;
173
+ column?: number | undefined;
174
+ code?: string | undefined;
175
+ severity?: "error" | "warning" | undefined;
176
+ context?: string | undefined;
177
+ guidance?: string | undefined;
178
+ }[];
179
+ guidance?: string | undefined;
180
+ errorSummary?: string | undefined;
181
+ metadata?: {
182
+ issues: string[];
183
+ confidence: number;
184
+ completeness: number;
185
+ detection?: {
186
+ extractor: string;
187
+ confidence: number;
188
+ patterns: string[];
189
+ reason: string;
190
+ } | undefined;
191
+ suggestions?: string[] | undefined;
192
+ } | undefined;
193
+ }>>;
64
194
  }, "strip", z.ZodTypeAny, {
65
195
  passed: boolean;
66
196
  name: string;
197
+ extraction?: {
198
+ summary: string;
199
+ totalErrors: number;
200
+ errors: {
201
+ message: string;
202
+ file?: string | undefined;
203
+ line?: number | undefined;
204
+ column?: number | undefined;
205
+ code?: string | undefined;
206
+ severity?: "error" | "warning" | undefined;
207
+ context?: string | undefined;
208
+ guidance?: string | undefined;
209
+ }[];
210
+ guidance?: string | undefined;
211
+ errorSummary?: string | undefined;
212
+ metadata?: {
213
+ issues: string[];
214
+ confidence: number;
215
+ completeness: number;
216
+ detection?: {
217
+ extractor: string;
218
+ confidence: number;
219
+ patterns: string[];
220
+ reason: string;
221
+ } | undefined;
222
+ suggestions?: string[] | undefined;
223
+ } | undefined;
224
+ } | undefined;
67
225
  durationSecs?: number | undefined;
68
226
  output?: string | undefined;
69
227
  }, {
70
228
  passed: boolean;
71
229
  name: string;
230
+ extraction?: {
231
+ summary: string;
232
+ totalErrors: number;
233
+ errors: {
234
+ message: string;
235
+ file?: string | undefined;
236
+ line?: number | undefined;
237
+ column?: number | undefined;
238
+ code?: string | undefined;
239
+ severity?: "error" | "warning" | undefined;
240
+ context?: string | undefined;
241
+ guidance?: string | undefined;
242
+ }[];
243
+ guidance?: string | undefined;
244
+ errorSummary?: string | undefined;
245
+ metadata?: {
246
+ issues: string[];
247
+ confidence: number;
248
+ completeness: number;
249
+ detection?: {
250
+ extractor: string;
251
+ confidence: number;
252
+ patterns: string[];
253
+ reason: string;
254
+ } | undefined;
255
+ suggestions?: string[] | undefined;
256
+ } | undefined;
257
+ } | undefined;
72
258
  durationSecs?: number | undefined;
73
259
  output?: string | undefined;
74
260
  }>, "many">>;
@@ -78,6 +264,34 @@ export declare const WatchPRResultSchema: z.ZodObject<{
78
264
  steps?: {
79
265
  passed: boolean;
80
266
  name: string;
267
+ extraction?: {
268
+ summary: string;
269
+ totalErrors: number;
270
+ errors: {
271
+ message: string;
272
+ file?: string | undefined;
273
+ line?: number | undefined;
274
+ column?: number | undefined;
275
+ code?: string | undefined;
276
+ severity?: "error" | "warning" | undefined;
277
+ context?: string | undefined;
278
+ guidance?: string | undefined;
279
+ }[];
280
+ guidance?: string | undefined;
281
+ errorSummary?: string | undefined;
282
+ metadata?: {
283
+ issues: string[];
284
+ confidence: number;
285
+ completeness: number;
286
+ detection?: {
287
+ extractor: string;
288
+ confidence: number;
289
+ patterns: string[];
290
+ reason: string;
291
+ } | undefined;
292
+ suggestions?: string[] | undefined;
293
+ } | undefined;
294
+ } | undefined;
81
295
  durationSecs?: number | undefined;
82
296
  output?: string | undefined;
83
297
  }[] | undefined;
@@ -87,6 +301,34 @@ export declare const WatchPRResultSchema: z.ZodObject<{
87
301
  steps?: {
88
302
  passed: boolean;
89
303
  name: string;
304
+ extraction?: {
305
+ summary: string;
306
+ totalErrors: number;
307
+ errors: {
308
+ message: string;
309
+ file?: string | undefined;
310
+ line?: number | undefined;
311
+ column?: number | undefined;
312
+ code?: string | undefined;
313
+ severity?: "error" | "warning" | undefined;
314
+ context?: string | undefined;
315
+ guidance?: string | undefined;
316
+ }[];
317
+ guidance?: string | undefined;
318
+ errorSummary?: string | undefined;
319
+ metadata?: {
320
+ issues: string[];
321
+ confidence: number;
322
+ completeness: number;
323
+ detection?: {
324
+ extractor: string;
325
+ confidence: number;
326
+ patterns: string[];
327
+ reason: string;
328
+ } | undefined;
329
+ suggestions?: string[] | undefined;
330
+ } | undefined;
331
+ } | undefined;
90
332
  durationSecs?: number | undefined;
91
333
  output?: string | undefined;
92
334
  }[] | undefined;
@@ -99,15 +341,41 @@ export declare const WatchPRResultSchema: z.ZodObject<{
99
341
  steps?: {
100
342
  passed: boolean;
101
343
  name: string;
344
+ extraction?: {
345
+ summary: string;
346
+ totalErrors: number;
347
+ errors: {
348
+ message: string;
349
+ file?: string | undefined;
350
+ line?: number | undefined;
351
+ column?: number | undefined;
352
+ code?: string | undefined;
353
+ severity?: "error" | "warning" | undefined;
354
+ context?: string | undefined;
355
+ guidance?: string | undefined;
356
+ }[];
357
+ guidance?: string | undefined;
358
+ errorSummary?: string | undefined;
359
+ metadata?: {
360
+ issues: string[];
361
+ confidence: number;
362
+ completeness: number;
363
+ detection?: {
364
+ extractor: string;
365
+ confidence: number;
366
+ patterns: string[];
367
+ reason: string;
368
+ } | undefined;
369
+ suggestions?: string[] | undefined;
370
+ } | undefined;
371
+ } | undefined;
102
372
  durationSecs?: number | undefined;
103
373
  output?: string | undefined;
104
374
  }[] | undefined;
105
375
  }[] | undefined;
376
+ failedStep?: string | undefined;
106
377
  timestamp?: string | undefined;
107
378
  treeHash?: string | undefined;
108
- failedStep?: string | undefined;
109
- rerunCommand?: string | undefined;
110
- failedStepOutput?: string | undefined;
111
379
  }, {
112
380
  passed: boolean;
113
381
  phases?: {
@@ -116,15 +384,41 @@ export declare const WatchPRResultSchema: z.ZodObject<{
116
384
  steps?: {
117
385
  passed: boolean;
118
386
  name: string;
387
+ extraction?: {
388
+ summary: string;
389
+ totalErrors: number;
390
+ errors: {
391
+ message: string;
392
+ file?: string | undefined;
393
+ line?: number | undefined;
394
+ column?: number | undefined;
395
+ code?: string | undefined;
396
+ severity?: "error" | "warning" | undefined;
397
+ context?: string | undefined;
398
+ guidance?: string | undefined;
399
+ }[];
400
+ guidance?: string | undefined;
401
+ errorSummary?: string | undefined;
402
+ metadata?: {
403
+ issues: string[];
404
+ confidence: number;
405
+ completeness: number;
406
+ detection?: {
407
+ extractor: string;
408
+ confidence: number;
409
+ patterns: string[];
410
+ reason: string;
411
+ } | undefined;
412
+ suggestions?: string[] | undefined;
413
+ } | undefined;
414
+ } | undefined;
119
415
  durationSecs?: number | undefined;
120
416
  output?: string | undefined;
121
417
  }[] | undefined;
122
418
  }[] | undefined;
419
+ failedStep?: string | undefined;
123
420
  timestamp?: string | undefined;
124
421
  treeHash?: string | undefined;
125
- failedStep?: string | undefined;
126
- rerunCommand?: string | undefined;
127
- failedStepOutput?: string | undefined;
128
422
  }>>;
129
423
  nextSteps: z.ZodArray<z.ZodString, "many">;
130
424
  }, "strip", z.ZodTypeAny, {
@@ -140,15 +434,41 @@ export declare const WatchPRResultSchema: z.ZodObject<{
140
434
  steps?: {
141
435
  passed: boolean;
142
436
  name: string;
437
+ extraction?: {
438
+ summary: string;
439
+ totalErrors: number;
440
+ errors: {
441
+ message: string;
442
+ file?: string | undefined;
443
+ line?: number | undefined;
444
+ column?: number | undefined;
445
+ code?: string | undefined;
446
+ severity?: "error" | "warning" | undefined;
447
+ context?: string | undefined;
448
+ guidance?: string | undefined;
449
+ }[];
450
+ guidance?: string | undefined;
451
+ errorSummary?: string | undefined;
452
+ metadata?: {
453
+ issues: string[];
454
+ confidence: number;
455
+ completeness: number;
456
+ detection?: {
457
+ extractor: string;
458
+ confidence: number;
459
+ patterns: string[];
460
+ reason: string;
461
+ } | undefined;
462
+ suggestions?: string[] | undefined;
463
+ } | undefined;
464
+ } | undefined;
143
465
  durationSecs?: number | undefined;
144
466
  output?: string | undefined;
145
467
  }[] | undefined;
146
468
  }[] | undefined;
469
+ failedStep?: string | undefined;
147
470
  timestamp?: string | undefined;
148
471
  treeHash?: string | undefined;
149
- failedStep?: string | undefined;
150
- rerunCommand?: string | undefined;
151
- failedStepOutput?: string | undefined;
152
472
  } | undefined;
153
473
  }, {
154
474
  name: string;
@@ -163,20 +483,46 @@ export declare const WatchPRResultSchema: z.ZodObject<{
163
483
  steps?: {
164
484
  passed: boolean;
165
485
  name: string;
486
+ extraction?: {
487
+ summary: string;
488
+ totalErrors: number;
489
+ errors: {
490
+ message: string;
491
+ file?: string | undefined;
492
+ line?: number | undefined;
493
+ column?: number | undefined;
494
+ code?: string | undefined;
495
+ severity?: "error" | "warning" | undefined;
496
+ context?: string | undefined;
497
+ guidance?: string | undefined;
498
+ }[];
499
+ guidance?: string | undefined;
500
+ errorSummary?: string | undefined;
501
+ metadata?: {
502
+ issues: string[];
503
+ confidence: number;
504
+ completeness: number;
505
+ detection?: {
506
+ extractor: string;
507
+ confidence: number;
508
+ patterns: string[];
509
+ reason: string;
510
+ } | undefined;
511
+ suggestions?: string[] | undefined;
512
+ } | undefined;
513
+ } | undefined;
166
514
  durationSecs?: number | undefined;
167
515
  output?: string | undefined;
168
516
  }[] | undefined;
169
517
  }[] | undefined;
518
+ failedStep?: string | undefined;
170
519
  timestamp?: string | undefined;
171
520
  treeHash?: string | undefined;
172
- failedStep?: string | undefined;
173
- rerunCommand?: string | undefined;
174
- failedStepOutput?: string | undefined;
175
521
  } | undefined;
176
522
  }>, "many">>;
177
523
  }, "strip", z.ZodTypeAny, {
178
- result: "success" | "failure" | "cancelled" | "unknown";
179
524
  summary: string;
525
+ result: "success" | "failure" | "cancelled" | "unknown";
180
526
  checks: {
181
527
  name: string;
182
528
  status: string;
@@ -204,20 +550,46 @@ export declare const WatchPRResultSchema: z.ZodObject<{
204
550
  steps?: {
205
551
  passed: boolean;
206
552
  name: string;
553
+ extraction?: {
554
+ summary: string;
555
+ totalErrors: number;
556
+ errors: {
557
+ message: string;
558
+ file?: string | undefined;
559
+ line?: number | undefined;
560
+ column?: number | undefined;
561
+ code?: string | undefined;
562
+ severity?: "error" | "warning" | undefined;
563
+ context?: string | undefined;
564
+ guidance?: string | undefined;
565
+ }[];
566
+ guidance?: string | undefined;
567
+ errorSummary?: string | undefined;
568
+ metadata?: {
569
+ issues: string[];
570
+ confidence: number;
571
+ completeness: number;
572
+ detection?: {
573
+ extractor: string;
574
+ confidence: number;
575
+ patterns: string[];
576
+ reason: string;
577
+ } | undefined;
578
+ suggestions?: string[] | undefined;
579
+ } | undefined;
580
+ } | undefined;
207
581
  durationSecs?: number | undefined;
208
582
  output?: string | undefined;
209
583
  }[] | undefined;
210
584
  }[] | undefined;
585
+ failedStep?: string | undefined;
211
586
  timestamp?: string | undefined;
212
587
  treeHash?: string | undefined;
213
- failedStep?: string | undefined;
214
- rerunCommand?: string | undefined;
215
- failedStepOutput?: string | undefined;
216
588
  } | undefined;
217
589
  }[] | undefined;
218
590
  }, {
219
- result: "success" | "failure" | "cancelled" | "unknown";
220
591
  summary: string;
592
+ result: "success" | "failure" | "cancelled" | "unknown";
221
593
  checks: {
222
594
  name: string;
223
595
  status: string;
@@ -245,15 +617,41 @@ export declare const WatchPRResultSchema: z.ZodObject<{
245
617
  steps?: {
246
618
  passed: boolean;
247
619
  name: string;
620
+ extraction?: {
621
+ summary: string;
622
+ totalErrors: number;
623
+ errors: {
624
+ message: string;
625
+ file?: string | undefined;
626
+ line?: number | undefined;
627
+ column?: number | undefined;
628
+ code?: string | undefined;
629
+ severity?: "error" | "warning" | undefined;
630
+ context?: string | undefined;
631
+ guidance?: string | undefined;
632
+ }[];
633
+ guidance?: string | undefined;
634
+ errorSummary?: string | undefined;
635
+ metadata?: {
636
+ issues: string[];
637
+ confidence: number;
638
+ completeness: number;
639
+ detection?: {
640
+ extractor: string;
641
+ confidence: number;
642
+ patterns: string[];
643
+ reason: string;
644
+ } | undefined;
645
+ suggestions?: string[] | undefined;
646
+ } | undefined;
647
+ } | undefined;
248
648
  durationSecs?: number | undefined;
249
649
  output?: string | undefined;
250
650
  }[] | undefined;
251
651
  }[] | undefined;
652
+ failedStep?: string | undefined;
252
653
  timestamp?: string | undefined;
253
654
  treeHash?: string | undefined;
254
- failedStep?: string | undefined;
255
- rerunCommand?: string | undefined;
256
- failedStepOutput?: string | undefined;
257
655
  } | undefined;
258
656
  }[] | undefined;
259
657
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"watch-pr-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/watch-pr-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyD9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAiJ,CAAC;gCAAkC,CAAC;kCAAoC,CAAC;gCAAkC,CAAC;oCAAsC,CAAC;mCAAkD,CAAC;oCAAsC,CAAC;;;;;;;;qCAA+N,CAAC;;;;;;uCAAyK,CAAC;;;;;;;;;;;;EAH1zQ,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { ErrorExtractorResultSchema } from '@vibe-validate/extractors';
2
3
  /**
3
4
  * Zod schema for watch-pr command result
4
5
  *
@@ -33,8 +34,6 @@ export const WatchPRResultSchema = z.object({
33
34
  timestamp: z.string().optional(),
34
35
  treeHash: z.string().optional(),
35
36
  failedStep: z.string().optional(),
36
- rerunCommand: z.string().optional(),
37
- failedStepOutput: z.string().optional(),
38
37
  phases: z
39
38
  .array(z.object({
40
39
  name: z.string(),
@@ -45,6 +44,7 @@ export const WatchPRResultSchema = z.object({
45
44
  passed: z.boolean(),
46
45
  durationSecs: z.number().optional(),
47
46
  output: z.string().optional(),
47
+ extraction: ErrorExtractorResultSchema.optional(),
48
48
  }))
49
49
  .optional(),
50
50
  }))