@vibe-validate/history 0.14.3 → 0.15.0-rc.2

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.
@@ -0,0 +1,1690 @@
1
+ /**
2
+ * Validation History Schemas
3
+ *
4
+ * Zod schemas for validation history and run cache data structures.
5
+ * These are stored in git notes as YAML.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import { z } from 'zod';
10
+ /**
11
+ * Run Cache Note Schema
12
+ *
13
+ * Extends CommandExecutionSchema + OperationMetadataSchema with run-specific fields.
14
+ * Stored in: refs/notes/vibe-validate/run/{treeHash}/{cacheKey}
15
+ *
16
+ * Represents a cached result of a `vibe-validate run` command execution.
17
+ * Only successful runs (exitCode === 0) are cached.
18
+ *
19
+ * v0.15.0 BREAKING CHANGES:
20
+ * - Now uses `durationSecs` (seconds) instead of `duration` (milliseconds)
21
+ * - Added outputFiles with organized temp structure (stdout.log, stderr.log, combined.jsonl)
22
+ * - REMOVED fullOutputFile (use outputFiles.combined instead)
23
+ */
24
+ export declare const RunCacheNoteSchema: z.ZodObject<{
25
+ timestamp: z.ZodString;
26
+ treeHash: z.ZodString;
27
+ } & {
28
+ command: z.ZodString;
29
+ exitCode: z.ZodNumber;
30
+ durationSecs: z.ZodNumber;
31
+ extraction: z.ZodOptional<z.ZodObject<{
32
+ summary: z.ZodString;
33
+ totalErrors: z.ZodNumber;
34
+ errors: z.ZodArray<z.ZodObject<{
35
+ file: z.ZodOptional<z.ZodString>;
36
+ line: z.ZodOptional<z.ZodNumber>;
37
+ column: z.ZodOptional<z.ZodNumber>;
38
+ message: z.ZodString;
39
+ code: z.ZodOptional<z.ZodString>;
40
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
41
+ context: z.ZodOptional<z.ZodString>;
42
+ guidance: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ message: string;
45
+ file?: string | undefined;
46
+ line?: number | undefined;
47
+ column?: number | undefined;
48
+ code?: string | undefined;
49
+ severity?: "error" | "warning" | undefined;
50
+ context?: string | undefined;
51
+ guidance?: string | undefined;
52
+ }, {
53
+ message: string;
54
+ file?: string | undefined;
55
+ line?: number | undefined;
56
+ column?: number | undefined;
57
+ code?: string | undefined;
58
+ severity?: "error" | "warning" | undefined;
59
+ context?: string | undefined;
60
+ guidance?: string | undefined;
61
+ }>, "many">;
62
+ guidance: z.ZodOptional<z.ZodString>;
63
+ errorSummary: z.ZodOptional<z.ZodString>;
64
+ metadata: z.ZodOptional<z.ZodObject<{
65
+ detection: z.ZodOptional<z.ZodObject<{
66
+ extractor: z.ZodString;
67
+ confidence: z.ZodNumber;
68
+ patterns: z.ZodArray<z.ZodString, "many">;
69
+ reason: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ extractor: string;
72
+ confidence: number;
73
+ patterns: string[];
74
+ reason: string;
75
+ }, {
76
+ extractor: string;
77
+ confidence: number;
78
+ patterns: string[];
79
+ reason: string;
80
+ }>>;
81
+ confidence: z.ZodNumber;
82
+ completeness: z.ZodNumber;
83
+ issues: z.ZodArray<z.ZodString, "many">;
84
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ issues: string[];
87
+ confidence: number;
88
+ completeness: number;
89
+ detection?: {
90
+ extractor: string;
91
+ confidence: number;
92
+ patterns: string[];
93
+ reason: string;
94
+ } | undefined;
95
+ suggestions?: string[] | undefined;
96
+ }, {
97
+ issues: string[];
98
+ confidence: number;
99
+ completeness: number;
100
+ detection
101
+ /** Warn after this many total notes */
102
+ ? /** Warn after this many total notes */: {
103
+ extractor: string;
104
+ confidence: number;
105
+ patterns: string[];
106
+ reason: string;
107
+ } | undefined;
108
+ suggestions?: string[] | undefined;
109
+ }>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ summary: string;
112
+ totalErrors: number;
113
+ errors: {
114
+ message: string;
115
+ file?: string | undefined;
116
+ line?: number | undefined;
117
+ column?: number | undefined;
118
+ code?: string | undefined;
119
+ severity?: "error" | "warning" | undefined;
120
+ context?: string | undefined;
121
+ guidance?: string | undefined;
122
+ }[];
123
+ guidance?: string | undefined;
124
+ errorSummary?: string | undefined;
125
+ metadata?: {
126
+ issues: string[];
127
+ confidence: number;
128
+ completeness: number;
129
+ detection?: {
130
+ extractor: string;
131
+ confidence: number;
132
+ patterns: string[];
133
+ reason: string;
134
+ } | undefined;
135
+ suggestions?: string[] | undefined;
136
+ } | undefined;
137
+ }, {
138
+ summary: string;
139
+ totalErrors: number;
140
+ errors: {
141
+ message: string;
142
+ file?: string | undefined;
143
+ line?: number | undefined;
144
+ column?: number | undefined;
145
+ code?: string | undefined;
146
+ severity?: "error" | "warning" | undefined;
147
+ context?: string | undefined;
148
+ guidance?: string | undefined;
149
+ }[];
150
+ guidance?: string | undefined;
151
+ errorSummary?: string | undefined;
152
+ metadata?: {
153
+ issues: string[];
154
+ confidence: number;
155
+ completeness: number;
156
+ detection?: {
157
+ extractor: string;
158
+ confidence: number;
159
+ patterns: string[];
160
+ reason: string;
161
+ } | undefined;
162
+ suggestions?: string[] | undefined;
163
+ } | undefined;
164
+ }>>;
165
+ } & {
166
+ /** Working directory relative to git root ("" for root, "packages/cli" for subdirectory) */
167
+ workdir: z.ZodString;
168
+ /** Organized output files (v0.15.0+) */
169
+ outputFiles: z.ZodOptional<z.ZodObject<{
170
+ /** Path to stdout.log (omitted if empty) */
171
+ stdout: z.ZodOptional<z.ZodString>;
172
+ /** Path to stderr.log (omitted if empty) */
173
+ stderr: z.ZodOptional<z.ZodString>;
174
+ /** Path to combined.jsonl (chronological, ANSI-stripped) */
175
+ combined: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ combined: string;
178
+ stdout?: string | undefined;
179
+ stderr?: string | undefined;
180
+ }, {
181
+ combined: string;
182
+ stdout?: string | undefined;
183
+ stderr?: string | undefined;
184
+ }>>;
185
+ /** Whether this result is from cache (true) or fresh execution (false/omitted) */
186
+ isCachedResult: z.ZodOptional<z.ZodBoolean>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ timestamp: string;
189
+ treeHash: string;
190
+ command: string;
191
+ exitCode: number;
192
+ durationSecs: number;
193
+ workdir: string;
194
+ extraction?: {
195
+ summary: string;
196
+ totalErrors: number;
197
+ errors: {
198
+ message: string;
199
+ file?: string | undefined;
200
+ line?: number | undefined;
201
+ column?: number | undefined;
202
+ code?: string | undefined;
203
+ severity?: "error" | "warning" | undefined;
204
+ context?: string | undefined;
205
+ guidance?: string | undefined;
206
+ }[];
207
+ guidance?: string | undefined;
208
+ errorSummary?: string | undefined;
209
+ metadata?: {
210
+ issues: string[];
211
+ confidence: number;
212
+ completeness: number;
213
+ detection?: {
214
+ extractor: string;
215
+ confidence: number;
216
+ patterns: string[];
217
+ reason: string;
218
+ } | undefined;
219
+ suggestions?: string[] | undefined;
220
+ } | undefined;
221
+ } | undefined;
222
+ outputFiles?: {
223
+ combined: string;
224
+ stdout?: string | undefined;
225
+ stderr?: string | undefined;
226
+ } | undefined;
227
+ isCachedResult?: boolean | undefined;
228
+ }, {
229
+ timestamp: string;
230
+ treeHash: string;
231
+ command: string;
232
+ exitCode: number;
233
+ durationSecs: number;
234
+ workdir: string;
235
+ extraction?: {
236
+ summary: string;
237
+ totalErrors: number;
238
+ errors: {
239
+ message: string;
240
+ file?: string | undefined;
241
+ line?: number | undefined;
242
+ column?: number | undefined;
243
+ code?: string | undefined;
244
+ severity?: "error" | "warning" | undefined;
245
+ context?: string | undefined;
246
+ guidance?: string | undefined;
247
+ }[];
248
+ guidance?: string | undefined;
249
+ errorSummary?: string | undefined;
250
+ metadata?: {
251
+ issues: string[];
252
+ confidence: number;
253
+ completeness: number;
254
+ detection?: {
255
+ extractor: string;
256
+ confidence: number;
257
+ patterns: string[];
258
+ reason: string;
259
+ } | undefined;
260
+ suggestions?: string[] | undefined;
261
+ } | undefined;
262
+ } | undefined;
263
+ outputFiles?: {
264
+ combined: string;
265
+ stdout?: string | undefined;
266
+ stderr?: string | undefined;
267
+ } | undefined;
268
+ isCachedResult?: boolean | undefined;
269
+ }>;
270
+ /**
271
+ * Validation Run Schema
272
+ *
273
+ * Extends ValidationResultSchema with git metadata.
274
+ * Represents a single validation run entry in history.
275
+ *
276
+ * Note: The 'result' field contains the full ValidationResult (with truncated output)
277
+ */
278
+ export declare const ValidationRunSchema: z.ZodObject<{
279
+ /** Unique run ID (run-{timestamp}) */
280
+ id: z.ZodString;
281
+ /** ISO 8601 timestamp */
282
+ timestamp: z.ZodString;
283
+ /** Duration in milliseconds */
284
+ duration: z.ZodNumber;
285
+ /** Did validation pass? */
286
+ passed: z.ZodBoolean;
287
+ /** Branch name at time of validation */
288
+ branch: z.ZodString;
289
+ /** HEAD commit SHA at time of validation */
290
+ headCommit: z.ZodString;
291
+ /** Were there uncommitted changes? */
292
+ uncommittedChanges: z.ZodBoolean;
293
+ /** Full validation result (with truncated output) */
294
+ result: z.ZodObject<{
295
+ timestamp: z.ZodString;
296
+ treeHash: z.ZodString;
297
+ } & {
298
+ passed: z.ZodBoolean;
299
+ summary: z.ZodOptional<z.ZodString>;
300
+ isCachedResult: z.ZodOptional<z.ZodBoolean>;
301
+ failedStep: z.ZodOptional<z.ZodString>;
302
+ phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
+ name: z.ZodString;
304
+ passed: z.ZodBoolean;
305
+ durationSecs: z.ZodNumber;
306
+ steps: z.ZodArray<z.ZodObject<{
307
+ command: z.ZodString;
308
+ exitCode: z.ZodNumber;
309
+ durationSecs: z.ZodNumber;
310
+ extraction: z.ZodOptional<z.ZodObject<{
311
+ summary: z.ZodString;
312
+ totalErrors: z.ZodNumber;
313
+ errors: z.ZodArray<z.ZodObject<{
314
+ file: z.ZodOptional<z.ZodString>;
315
+ line: z.ZodOptional<z.ZodNumber>;
316
+ column: z.ZodOptional<z.ZodNumber>;
317
+ message: z.ZodString;
318
+ code: z.ZodOptional<z.ZodString>;
319
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
320
+ context: z.ZodOptional<z.ZodString>;
321
+ guidance: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ message: string;
324
+ file?: string | undefined;
325
+ line?: number | undefined;
326
+ column?: number | undefined;
327
+ code?: string | undefined;
328
+ severity?: "error" | "warning" | undefined;
329
+ context?: string | undefined;
330
+ guidance?: string | undefined;
331
+ }, {
332
+ message: string;
333
+ file?: string | undefined;
334
+ line?: number | undefined;
335
+ column?: number | undefined;
336
+ code?: string | undefined;
337
+ severity?: "error" | "warning" | undefined;
338
+ context?: string | undefined;
339
+ guidance?: string | undefined;
340
+ }>, "many">;
341
+ guidance: z.ZodOptional<z.ZodString>;
342
+ errorSummary: z.ZodOptional<z.ZodString>;
343
+ metadata: z.ZodOptional<z.ZodObject<{
344
+ detection: z.ZodOptional<z.ZodObject<{
345
+ extractor: z.ZodString;
346
+ confidence: z.ZodNumber;
347
+ patterns: z.ZodArray<z.ZodString, "many">;
348
+ reason: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ extractor: string;
351
+ confidence: number;
352
+ patterns: string[];
353
+ reason: string;
354
+ }, {
355
+ extractor: string;
356
+ confidence: number;
357
+ patterns: string[];
358
+ reason: string;
359
+ }>>;
360
+ confidence: z.ZodNumber;
361
+ completeness: z.ZodNumber;
362
+ issues: z.ZodArray<z.ZodString, "many">;
363
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ issues: string[];
366
+ confidence: number;
367
+ completeness: number;
368
+ detection?: {
369
+ extractor: string;
370
+ confidence: number;
371
+ patterns: string[];
372
+ reason: string;
373
+ } | undefined;
374
+ suggestions?: string[] | undefined;
375
+ }, {
376
+ issues: string[];
377
+ confidence: number;
378
+ completeness: number;
379
+ detection?: {
380
+ extractor: string;
381
+ confidence: number;
382
+ patterns: string[];
383
+ reason: string;
384
+ } | undefined;
385
+ suggestions?: string[] | undefined;
386
+ }>>;
387
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
415
+ summary: string;
416
+ totalErrors: number;
417
+ errors: {
418
+ message: string;
419
+ file?: string | undefined;
420
+ line?: number | undefined;
421
+ column?: number | undefined;
422
+ code?: string | undefined;
423
+ severity?: "error" | "warning" | undefined;
424
+ context?: string | undefined;
425
+ guidance?: string | undefined;
426
+ }[];
427
+ guidance?: string | undefined;
428
+ errorSummary?: string | undefined;
429
+ metadata?: {
430
+ issues: string[];
431
+ confidence: number;
432
+ completeness: number;
433
+ detection?: {
434
+ extractor: string;
435
+ confidence: number;
436
+ patterns: string[];
437
+ reason: string;
438
+ } | undefined;
439
+ suggestions?: string[] | undefined;
440
+ } | undefined;
441
+ }>>;
442
+ } & {
443
+ name: z.ZodString;
444
+ passed: z.ZodBoolean;
445
+ isCachedResult: z.ZodOptional<z.ZodBoolean>;
446
+ outputFiles: z.ZodOptional<z.ZodObject<{
447
+ stdout: z.ZodOptional<z.ZodString>;
448
+ stderr: z.ZodOptional<z.ZodString>;
449
+ combined: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ combined: string;
452
+ stdout?: string | undefined;
453
+ stderr?: string | undefined;
454
+ }, {
455
+ combined: string;
456
+ stdout?: string | undefined;
457
+ stderr?: string | undefined;
458
+ }>>;
459
+ }, "strict", z.ZodTypeAny, {
460
+ command: string;
461
+ exitCode: number;
462
+ durationSecs: number;
463
+ name: string;
464
+ passed: boolean;
465
+ extraction?: {
466
+ summary: string;
467
+ totalErrors: number;
468
+ errors: {
469
+ message: string;
470
+ file?: string | undefined;
471
+ line?: number | undefined;
472
+ column?: number | undefined;
473
+ code?: string | undefined;
474
+ severity?: "error" | "warning" | undefined;
475
+ context?: string | undefined;
476
+ guidance?: string | undefined;
477
+ }[];
478
+ guidance?: string | undefined;
479
+ errorSummary?: string | undefined;
480
+ metadata?: {
481
+ issues: string[];
482
+ confidence: number;
483
+ completeness: number;
484
+ detection?: {
485
+ extractor: string;
486
+ confidence: number;
487
+ patterns: string[];
488
+ reason: string;
489
+ } | undefined;
490
+ suggestions?: string[] | undefined;
491
+ } | undefined;
492
+ } | undefined;
493
+ isCachedResult?: boolean | undefined;
494
+ outputFiles?: {
495
+ combined: string;
496
+ stdout?: string | undefined;
497
+ stderr?: string | undefined;
498
+ } | undefined;
499
+ }, {
500
+ command: string;
501
+ exitCode: number;
502
+ durationSecs: number;
503
+ name: string;
504
+ passed: boolean;
505
+ extraction?: {
506
+ summary: string;
507
+ totalErrors: number;
508
+ errors: {
509
+ message: string;
510
+ file?: string | undefined;
511
+ line?: number | undefined;
512
+ column?: number | undefined;
513
+ code?: string | undefined;
514
+ severity?: "error" | "warning" | undefined;
515
+ context?: string | undefined;
516
+ guidance?: string | undefined;
517
+ }[];
518
+ guidance?: string | undefined;
519
+ errorSummary?: string | undefined;
520
+ metadata?: {
521
+ issues: string[];
522
+ confidence: number;
523
+ completeness: number;
524
+ detection?: {
525
+ extractor: string;
526
+ confidence: number;
527
+ patterns: string[];
528
+ reason: string;
529
+ } | undefined;
530
+ suggestions?: string[] | undefined;
531
+ } | undefined;
532
+ } | undefined;
533
+ isCachedResult?: boolean | undefined;
534
+ outputFiles?: {
535
+ combined: string;
536
+ stdout?: string | undefined;
537
+ stderr?: string | undefined;
538
+ } | undefined;
539
+ }>, "many">;
540
+ }, "strict", z.ZodTypeAny, {
541
+ durationSecs: number;
542
+ name: string;
543
+ passed: boolean;
544
+ steps: {
545
+ command: string;
546
+ exitCode: number;
547
+ durationSecs: number;
548
+ name: string;
549
+ passed: boolean;
550
+ extraction?: {
551
+ summary: string;
552
+ totalErrors: number;
553
+ errors: {
554
+ message: string;
555
+ file?: string | undefined;
556
+ line?: number | undefined;
557
+ column?: number | undefined;
558
+ code?: string | undefined;
559
+ severity?: "error" | "warning" | undefined;
560
+ context?: string | undefined;
561
+ guidance?: string | undefined;
562
+ }[];
563
+ guidance?: string | undefined;
564
+ errorSummary?: string | undefined;
565
+ metadata?: {
566
+ issues: string[];
567
+ confidence: number;
568
+ completeness: number;
569
+ detection?: {
570
+ extractor: string;
571
+ confidence: number;
572
+ patterns: string[];
573
+ reason: string;
574
+ } | undefined;
575
+ suggestions?: string[] | undefined;
576
+ } | undefined;
577
+ } | undefined;
578
+ isCachedResult?: boolean | undefined;
579
+ outputFiles?: {
580
+ combined: string;
581
+ stdout?: string | undefined;
582
+ stderr?: string | undefined;
583
+ } | undefined;
584
+ }[];
585
+ }, {
586
+ durationSecs: number;
587
+ name: string;
588
+ passed: boolean;
589
+ steps: {
590
+ command: string;
591
+ exitCode: number;
592
+ durationSecs: number;
593
+ name: string;
594
+ passed: boolean;
595
+ extraction?: {
596
+ summary: string;
597
+ totalErrors: number;
598
+ errors: {
599
+ message: string;
600
+ file?: string | undefined;
601
+ line?: number | undefined;
602
+ column?: number | undefined;
603
+ code?: string | undefined;
604
+ severity?: "error" | "warning" | undefined;
605
+ context?: string | undefined;
606
+ guidance?: string | undefined;
607
+ }[];
608
+ guidance?: string | undefined;
609
+ errorSummary?: string | undefined;
610
+ metadata?: {
611
+ issues: string[];
612
+ confidence: number;
613
+ completeness: number;
614
+ detection?: {
615
+ extractor: string;
616
+ confidence: number;
617
+ patterns: string[];
618
+ reason: string;
619
+ } | undefined;
620
+ suggestions?: string[] | undefined;
621
+ } | undefined;
622
+ } | undefined;
623
+ isCachedResult?: boolean | undefined;
624
+ outputFiles?: {
625
+ combined: string;
626
+ stdout?: string | undefined;
627
+ stderr?: string | undefined;
628
+ } | undefined;
629
+ }[];
630
+ }>, "many">>;
631
+ fullLogFile: z.ZodOptional<z.ZodString>;
632
+ }, "strict", z.ZodTypeAny, {
633
+ timestamp: string;
634
+ treeHash: string;
635
+ passed: boolean;
636
+ isCachedResult?: boolean | undefined;
637
+ summary?: string | undefined;
638
+ failedStep?: string | undefined;
639
+ phases?: {
640
+ durationSecs: number;
641
+ name: string;
642
+ passed: boolean;
643
+ steps: {
644
+ command: string;
645
+ exitCode: number;
646
+ durationSecs: number;
647
+ name: string;
648
+ passed: boolean;
649
+ extraction?: {
650
+ summary: string;
651
+ totalErrors: number;
652
+ errors: {
653
+ message: string;
654
+ file?: string | undefined;
655
+ line?: number | undefined;
656
+ column?: number | undefined;
657
+ code?: string | undefined;
658
+ severity?: "error" | "warning" | undefined;
659
+ context?: string | undefined;
660
+ guidance?: string | undefined;
661
+ }[];
662
+ guidance?: string | undefined;
663
+ errorSummary?: string | undefined;
664
+ metadata?: {
665
+ issues: string[];
666
+ confidence: number;
667
+ completeness: number;
668
+ detection?: {
669
+ extractor: string;
670
+ confidence: number;
671
+ patterns: string[];
672
+ reason: string;
673
+ } | undefined;
674
+ suggestions?: string[] | undefined;
675
+ } | undefined;
676
+ } | undefined;
677
+ isCachedResult?: boolean | undefined;
678
+ outputFiles?: {
679
+ combined: string;
680
+ stdout?: string | undefined;
681
+ stderr?: string | undefined;
682
+ } | undefined;
683
+ }[];
684
+ }[] | undefined;
685
+ fullLogFile?: string | undefined;
686
+ }, {
687
+ timestamp: string;
688
+ treeHash: string;
689
+ passed: boolean;
690
+ isCachedResult?: boolean | undefined;
691
+ summary?: string | undefined;
692
+ failedStep?: string | undefined;
693
+ phases?: {
694
+ durationSecs: number;
695
+ name: string;
696
+ passed: boolean;
697
+ steps: {
698
+ command: string;
699
+ exitCode: number;
700
+ durationSecs: number;
701
+ name: string;
702
+ passed: boolean;
703
+ extraction?: {
704
+ summary: string;
705
+ totalErrors: number;
706
+ errors: {
707
+ message: string;
708
+ file?: string | undefined;
709
+ line?: number | undefined;
710
+ column?: number | undefined;
711
+ code?: string | undefined;
712
+ severity?: "error" | "warning" | undefined;
713
+ context?: string | undefined;
714
+ guidance?: string | undefined;
715
+ }[];
716
+ guidance?: string | undefined;
717
+ errorSummary?: string | undefined;
718
+ metadata?: {
719
+ issues: string[];
720
+ confidence: number;
721
+ completeness: number;
722
+ detection?: {
723
+ extractor: string;
724
+ confidence: number;
725
+ patterns: string[];
726
+ reason: string;
727
+ } | undefined;
728
+ suggestions?: string[] | undefined;
729
+ } | undefined;
730
+ } | undefined;
731
+ isCachedResult?: boolean | undefined;
732
+ outputFiles?: {
733
+ combined: string;
734
+ stdout?: string | undefined;
735
+ stderr?: string | undefined;
736
+ } | undefined;
737
+ }[];
738
+ }[] | undefined;
739
+ fullLogFile?: string | undefined;
740
+ }>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ timestamp: string;
743
+ id: string;
744
+ duration: number;
745
+ passed: boolean;
746
+ branch: string;
747
+ headCommit: string;
748
+ uncommittedChanges: boolean;
749
+ result: {
750
+ timestamp: string;
751
+ treeHash: string;
752
+ passed: boolean;
753
+ isCachedResult?: boolean | undefined;
754
+ summary?: string | undefined;
755
+ failedStep?: string | undefined;
756
+ phases?: {
757
+ durationSecs: number;
758
+ name: string;
759
+ passed: boolean;
760
+ steps: {
761
+ command: string;
762
+ exitCode: number;
763
+ durationSecs: number;
764
+ name: string;
765
+ passed: boolean;
766
+ extraction?: {
767
+ summary: string;
768
+ totalErrors: number;
769
+ errors: {
770
+ message: string;
771
+ file?: string | undefined;
772
+ line?: number | undefined;
773
+ column?: number | undefined;
774
+ code?: string | undefined;
775
+ severity?: "error" | "warning" | undefined;
776
+ context?: string | undefined;
777
+ guidance?: string | undefined;
778
+ }[];
779
+ guidance?: string | undefined;
780
+ errorSummary?: string | undefined;
781
+ metadata?: {
782
+ issues: string[];
783
+ confidence: number;
784
+ completeness: number;
785
+ detection?: {
786
+ extractor: string;
787
+ confidence: number;
788
+ patterns: string[];
789
+ reason: string;
790
+ } | undefined;
791
+ suggestions?: string[] | undefined;
792
+ } | undefined;
793
+ } | undefined;
794
+ isCachedResult?: boolean | undefined;
795
+ outputFiles?: {
796
+ combined: string;
797
+ stdout?: string | undefined;
798
+ stderr?: string | undefined;
799
+ } | undefined;
800
+ }[];
801
+ }[] | undefined;
802
+ fullLogFile?: string | undefined;
803
+ };
804
+ }, {
805
+ timestamp: string;
806
+ id: string;
807
+ duration: number;
808
+ passed: boolean;
809
+ branch: string;
810
+ headCommit: string;
811
+ uncommittedChanges: boolean;
812
+ result: {
813
+ timestamp: string;
814
+ treeHash: string;
815
+ passed: boolean;
816
+ isCachedResult?: boolean | undefined;
817
+ summary?: string | undefined;
818
+ failedStep?: string | undefined;
819
+ phases?: {
820
+ durationSecs: number;
821
+ name: string;
822
+ passed: boolean;
823
+ steps: {
824
+ command: string;
825
+ exitCode: number;
826
+ durationSecs: number;
827
+ name: string;
828
+ passed: boolean;
829
+ extraction?: {
830
+ summary: string;
831
+ totalErrors: number;
832
+ errors: {
833
+ message: string;
834
+ file?: string | undefined;
835
+ line?: number | undefined;
836
+ column?: number | undefined;
837
+ code?: string | undefined;
838
+ severity?: "error" | "warning" | undefined;
839
+ context?: string | undefined;
840
+ guidance?: string | undefined;
841
+ }[];
842
+ guidance?: string | undefined;
843
+ errorSummary?: string | undefined;
844
+ metadata?: {
845
+ issues: string[];
846
+ confidence: number;
847
+ completeness: number;
848
+ detection?: {
849
+ extractor: string;
850
+ confidence: number;
851
+ patterns: string[];
852
+ reason: string;
853
+ } | undefined;
854
+ suggestions?: string[] | undefined;
855
+ } | undefined;
856
+ } | undefined;
857
+ isCachedResult?: boolean | undefined;
858
+ outputFiles?: {
859
+ combined: string;
860
+ stdout?: string | undefined;
861
+ stderr?: string | undefined;
862
+ } | undefined;
863
+ }[];
864
+ }[] | undefined;
865
+ fullLogFile?: string | undefined;
866
+ };
867
+ }>;
868
+ /**
869
+ * History Note Schema
870
+ *
871
+ * Git note structure stored as YAML in refs/notes/vibe-validate/validate/{treeHash}
872
+ */
873
+ export declare const HistoryNoteSchema: z.ZodObject<{
874
+ /** Tree hash this note is attached to */
875
+ treeHash: z.ZodString;
876
+ /** Array of validation runs for this tree */
877
+ runs: z.ZodArray<z.ZodObject<{
878
+ /** Unique run ID (run-{timestamp}) */
879
+ id: z.ZodString;
880
+ /** ISO 8601 timestamp */
881
+ timestamp: z.ZodString;
882
+ /** Duration in milliseconds */
883
+ duration: z.ZodNumber;
884
+ /** Did validation pass? */
885
+ passed: z.ZodBoolean;
886
+ /** Branch name at time of validation */
887
+ branch: z.ZodString;
888
+ /** HEAD commit SHA at time of validation */
889
+ headCommit: z.ZodString;
890
+ /** Were there uncommitted changes? */
891
+ uncommittedChanges: z.ZodBoolean;
892
+ /** Full validation result (with truncated output) */
893
+ result: z.ZodObject<{
894
+ timestamp: z.ZodString;
895
+ treeHash: z.ZodString;
896
+ } & {
897
+ passed: z.ZodBoolean;
898
+ summary: z.ZodOptional<z.ZodString>;
899
+ isCachedResult: z.ZodOptional<z.ZodBoolean>;
900
+ failedStep: z.ZodOptional<z.ZodString>;
901
+ phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
902
+ name: z.ZodString;
903
+ passed: z.ZodBoolean;
904
+ durationSecs: z.ZodNumber;
905
+ steps: z.ZodArray<z.ZodObject<{
906
+ command: z.ZodString;
907
+ exitCode: z.ZodNumber;
908
+ durationSecs: z.ZodNumber;
909
+ extraction: z.ZodOptional<z.ZodObject<{
910
+ summary: z.ZodString;
911
+ totalErrors: z.ZodNumber;
912
+ errors: z.ZodArray<z.ZodObject<{
913
+ file: z.ZodOptional<z.ZodString>;
914
+ line: z.ZodOptional<z.ZodNumber>;
915
+ column: z.ZodOptional<z.ZodNumber>;
916
+ message: z.ZodString;
917
+ code: z.ZodOptional<z.ZodString>;
918
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
919
+ context: z.ZodOptional<z.ZodString>;
920
+ guidance: z.ZodOptional<z.ZodString>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ message: string;
923
+ file?: string | undefined;
924
+ line?: number | undefined;
925
+ column?: number | undefined;
926
+ code?: string | undefined;
927
+ severity?: "error" | "warning" | undefined;
928
+ context?: string | undefined;
929
+ guidance?: string | undefined;
930
+ }, {
931
+ message: string;
932
+ file?: string | undefined;
933
+ line?: number | undefined;
934
+ column?: number | undefined;
935
+ code?: string | undefined;
936
+ severity?: "error" | "warning" | undefined;
937
+ context?: string | undefined;
938
+ guidance?: string | undefined;
939
+ }>, "many">;
940
+ guidance: z.ZodOptional<z.ZodString>;
941
+ errorSummary: z.ZodOptional<z.ZodString>;
942
+ metadata: z.ZodOptional<z.ZodObject<{
943
+ detection: z.ZodOptional<z.ZodObject<{
944
+ extractor: z.ZodString;
945
+ confidence: z.ZodNumber;
946
+ patterns: z.ZodArray<z.ZodString, "many">;
947
+ reason: z.ZodString;
948
+ }, "strip", z.ZodTypeAny, {
949
+ extractor: string;
950
+ confidence: number;
951
+ patterns: string[];
952
+ reason: string;
953
+ }, {
954
+ extractor: string;
955
+ confidence: number;
956
+ patterns: string[];
957
+ reason: string;
958
+ }>>;
959
+ confidence: z.ZodNumber;
960
+ completeness: z.ZodNumber;
961
+ issues: z.ZodArray<z.ZodString, "many">;
962
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ issues: string[];
965
+ confidence: number;
966
+ completeness: number;
967
+ detection?: {
968
+ extractor: string;
969
+ confidence: number;
970
+ patterns: string[];
971
+ reason: string;
972
+ } | undefined;
973
+ suggestions?: string[] | undefined;
974
+ }, {
975
+ issues: string[];
976
+ confidence: number;
977
+ completeness: number;
978
+ detection?: {
979
+ extractor: string;
980
+ confidence: number;
981
+ patterns: string[];
982
+ reason: string;
983
+ } | undefined;
984
+ suggestions?: string[] | undefined;
985
+ }>>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ summary: string;
988
+ totalErrors: number;
989
+ errors: {
990
+ message: string;
991
+ file?: string | undefined;
992
+ line?: number | undefined;
993
+ column?: number | undefined;
994
+ code?: string | undefined;
995
+ severity?: "error" | "warning" | undefined;
996
+ context?: string | undefined;
997
+ guidance?: string | undefined;
998
+ }[];
999
+ guidance?: string | undefined;
1000
+ errorSummary?: string | undefined;
1001
+ metadata?: {
1002
+ issues: string[];
1003
+ confidence: number;
1004
+ completeness: number;
1005
+ detection?: {
1006
+ extractor: string;
1007
+ confidence: number;
1008
+ patterns: string[];
1009
+ reason: string;
1010
+ } | undefined;
1011
+ suggestions?: string[] | undefined;
1012
+ } | undefined;
1013
+ }, {
1014
+ summary: string;
1015
+ totalErrors: number;
1016
+ errors: {
1017
+ message: string;
1018
+ file?: string | undefined;
1019
+ line?: number | undefined;
1020
+ column?: number | undefined;
1021
+ code?: string | undefined;
1022
+ severity?: "error" | "warning" | undefined;
1023
+ context?: string | undefined;
1024
+ guidance?: string | undefined;
1025
+ }[];
1026
+ guidance?: string | undefined;
1027
+ errorSummary?: string | undefined;
1028
+ metadata?: {
1029
+ issues: string[];
1030
+ confidence: number;
1031
+ completeness: number;
1032
+ detection?: {
1033
+ extractor: string;
1034
+ confidence: number;
1035
+ patterns: string[];
1036
+ reason: string;
1037
+ } | undefined;
1038
+ suggestions?: string[] | undefined;
1039
+ } | undefined;
1040
+ }>>;
1041
+ } & {
1042
+ name: z.ZodString;
1043
+ passed: z.ZodBoolean;
1044
+ isCachedResult: z.ZodOptional<z.ZodBoolean>;
1045
+ outputFiles: z.ZodOptional<z.ZodObject<{
1046
+ stdout: z.ZodOptional<z.ZodString>;
1047
+ stderr: z.ZodOptional<z.ZodString>;
1048
+ combined: z.ZodString;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ combined: string;
1051
+ stdout?: string | undefined;
1052
+ stderr?: string | undefined;
1053
+ }, {
1054
+ combined: string;
1055
+ stdout?: string | undefined;
1056
+ stderr?: string | undefined;
1057
+ }>>;
1058
+ }, "strict", z.ZodTypeAny, {
1059
+ command: string;
1060
+ exitCode: number;
1061
+ durationSecs: number;
1062
+ name: string;
1063
+ passed: boolean;
1064
+ extraction?: {
1065
+ summary: string;
1066
+ totalErrors: number;
1067
+ errors: {
1068
+ message: string;
1069
+ file?: string | undefined;
1070
+ line?: number | undefined;
1071
+ column?: number | undefined;
1072
+ code?: string | undefined;
1073
+ severity?: "error" | "warning" | undefined;
1074
+ context?: string | undefined;
1075
+ guidance?: string | undefined;
1076
+ }[];
1077
+ guidance?: string | undefined;
1078
+ errorSummary?: string | undefined;
1079
+ metadata?: {
1080
+ issues: string[];
1081
+ confidence: number;
1082
+ completeness: number;
1083
+ detection?: {
1084
+ extractor: string;
1085
+ confidence: number;
1086
+ patterns: string[];
1087
+ reason: string;
1088
+ } | undefined;
1089
+ suggestions?: string[] | undefined;
1090
+ } | undefined;
1091
+ } | undefined;
1092
+ isCachedResult?: boolean | undefined;
1093
+ outputFiles?: {
1094
+ combined: string;
1095
+ stdout?: string | undefined;
1096
+ stderr?: string | undefined;
1097
+ } | undefined;
1098
+ }, {
1099
+ command: string;
1100
+ exitCode: number;
1101
+ durationSecs: number;
1102
+ name: string;
1103
+ passed: boolean;
1104
+ extraction?: {
1105
+ summary: string;
1106
+ totalErrors: number;
1107
+ errors: {
1108
+ message: string;
1109
+ file?: string | undefined;
1110
+ line?: number | undefined;
1111
+ column?: number | undefined;
1112
+ code?: string | undefined;
1113
+ severity?: "error" | "warning" | undefined;
1114
+ context?: string | undefined;
1115
+ guidance?: string | undefined;
1116
+ }[];
1117
+ guidance?: string | undefined;
1118
+ errorSummary?: string | undefined;
1119
+ metadata?: {
1120
+ issues: string[];
1121
+ confidence: number;
1122
+ completeness: number;
1123
+ detection?: {
1124
+ extractor: string;
1125
+ confidence: number;
1126
+ patterns: string[];
1127
+ reason: string;
1128
+ } | undefined;
1129
+ suggestions?: string[] | undefined;
1130
+ } | undefined;
1131
+ } | undefined;
1132
+ isCachedResult?: boolean | undefined;
1133
+ outputFiles?: {
1134
+ combined: string;
1135
+ stdout?: string | undefined;
1136
+ stderr?: string | undefined;
1137
+ } | undefined;
1138
+ }>, "many">;
1139
+ }, "strict", z.ZodTypeAny, {
1140
+ durationSecs: number;
1141
+ name: string;
1142
+ passed: boolean;
1143
+ steps: {
1144
+ command: string;
1145
+ exitCode: number;
1146
+ durationSecs: number;
1147
+ name: string;
1148
+ passed: boolean;
1149
+ extraction?: {
1150
+ summary: string;
1151
+ totalErrors: number;
1152
+ errors: {
1153
+ message: string;
1154
+ file?: string | undefined;
1155
+ line?: number | undefined;
1156
+ column?: number | undefined;
1157
+ code?: string | undefined;
1158
+ severity?: "error" | "warning" | undefined;
1159
+ context?: string | undefined;
1160
+ guidance?: string | undefined;
1161
+ }[];
1162
+ guidance?: string | undefined;
1163
+ errorSummary?: string | undefined;
1164
+ metadata?: {
1165
+ issues: string[];
1166
+ confidence: number;
1167
+ completeness: number;
1168
+ detection?: {
1169
+ extractor: string;
1170
+ confidence: number;
1171
+ patterns: string[];
1172
+ reason: string;
1173
+ } | undefined;
1174
+ suggestions?: string[] | undefined;
1175
+ } | undefined;
1176
+ } | undefined;
1177
+ isCachedResult?: boolean | undefined;
1178
+ outputFiles?: {
1179
+ combined: string;
1180
+ stdout?: string | undefined;
1181
+ stderr?: string | undefined;
1182
+ } | undefined;
1183
+ }[];
1184
+ }, {
1185
+ durationSecs: number;
1186
+ name: string;
1187
+ passed: boolean;
1188
+ steps: {
1189
+ command: string;
1190
+ exitCode: number;
1191
+ durationSecs: number;
1192
+ name: string;
1193
+ passed: boolean;
1194
+ extraction?: {
1195
+ summary: string;
1196
+ totalErrors: number;
1197
+ errors: {
1198
+ message: string;
1199
+ file?: string | undefined;
1200
+ line?: number | undefined;
1201
+ column?: number | undefined;
1202
+ code?: string | undefined;
1203
+ severity?: "error" | "warning" | undefined;
1204
+ context?: string | undefined;
1205
+ guidance?: string | undefined;
1206
+ }[];
1207
+ guidance?: string | undefined;
1208
+ errorSummary?: string | undefined;
1209
+ metadata?: {
1210
+ issues: string[];
1211
+ confidence: number;
1212
+ completeness: number;
1213
+ detection?: {
1214
+ extractor: string;
1215
+ confidence: number;
1216
+ patterns: string[];
1217
+ reason: string;
1218
+ } | undefined;
1219
+ suggestions?: string[] | undefined;
1220
+ } | undefined;
1221
+ } | undefined;
1222
+ isCachedResult?: boolean | undefined;
1223
+ outputFiles?: {
1224
+ combined: string;
1225
+ stdout?: string | undefined;
1226
+ stderr?: string | undefined;
1227
+ } | undefined;
1228
+ }[];
1229
+ }>, "many">>;
1230
+ fullLogFile: z.ZodOptional<z.ZodString>;
1231
+ }, "strict", z.ZodTypeAny, {
1232
+ timestamp: string;
1233
+ treeHash: string;
1234
+ passed: boolean;
1235
+ isCachedResult?: boolean | undefined;
1236
+ summary?: string | undefined;
1237
+ failedStep?: string | undefined;
1238
+ phases?: {
1239
+ durationSecs: number;
1240
+ name: string;
1241
+ passed: boolean;
1242
+ steps: {
1243
+ command: string;
1244
+ exitCode: number;
1245
+ durationSecs: number;
1246
+ name: string;
1247
+ passed: boolean;
1248
+ extraction?: {
1249
+ summary: string;
1250
+ totalErrors: number;
1251
+ errors: {
1252
+ message: string;
1253
+ file?: string | undefined;
1254
+ line?: number | undefined;
1255
+ column?: number | undefined;
1256
+ code?: string | undefined;
1257
+ severity?: "error" | "warning" | undefined;
1258
+ context?: string | undefined;
1259
+ guidance?: string | undefined;
1260
+ }[];
1261
+ guidance?: string | undefined;
1262
+ errorSummary?: string | undefined;
1263
+ metadata?: {
1264
+ issues: string[];
1265
+ confidence: number;
1266
+ completeness: number;
1267
+ detection?: {
1268
+ extractor: string;
1269
+ confidence: number;
1270
+ patterns: string[];
1271
+ reason: string;
1272
+ } | undefined;
1273
+ suggestions?: string[] | undefined;
1274
+ } | undefined;
1275
+ } | undefined;
1276
+ isCachedResult?: boolean | undefined;
1277
+ outputFiles?: {
1278
+ combined: string;
1279
+ stdout?: string | undefined;
1280
+ stderr?: string | undefined;
1281
+ } | undefined;
1282
+ }[];
1283
+ }[] | undefined;
1284
+ fullLogFile?: string | undefined;
1285
+ }, {
1286
+ timestamp: string;
1287
+ treeHash: string;
1288
+ passed: boolean;
1289
+ isCachedResult?: boolean | undefined;
1290
+ summary?: string | undefined;
1291
+ failedStep?: string | undefined;
1292
+ phases?: {
1293
+ durationSecs: number;
1294
+ name: string;
1295
+ passed: boolean;
1296
+ steps: {
1297
+ command: string;
1298
+ exitCode: number;
1299
+ durationSecs: number;
1300
+ name: string;
1301
+ passed: boolean;
1302
+ extraction?: {
1303
+ summary: string;
1304
+ totalErrors: number;
1305
+ errors: {
1306
+ message: string;
1307
+ file?: string | undefined;
1308
+ line?: number | undefined;
1309
+ column?: number | undefined;
1310
+ code?: string | undefined;
1311
+ severity?: "error" | "warning" | undefined;
1312
+ context?: string | undefined;
1313
+ guidance?: string | undefined;
1314
+ }[];
1315
+ guidance?: string | undefined;
1316
+ errorSummary?: string | undefined;
1317
+ metadata?: {
1318
+ issues: string[];
1319
+ confidence: number;
1320
+ completeness: number;
1321
+ detection?: {
1322
+ extractor: string;
1323
+ confidence: number;
1324
+ patterns: string[];
1325
+ reason: string;
1326
+ } | undefined;
1327
+ suggestions?: string[] | undefined;
1328
+ } | undefined;
1329
+ } | undefined;
1330
+ isCachedResult?: boolean | undefined;
1331
+ outputFiles?: {
1332
+ combined: string;
1333
+ stdout?: string | undefined;
1334
+ stderr?: string | undefined;
1335
+ } | undefined;
1336
+ }[];
1337
+ }[] | undefined;
1338
+ fullLogFile?: string | undefined;
1339
+ }>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ timestamp: string;
1342
+ id: string;
1343
+ duration: number;
1344
+ passed: boolean;
1345
+ branch: string;
1346
+ headCommit: string;
1347
+ uncommittedChanges: boolean;
1348
+ result: {
1349
+ timestamp: string;
1350
+ treeHash: string;
1351
+ passed: boolean;
1352
+ isCachedResult?: boolean | undefined;
1353
+ summary?: string | undefined;
1354
+ failedStep?: string | undefined;
1355
+ phases?: {
1356
+ durationSecs: number;
1357
+ name: string;
1358
+ passed: boolean;
1359
+ steps: {
1360
+ command: string;
1361
+ exitCode: number;
1362
+ durationSecs: number;
1363
+ name: string;
1364
+ passed: boolean;
1365
+ extraction?: {
1366
+ summary: string;
1367
+ totalErrors: number;
1368
+ errors: {
1369
+ message: string;
1370
+ file?: string | undefined;
1371
+ line?: number | undefined;
1372
+ column?: number | undefined;
1373
+ code?: string | undefined;
1374
+ severity?: "error" | "warning" | undefined;
1375
+ context?: string | undefined;
1376
+ guidance?: string | undefined;
1377
+ }[];
1378
+ guidance?: string | undefined;
1379
+ errorSummary?: string | undefined;
1380
+ metadata?: {
1381
+ issues: string[];
1382
+ confidence: number;
1383
+ completeness: number;
1384
+ detection?: {
1385
+ extractor: string;
1386
+ confidence: number;
1387
+ patterns: string[];
1388
+ reason: string;
1389
+ } | undefined;
1390
+ suggestions?: string[] | undefined;
1391
+ } | undefined;
1392
+ } | undefined;
1393
+ isCachedResult?: boolean | undefined;
1394
+ outputFiles?: {
1395
+ combined: string;
1396
+ stdout?: string | undefined;
1397
+ stderr?: string | undefined;
1398
+ } | undefined;
1399
+ }[];
1400
+ }[] | undefined;
1401
+ fullLogFile?: string | undefined;
1402
+ };
1403
+ }, {
1404
+ timestamp: string;
1405
+ id: string;
1406
+ duration: number;
1407
+ passed: boolean;
1408
+ branch: string;
1409
+ headCommit: string;
1410
+ uncommittedChanges: boolean;
1411
+ result: {
1412
+ timestamp: string;
1413
+ treeHash: string;
1414
+ passed: boolean;
1415
+ isCachedResult?: boolean | undefined;
1416
+ summary?: string | undefined;
1417
+ failedStep?: string | undefined;
1418
+ phases?: {
1419
+ durationSecs: number;
1420
+ name: string;
1421
+ passed: boolean;
1422
+ steps: {
1423
+ command: string;
1424
+ exitCode: number;
1425
+ durationSecs: number;
1426
+ name: string;
1427
+ passed: boolean;
1428
+ extraction?: {
1429
+ summary: string;
1430
+ totalErrors: number;
1431
+ errors: {
1432
+ message: string;
1433
+ file?: string | undefined;
1434
+ line?: number | undefined;
1435
+ column?: number | undefined;
1436
+ code?: string | undefined;
1437
+ severity?: "error" | "warning" | undefined;
1438
+ context?: string | undefined;
1439
+ guidance?: string | undefined;
1440
+ }[];
1441
+ guidance?: string | undefined;
1442
+ errorSummary?: string | undefined;
1443
+ metadata?: {
1444
+ issues: string[];
1445
+ confidence: number;
1446
+ completeness: number;
1447
+ detection?: {
1448
+ extractor: string;
1449
+ confidence: number;
1450
+ patterns: string[];
1451
+ reason: string;
1452
+ } | undefined;
1453
+ suggestions?: string[] | undefined;
1454
+ } | undefined;
1455
+ } | undefined;
1456
+ isCachedResult?: boolean | undefined;
1457
+ outputFiles?: {
1458
+ combined: string;
1459
+ stdout?: string | undefined;
1460
+ stderr?: string | undefined;
1461
+ } | undefined;
1462
+ }[];
1463
+ }[] | undefined;
1464
+ fullLogFile?: string | undefined;
1465
+ };
1466
+ }>, "many">;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ treeHash: string;
1469
+ runs: {
1470
+ timestamp: string;
1471
+ id: string;
1472
+ duration: number;
1473
+ passed: boolean;
1474
+ branch: string;
1475
+ headCommit: string;
1476
+ uncommittedChanges: boolean;
1477
+ result: {
1478
+ timestamp: string;
1479
+ treeHash: string;
1480
+ passed: boolean;
1481
+ isCachedResult?: boolean | undefined;
1482
+ summary?: string | undefined;
1483
+ failedStep?: string | undefined;
1484
+ phases?: {
1485
+ durationSecs: number;
1486
+ name: string;
1487
+ passed: boolean;
1488
+ steps: {
1489
+ command: string;
1490
+ exitCode: number;
1491
+ durationSecs: number;
1492
+ name: string;
1493
+ passed: boolean;
1494
+ extraction?: {
1495
+ summary: string;
1496
+ totalErrors: number;
1497
+ errors: {
1498
+ message: string;
1499
+ file?: string | undefined;
1500
+ line?: number | undefined;
1501
+ column?: number | undefined;
1502
+ code?: string | undefined;
1503
+ severity?: "error" | "warning" | undefined;
1504
+ context?: string | undefined;
1505
+ guidance?: string | undefined;
1506
+ }[];
1507
+ guidance?: string | undefined;
1508
+ errorSummary?: string | undefined;
1509
+ metadata?: {
1510
+ issues: string[];
1511
+ confidence: number;
1512
+ completeness: number;
1513
+ detection?: {
1514
+ extractor: string;
1515
+ confidence: number;
1516
+ patterns: string[];
1517
+ reason: string;
1518
+ } | undefined;
1519
+ suggestions?: string[] | undefined;
1520
+ } | undefined;
1521
+ } | undefined;
1522
+ isCachedResult?: boolean | undefined;
1523
+ outputFiles?: {
1524
+ combined: string;
1525
+ stdout?: string | undefined;
1526
+ stderr?: string | undefined;
1527
+ } | undefined;
1528
+ }[];
1529
+ }[] | undefined;
1530
+ fullLogFile?: string | undefined;
1531
+ };
1532
+ }[];
1533
+ }, {
1534
+ treeHash: string;
1535
+ runs: {
1536
+ timestamp: string;
1537
+ id: string;
1538
+ duration: number;
1539
+ passed: boolean;
1540
+ branch: string;
1541
+ headCommit: string;
1542
+ uncommittedChanges: boolean;
1543
+ result: {
1544
+ timestamp: string;
1545
+ treeHash: string;
1546
+ passed: boolean;
1547
+ isCachedResult?: boolean | undefined;
1548
+ summary?: string | undefined;
1549
+ failedStep?: string | undefined;
1550
+ phases?: {
1551
+ durationSecs: number;
1552
+ name: string;
1553
+ passed: boolean;
1554
+ steps: {
1555
+ command: string;
1556
+ exitCode: number;
1557
+ durationSecs: number;
1558
+ name: string;
1559
+ passed: boolean;
1560
+ extraction?: {
1561
+ summary: string;
1562
+ totalErrors: number;
1563
+ errors: {
1564
+ message: string;
1565
+ file?: string | undefined;
1566
+ line?: number | undefined;
1567
+ column?: number | undefined;
1568
+ code?: string | undefined;
1569
+ severity?: "error" | "warning" | undefined;
1570
+ context?: string | undefined;
1571
+ guidance?: string | undefined;
1572
+ }[];
1573
+ guidance?: string | undefined;
1574
+ errorSummary?: string | undefined;
1575
+ metadata?: {
1576
+ issues: string[];
1577
+ confidence: number;
1578
+ completeness: number;
1579
+ detection?: {
1580
+ extractor: string;
1581
+ confidence: number;
1582
+ patterns: string[];
1583
+ reason: string;
1584
+ } | undefined;
1585
+ suggestions?: string[] | undefined;
1586
+ } | undefined;
1587
+ } | undefined;
1588
+ isCachedResult?: boolean | undefined;
1589
+ outputFiles?: {
1590
+ combined: string;
1591
+ stdout?: string | undefined;
1592
+ stderr?: string | undefined;
1593
+ } | undefined;
1594
+ }[];
1595
+ }[] | undefined;
1596
+ fullLogFile?: string | undefined;
1597
+ };
1598
+ }[];
1599
+ }>;
1600
+ /**
1601
+ * History Configuration Schema
1602
+ */
1603
+ export declare const HistoryConfigSchema: z.ZodOptional<z.ZodObject<{
1604
+ /** Enable history recording */
1605
+ enabled: z.ZodOptional<z.ZodBoolean>;
1606
+ /** Git notes configuration */
1607
+ gitNotes: z.ZodOptional<z.ZodObject<{
1608
+ /** Git ref namespace */
1609
+ ref: z.ZodOptional<z.ZodString>;
1610
+ /** Max runs to keep per tree */
1611
+ maxRunsPerTree: z.ZodOptional<z.ZodNumber>;
1612
+ /** Truncate output to max bytes */
1613
+ maxOutputBytes: z.ZodOptional<z.ZodNumber>;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ ref?: string | undefined;
1616
+ maxRunsPerTree?: number | undefined;
1617
+ maxOutputBytes?: number | undefined;
1618
+ }, {
1619
+ ref?: string | undefined;
1620
+ maxRunsPerTree?: number | undefined;
1621
+ maxOutputBytes?: number | undefined;
1622
+ }>>;
1623
+ /** Retention policy */
1624
+ retention: z.ZodOptional<z.ZodObject<{
1625
+ /** Warn after this many days */
1626
+ warnAfterDays: z.ZodOptional<z.ZodNumber>;
1627
+ /** Warn after this many total notes */
1628
+ warnAfterCount: z.ZodOptional<z.ZodNumber>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ warnAfterDays?: number | undefined;
1631
+ warnAfterCount?: number | undefined;
1632
+ }, {
1633
+ warnAfterDays?: number | undefined;
1634
+ warnAfterCount?: number | undefined;
1635
+ }>>;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ enabled?: boolean | undefined;
1638
+ gitNotes?: {
1639
+ ref?: string | undefined;
1640
+ maxRunsPerTree?: number | undefined;
1641
+ maxOutputBytes?: number | undefined;
1642
+ } | undefined;
1643
+ retention?: {
1644
+ warnAfterDays?: number | undefined;
1645
+ warnAfterCount?: number | undefined;
1646
+ } | undefined;
1647
+ }, {
1648
+ enabled?: boolean | undefined;
1649
+ gitNotes?: {
1650
+ ref?: string | undefined;
1651
+ maxRunsPerTree?: number | undefined;
1652
+ maxOutputBytes?: number | undefined;
1653
+ } | undefined;
1654
+ retention?: {
1655
+ warnAfterDays?: number | undefined;
1656
+ warnAfterCount?: number | undefined;
1657
+ } | undefined;
1658
+ }>>;
1659
+ /**
1660
+ * Inferred TypeScript types from Zod schemas
1661
+ */
1662
+ export type RunCacheNote = z.infer<typeof RunCacheNoteSchema>;
1663
+ export type ValidationRun = z.infer<typeof ValidationRunSchema>;
1664
+ export type HistoryNote = z.infer<typeof HistoryNoteSchema>;
1665
+ export type HistoryConfig = z.infer<typeof HistoryConfigSchema>;
1666
+ /**
1667
+ * Default history configuration
1668
+ *
1669
+ * v0.15.0: Adjusted retention thresholds for run command caching
1670
+ * - warnAfterDays: 90 → 30 (more frequent pruning recommended)
1671
+ * - warnAfterCount: 100 → 1000 (run cache creates many more notes)
1672
+ *
1673
+ * Note count estimation with run caching:
1674
+ * - Validation history: ~50-200 notes (one per tree hash)
1675
+ * - Run cache: ~500-1000+ notes (tree hash × command × workdir)
1676
+ * - Total: Can easily reach 500-1500 notes in active development
1677
+ */
1678
+ export declare const DEFAULT_HISTORY_CONFIG: {
1679
+ readonly enabled: true;
1680
+ readonly gitNotes: {
1681
+ readonly ref: "vibe-validate/validate";
1682
+ readonly maxRunsPerTree: 10;
1683
+ readonly maxOutputBytes: 10000;
1684
+ };
1685
+ readonly retention: {
1686
+ readonly warnAfterDays: 30;
1687
+ readonly warnAfterCount: 1000;
1688
+ };
1689
+ };
1690
+ //# sourceMappingURL=schemas.d.ts.map