@vitest-agent/ui 5.0.9 → 5.1.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/index.d.ts CHANGED
@@ -5,10 +5,10 @@ import { CoreStatusName, GlyphSet, Status, Style, TokenName } from "@effected/cl
5
5
  * @public
6
6
  */
7
7
  declare const CoverageTotals: Schema.Struct<{
8
- readonly statements: Schema.Number;
9
- readonly branches: Schema.Number;
10
- readonly functions: Schema.Number;
11
- readonly lines: Schema.Number;
8
+ readonly statements: Schema.Finite;
9
+ readonly branches: Schema.Finite;
10
+ readonly functions: Schema.Finite;
11
+ readonly lines: Schema.Finite;
12
12
  }>;
13
13
  /** @public */
14
14
  type CoverageTotals = typeof CoverageTotals.Type;
@@ -19,10 +19,10 @@ type CoverageTotals = typeof CoverageTotals.Type;
19
19
  declare const FileCoverageReport: Schema.Struct<{
20
20
  readonly file: Schema.String;
21
21
  readonly summary: Schema.Struct<{
22
- readonly statements: Schema.Number;
23
- readonly branches: Schema.Number;
24
- readonly functions: Schema.Number;
25
- readonly lines: Schema.Number;
22
+ readonly statements: Schema.Finite;
23
+ readonly branches: Schema.Finite;
24
+ readonly functions: Schema.Finite;
25
+ readonly lines: Schema.Finite;
26
26
  }>;
27
27
  readonly uncoveredLines: Schema.String;
28
28
  }>;
@@ -42,17 +42,17 @@ declare const GlobShortfall: Schema.Struct<{
42
42
  readonly pattern: Schema.String;
43
43
  /** Aggregate coverage percentages over the files the glob matches. */
44
44
  readonly summary: Schema.Struct<{
45
- readonly statements: Schema.Number;
46
- readonly branches: Schema.Number;
47
- readonly functions: Schema.Number;
48
- readonly lines: Schema.Number;
45
+ readonly statements: Schema.Finite;
46
+ readonly branches: Schema.Finite;
47
+ readonly functions: Schema.Finite;
48
+ readonly lines: Schema.Finite;
49
49
  }>;
50
50
  /** The glob's own metric numbers that were set (`perFile` excluded). */
51
51
  readonly thresholds: Schema.Struct<{
52
- readonly lines: Schema.optional<Schema.Number>;
53
- readonly functions: Schema.optional<Schema.Number>;
54
- readonly branches: Schema.optional<Schema.Number>;
55
- readonly statements: Schema.optional<Schema.Number>;
52
+ readonly lines: Schema.optional<Schema.Finite>;
53
+ readonly functions: Schema.optional<Schema.Finite>;
54
+ readonly branches: Schema.optional<Schema.Finite>;
55
+ readonly statements: Schema.optional<Schema.Finite>;
56
56
  }>;
57
57
  }>;
58
58
  /** @public */
@@ -148,24 +148,24 @@ export type FailureRecord = typeof FailureRecord.Type;
148
148
  */
149
149
  export declare const CoverageRenderState: Schema.Struct<{
150
150
  readonly metrics: Schema.Struct<{
151
- readonly statements: Schema.Number;
152
- readonly branches: Schema.Number;
153
- readonly functions: Schema.Number;
154
- readonly lines: Schema.Number;
151
+ readonly statements: Schema.Finite;
152
+ readonly branches: Schema.Finite;
153
+ readonly functions: Schema.Finite;
154
+ readonly lines: Schema.Finite;
155
155
  }>;
156
156
  readonly thresholds: Schema.Struct<{
157
- readonly lines: Schema.optional<Schema.Number>;
158
- readonly functions: Schema.optional<Schema.Number>;
159
- readonly branches: Schema.optional<Schema.Number>;
160
- readonly statements: Schema.optional<Schema.Number>;
157
+ readonly lines: Schema.optional<Schema.Finite>;
158
+ readonly functions: Schema.optional<Schema.Finite>;
159
+ readonly branches: Schema.optional<Schema.Finite>;
160
+ readonly statements: Schema.optional<Schema.Finite>;
161
161
  }>;
162
162
  readonly gaps: Schema.$Array<Schema.Struct<{
163
163
  readonly file: Schema.String;
164
164
  readonly missing: Schema.Struct<{
165
- readonly statements: Schema.Number;
166
- readonly branches: Schema.Number;
167
- readonly functions: Schema.Number;
168
- readonly lines: Schema.Number;
165
+ readonly statements: Schema.Finite;
166
+ readonly branches: Schema.Finite;
167
+ readonly functions: Schema.Finite;
168
+ readonly lines: Schema.Finite;
169
169
  }>;
170
170
  readonly uncoveredLines: Schema.optional<Schema.String>;
171
171
  }>>;
@@ -180,16 +180,16 @@ export declare const CoverageRenderState: Schema.Struct<{
180
180
  readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
181
181
  readonly pattern: Schema.String;
182
182
  readonly summary: Schema.Struct<{
183
- readonly statements: Schema.Number;
184
- readonly branches: Schema.Number;
185
- readonly functions: Schema.Number;
186
- readonly lines: Schema.Number;
183
+ readonly statements: Schema.Finite;
184
+ readonly branches: Schema.Finite;
185
+ readonly functions: Schema.Finite;
186
+ readonly lines: Schema.Finite;
187
187
  }>;
188
188
  readonly thresholds: Schema.Struct<{
189
- readonly lines: Schema.optional<Schema.Number>;
190
- readonly functions: Schema.optional<Schema.Number>;
191
- readonly branches: Schema.optional<Schema.Number>;
192
- readonly statements: Schema.optional<Schema.Number>;
189
+ readonly lines: Schema.optional<Schema.Finite>;
190
+ readonly functions: Schema.optional<Schema.Finite>;
191
+ readonly branches: Schema.optional<Schema.Finite>;
192
+ readonly statements: Schema.optional<Schema.Finite>;
193
193
  }>;
194
194
  }>>>;
195
195
  }>;
@@ -284,24 +284,24 @@ export declare const RenderState: Schema.Struct<{
284
284
  }>;
285
285
  readonly coverage: Schema.NullOr<Schema.Struct<{
286
286
  readonly metrics: Schema.Struct<{
287
- readonly statements: Schema.Number;
288
- readonly branches: Schema.Number;
289
- readonly functions: Schema.Number;
290
- readonly lines: Schema.Number;
287
+ readonly statements: Schema.Finite;
288
+ readonly branches: Schema.Finite;
289
+ readonly functions: Schema.Finite;
290
+ readonly lines: Schema.Finite;
291
291
  }>;
292
292
  readonly thresholds: Schema.Struct<{
293
- readonly lines: Schema.optional<Schema.Number>;
294
- readonly functions: Schema.optional<Schema.Number>;
295
- readonly branches: Schema.optional<Schema.Number>;
296
- readonly statements: Schema.optional<Schema.Number>;
293
+ readonly lines: Schema.optional<Schema.Finite>;
294
+ readonly functions: Schema.optional<Schema.Finite>;
295
+ readonly branches: Schema.optional<Schema.Finite>;
296
+ readonly statements: Schema.optional<Schema.Finite>;
297
297
  }>;
298
298
  readonly gaps: Schema.$Array<Schema.Struct<{
299
299
  readonly file: Schema.String;
300
300
  readonly missing: Schema.Struct<{
301
- readonly statements: Schema.Number;
302
- readonly branches: Schema.Number;
303
- readonly functions: Schema.Number;
304
- readonly lines: Schema.Number;
301
+ readonly statements: Schema.Finite;
302
+ readonly branches: Schema.Finite;
303
+ readonly functions: Schema.Finite;
304
+ readonly lines: Schema.Finite;
305
305
  }>;
306
306
  readonly uncoveredLines: Schema.optional<Schema.String>;
307
307
  }>>;
@@ -316,16 +316,16 @@ export declare const RenderState: Schema.Struct<{
316
316
  readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
317
317
  readonly pattern: Schema.String;
318
318
  readonly summary: Schema.Struct<{
319
- readonly statements: Schema.Number;
320
- readonly branches: Schema.Number;
321
- readonly functions: Schema.Number;
322
- readonly lines: Schema.Number;
319
+ readonly statements: Schema.Finite;
320
+ readonly branches: Schema.Finite;
321
+ readonly functions: Schema.Finite;
322
+ readonly lines: Schema.Finite;
323
323
  }>;
324
324
  readonly thresholds: Schema.Struct<{
325
- readonly lines: Schema.optional<Schema.Number>;
326
- readonly functions: Schema.optional<Schema.Number>;
327
- readonly branches: Schema.optional<Schema.Number>;
328
- readonly statements: Schema.optional<Schema.Number>;
325
+ readonly lines: Schema.optional<Schema.Finite>;
326
+ readonly functions: Schema.optional<Schema.Finite>;
327
+ readonly branches: Schema.optional<Schema.Finite>;
328
+ readonly statements: Schema.optional<Schema.Finite>;
329
329
  }>;
330
330
  }>>>;
331
331
  }>>;
@@ -382,15 +382,35 @@ export declare const RenderState: Schema.Struct<{
382
382
  * wrote nothing stray.
383
383
  */
384
384
  readonly strayOutput: Schema.optional<Schema.Struct<{
385
- readonly total: Schema.Number;
386
- readonly stdout: Schema.Number;
387
- readonly stderr: Schema.Number;
388
- readonly bytes: Schema.Number;
385
+ readonly total: Schema.Finite;
386
+ readonly stdout: Schema.Finite;
387
+ readonly stderr: Schema.Finite;
388
+ readonly bytes: Schema.Finite;
389
389
  readonly samples: Schema.$Array<Schema.Struct<{
390
390
  readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
391
391
  readonly text: Schema.String;
392
392
  }>>;
393
393
  }>>;
394
+ /**
395
+ * `console.*` output Vitest captured from tests that did not fail, folded
396
+ * from `RunFinished.consoleLeaks`. Absent when the run logged nothing
397
+ * (issue #544).
398
+ */
399
+ readonly consoleLeaks: Schema.optional<Schema.Struct<{
400
+ readonly total: Schema.Finite;
401
+ readonly byFile: Schema.$Array<Schema.Struct<{
402
+ readonly file: Schema.String;
403
+ readonly stdout: Schema.Finite;
404
+ readonly stderr: Schema.Finite;
405
+ readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
406
+ readonly sample: Schema.optional<Schema.String>;
407
+ }>>;
408
+ readonly truncated: Schema.optional<Schema.Boolean>;
409
+ readonly fromFailingTests: Schema.optional<Schema.Struct<{
410
+ readonly total: Schema.Finite;
411
+ readonly files: Schema.Finite;
412
+ }>>;
413
+ }>>;
394
414
  }>;
395
415
  /** @public */
396
416
  export type RenderState = typeof RenderState.Type;
@@ -500,27 +520,41 @@ interface DispatchInputs {
500
520
  readonly runCommand: string | null;
501
521
  }
502
522
  /**
503
- * Render-time options threaded into each cell from the resolved
504
- * `ReporterKit`. These are concerns the cell needs to format its
505
- * output but that do not belong on the state-derived
506
- * {@link DispatchInputs} struct.
523
+ * Where a file link points: a path, with an optional line and column.
524
+ *
525
+ * The file half of `@effected/cli`'s `LinkTarget`, spelled structurally so
526
+ * this platform-free contract names no kit type. A relative path resolves
527
+ * against the working directory the kit's `CliLinks` layer was built with.
528
+ * @public
529
+ */
530
+ interface FileLinkTarget {
531
+ readonly file: string;
532
+ readonly line?: number;
533
+ readonly col?: number;
534
+ }
535
+ /**
536
+ * Render-time options threaded into each cell. These are concerns the
537
+ * cell needs to format its output but that do not belong on the
538
+ * state-derived {@link DispatchInputs} struct.
507
539
  *
508
- * The plugin builds this once per run from the kit and passes it into
540
+ * The caller builds this once per render and passes it into
509
541
  * `dispatch(inputs, opts)`. Cells destructure only what they consume.
510
542
  * @public
511
543
  */
512
544
  interface CellOptions {
513
545
  /**
514
- * Resolved value of the `NO_COLOR` env var. Cells gate ANSI escape
515
- * sequences and OSC-8 hyperlinks on this.
516
- */
517
- readonly noColor: boolean;
518
- /**
519
- * Pre-bound OSC-8 hyperlink helper. The plugin has already decided
520
- * whether OSC-8 should be enabled (`target=stdout`, `!noColor`) so
521
- * cells can call this directly without re-consulting the environment.
546
+ * Writes a file path as a link for the audience and terminal the output
547
+ * is for: the label wrapped in an OSC 8 hyperlink when the reader can
548
+ * follow it, the label unchanged otherwise. The kit decides both halves
549
+ * (`@effected/cli`'s `CliLinks.linker`, `Render.context("stdout").link`):
550
+ * `vscode://file/<path>:<line>:<col>` under VS Code, `file://` otherwise,
551
+ * never for an agent audience, and nothing on a terminal that cannot
552
+ * render hyperlinks (a pipe, tmux, GNU screen, `NO_COLOR`).
553
+ *
554
+ * Omitted, every path is its label alone, which is what an agent reads;
555
+ * a cell therefore never writes an escape sequence of its own.
522
556
  */
523
- readonly osc8: (url: string, label: string) => string;
557
+ readonly link?: (target: FileLinkTarget, label: string) => string;
524
558
  }
525
559
  /**
526
560
  * Complete per-project test report written to disk as JSON.
@@ -531,11 +565,11 @@ declare const AgentReport: Schema.Struct<{
531
565
  readonly project: Schema.optional<Schema.String>;
532
566
  readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
533
567
  readonly summary: Schema.Struct<{
534
- readonly total: Schema.Number;
535
- readonly passed: Schema.Number;
536
- readonly failed: Schema.Number;
537
- readonly skipped: Schema.Number;
538
- readonly duration: Schema.Number;
568
+ readonly total: Schema.Finite;
569
+ readonly passed: Schema.Finite;
570
+ readonly failed: Schema.Finite;
571
+ readonly skipped: Schema.Finite;
572
+ readonly duration: Schema.Finite;
539
573
  /**
540
574
  * Count of every collected module, passing modules included.
541
575
  * `AgentReport.failed` only carries failing modules, so a green run
@@ -543,12 +577,12 @@ declare const AgentReport: Schema.Struct<{
543
577
  * this a fully-passing replay reads as "0 modules all-passed"
544
578
  * (issue #204). Optional to keep existing fixtures/reports valid.
545
579
  */
546
- readonly modules: Schema.optional<Schema.Number>;
580
+ readonly modules: Schema.optional<Schema.Finite>;
547
581
  }>;
548
582
  readonly failed: Schema.$Array<Schema.Struct<{
549
583
  readonly file: Schema.String;
550
584
  readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
551
- readonly duration: Schema.optional<Schema.Number>;
585
+ readonly duration: Schema.optional<Schema.Finite>;
552
586
  readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
553
587
  readonly message: Schema.String;
554
588
  readonly stack: Schema.optional<Schema.String>;
@@ -560,7 +594,7 @@ declare const AgentReport: Schema.Struct<{
560
594
  readonly name: Schema.String;
561
595
  readonly fullName: Schema.String;
562
596
  readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
563
- readonly duration: Schema.optional<Schema.Number>;
597
+ readonly duration: Schema.optional<Schema.Finite>;
564
598
  readonly flaky: Schema.optional<Schema.Boolean>;
565
599
  readonly slow: Schema.optional<Schema.Boolean>;
566
600
  readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
@@ -583,81 +617,81 @@ declare const AgentReport: Schema.Struct<{
583
617
  readonly failedFiles: Schema.$Array<Schema.String>;
584
618
  readonly coverage: Schema.optional<Schema.Struct<{
585
619
  readonly totals: Schema.Struct<{
586
- readonly statements: Schema.Number;
587
- readonly branches: Schema.Number;
588
- readonly functions: Schema.Number;
589
- readonly lines: Schema.Number;
620
+ readonly statements: Schema.Finite;
621
+ readonly branches: Schema.Finite;
622
+ readonly functions: Schema.Finite;
623
+ readonly lines: Schema.Finite;
590
624
  }>;
591
625
  readonly thresholds: Schema.Struct<{
592
626
  readonly global: Schema.Struct<{
593
- readonly lines: Schema.optional<Schema.Number>;
594
- readonly functions: Schema.optional<Schema.Number>;
595
- readonly branches: Schema.optional<Schema.Number>;
596
- readonly statements: Schema.optional<Schema.Number>;
627
+ readonly lines: Schema.optional<Schema.Finite>;
628
+ readonly functions: Schema.optional<Schema.Finite>;
629
+ readonly branches: Schema.optional<Schema.Finite>;
630
+ readonly statements: Schema.optional<Schema.Finite>;
597
631
  }>;
598
632
  readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
599
- readonly lines: Schema.optional<Schema.Number>;
600
- readonly functions: Schema.optional<Schema.Number>;
601
- readonly branches: Schema.optional<Schema.Number>;
602
- readonly statements: Schema.optional<Schema.Number>;
633
+ readonly lines: Schema.optional<Schema.Finite>;
634
+ readonly functions: Schema.optional<Schema.Finite>;
635
+ readonly branches: Schema.optional<Schema.Finite>;
636
+ readonly statements: Schema.optional<Schema.Finite>;
603
637
  readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
604
- readonly lines: Schema.optional<Schema.Number>;
605
- readonly functions: Schema.optional<Schema.Number>;
606
- readonly branches: Schema.optional<Schema.Number>;
607
- readonly statements: Schema.optional<Schema.Number>;
638
+ readonly lines: Schema.optional<Schema.Finite>;
639
+ readonly functions: Schema.optional<Schema.Finite>;
640
+ readonly branches: Schema.optional<Schema.Finite>;
641
+ readonly statements: Schema.optional<Schema.Finite>;
608
642
  }>]>>;
609
643
  }>]>>, never>;
610
644
  }>;
611
645
  readonly targets: Schema.optional<Schema.Struct<{
612
646
  readonly global: Schema.Struct<{
613
- readonly lines: Schema.optional<Schema.Number>;
614
- readonly functions: Schema.optional<Schema.Number>;
615
- readonly branches: Schema.optional<Schema.Number>;
616
- readonly statements: Schema.optional<Schema.Number>;
647
+ readonly lines: Schema.optional<Schema.Finite>;
648
+ readonly functions: Schema.optional<Schema.Finite>;
649
+ readonly branches: Schema.optional<Schema.Finite>;
650
+ readonly statements: Schema.optional<Schema.Finite>;
617
651
  }>;
618
652
  readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
619
- readonly lines: Schema.optional<Schema.Number>;
620
- readonly functions: Schema.optional<Schema.Number>;
621
- readonly branches: Schema.optional<Schema.Number>;
622
- readonly statements: Schema.optional<Schema.Number>;
653
+ readonly lines: Schema.optional<Schema.Finite>;
654
+ readonly functions: Schema.optional<Schema.Finite>;
655
+ readonly branches: Schema.optional<Schema.Finite>;
656
+ readonly statements: Schema.optional<Schema.Finite>;
623
657
  readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
624
- readonly lines: Schema.optional<Schema.Number>;
625
- readonly functions: Schema.optional<Schema.Number>;
626
- readonly branches: Schema.optional<Schema.Number>;
627
- readonly statements: Schema.optional<Schema.Number>;
658
+ readonly lines: Schema.optional<Schema.Finite>;
659
+ readonly functions: Schema.optional<Schema.Finite>;
660
+ readonly branches: Schema.optional<Schema.Finite>;
661
+ readonly statements: Schema.optional<Schema.Finite>;
628
662
  }>]>>;
629
663
  }>]>>, never>;
630
664
  }>>;
631
665
  readonly baselines: Schema.optional<Schema.Struct<{
632
666
  readonly global: Schema.Struct<{
633
- readonly lines: Schema.optional<Schema.Number>;
634
- readonly functions: Schema.optional<Schema.Number>;
635
- readonly branches: Schema.optional<Schema.Number>;
636
- readonly statements: Schema.optional<Schema.Number>;
667
+ readonly lines: Schema.optional<Schema.Finite>;
668
+ readonly functions: Schema.optional<Schema.Finite>;
669
+ readonly branches: Schema.optional<Schema.Finite>;
670
+ readonly statements: Schema.optional<Schema.Finite>;
637
671
  }>;
638
672
  readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
639
- readonly lines: Schema.optional<Schema.Number>;
640
- readonly functions: Schema.optional<Schema.Number>;
641
- readonly branches: Schema.optional<Schema.Number>;
642
- readonly statements: Schema.optional<Schema.Number>;
673
+ readonly lines: Schema.optional<Schema.Finite>;
674
+ readonly functions: Schema.optional<Schema.Finite>;
675
+ readonly branches: Schema.optional<Schema.Finite>;
676
+ readonly statements: Schema.optional<Schema.Finite>;
643
677
  readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
644
- readonly lines: Schema.optional<Schema.Number>;
645
- readonly functions: Schema.optional<Schema.Number>;
646
- readonly branches: Schema.optional<Schema.Number>;
647
- readonly statements: Schema.optional<Schema.Number>;
678
+ readonly lines: Schema.optional<Schema.Finite>;
679
+ readonly functions: Schema.optional<Schema.Finite>;
680
+ readonly branches: Schema.optional<Schema.Finite>;
681
+ readonly statements: Schema.optional<Schema.Finite>;
648
682
  }>]>>;
649
683
  }>]>>, never>;
650
684
  }>>;
651
685
  readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
652
686
  readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
653
- readonly totalFiles: Schema.optional<Schema.Number>;
687
+ readonly totalFiles: Schema.optional<Schema.Finite>;
654
688
  readonly lowCoverage: Schema.$Array<Schema.Struct<{
655
689
  readonly file: Schema.String;
656
690
  readonly summary: Schema.Struct<{
657
- readonly statements: Schema.Number;
658
- readonly branches: Schema.Number;
659
- readonly functions: Schema.Number;
660
- readonly lines: Schema.Number;
691
+ readonly statements: Schema.Finite;
692
+ readonly branches: Schema.Finite;
693
+ readonly functions: Schema.Finite;
694
+ readonly lines: Schema.Finite;
661
695
  }>;
662
696
  readonly uncoveredLines: Schema.String;
663
697
  }>>;
@@ -665,10 +699,10 @@ declare const AgentReport: Schema.Struct<{
665
699
  readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
666
700
  readonly file: Schema.String;
667
701
  readonly summary: Schema.Struct<{
668
- readonly statements: Schema.Number;
669
- readonly branches: Schema.Number;
670
- readonly functions: Schema.Number;
671
- readonly lines: Schema.Number;
702
+ readonly statements: Schema.Finite;
703
+ readonly branches: Schema.Finite;
704
+ readonly functions: Schema.Finite;
705
+ readonly lines: Schema.Finite;
672
706
  }>;
673
707
  readonly uncoveredLines: Schema.String;
674
708
  }>>>;
@@ -676,44 +710,44 @@ declare const AgentReport: Schema.Struct<{
676
710
  readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
677
711
  readonly pattern: Schema.String;
678
712
  readonly summary: Schema.Struct<{
679
- readonly statements: Schema.Number;
680
- readonly branches: Schema.Number;
681
- readonly functions: Schema.Number;
682
- readonly lines: Schema.Number;
713
+ readonly statements: Schema.Finite;
714
+ readonly branches: Schema.Finite;
715
+ readonly functions: Schema.Finite;
716
+ readonly lines: Schema.Finite;
683
717
  }>;
684
718
  readonly thresholds: Schema.Struct<{
685
- readonly lines: Schema.optional<Schema.Number>;
686
- readonly functions: Schema.optional<Schema.Number>;
687
- readonly branches: Schema.optional<Schema.Number>;
688
- readonly statements: Schema.optional<Schema.Number>;
719
+ readonly lines: Schema.optional<Schema.Finite>;
720
+ readonly functions: Schema.optional<Schema.Finite>;
721
+ readonly branches: Schema.optional<Schema.Finite>;
722
+ readonly statements: Schema.optional<Schema.Finite>;
689
723
  }>;
690
724
  }>>>;
691
725
  }>>;
692
726
  readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
693
- readonly passed: Schema.optional<Schema.Number>;
694
- readonly failed: Schema.optional<Schema.Number>;
695
- readonly skipped: Schema.optional<Schema.Number>;
727
+ readonly passed: Schema.optional<Schema.Finite>;
728
+ readonly failed: Schema.optional<Schema.Finite>;
729
+ readonly skipped: Schema.optional<Schema.Finite>;
696
730
  }>>>;
697
731
  readonly consoleLeaks: Schema.optional<Schema.Struct<{
698
- readonly total: Schema.Number;
732
+ readonly total: Schema.Finite;
699
733
  readonly byFile: Schema.$Array<Schema.Struct<{
700
734
  readonly file: Schema.String;
701
- readonly stdout: Schema.Number;
702
- readonly stderr: Schema.Number;
735
+ readonly stdout: Schema.Finite;
736
+ readonly stderr: Schema.Finite;
703
737
  readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
704
738
  readonly sample: Schema.optional<Schema.String>;
705
739
  }>>;
706
740
  readonly truncated: Schema.optional<Schema.Boolean>;
707
741
  readonly fromFailingTests: Schema.optional<Schema.Struct<{
708
- readonly total: Schema.Number;
709
- readonly files: Schema.Number;
742
+ readonly total: Schema.Finite;
743
+ readonly files: Schema.Finite;
710
744
  }>>;
711
745
  }>>;
712
746
  readonly strayOutput: Schema.optional<Schema.Struct<{
713
- readonly total: Schema.Number;
714
- readonly stdout: Schema.Number;
715
- readonly stderr: Schema.Number;
716
- readonly bytes: Schema.Number;
747
+ readonly total: Schema.Finite;
748
+ readonly stdout: Schema.Finite;
749
+ readonly stderr: Schema.Finite;
750
+ readonly bytes: Schema.Finite;
717
751
  readonly samples: Schema.$Array<Schema.Struct<{
718
752
  readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
719
753
  readonly text: Schema.String;
@@ -751,10 +785,10 @@ export type ActionSeverity = typeof ActionSeverity.Type;
751
785
  export declare const CoverageGap: Schema.Struct<{
752
786
  readonly file: Schema.String;
753
787
  readonly missing: Schema.Struct<{
754
- readonly statements: Schema.Number;
755
- readonly branches: Schema.Number;
756
- readonly functions: Schema.Number;
757
- readonly lines: Schema.Number;
788
+ readonly statements: Schema.Finite;
789
+ readonly branches: Schema.Finite;
790
+ readonly functions: Schema.Finite;
791
+ readonly lines: Schema.Finite;
758
792
  }>;
759
793
  readonly uncoveredLines: Schema.optional<Schema.String>;
760
794
  }>;
@@ -891,24 +925,24 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
891
925
  readonly runCount: Schema.Number;
892
926
  }>, Schema.TaggedStruct<"CoverageReady", {
893
927
  readonly metrics: Schema.Struct<{
894
- readonly statements: Schema.Number;
895
- readonly branches: Schema.Number;
896
- readonly functions: Schema.Number;
897
- readonly lines: Schema.Number;
928
+ readonly statements: Schema.Finite;
929
+ readonly branches: Schema.Finite;
930
+ readonly functions: Schema.Finite;
931
+ readonly lines: Schema.Finite;
898
932
  }>;
899
933
  readonly thresholds: Schema.Struct<{
900
- readonly lines: Schema.optional<Schema.Number>;
901
- readonly functions: Schema.optional<Schema.Number>;
902
- readonly branches: Schema.optional<Schema.Number>;
903
- readonly statements: Schema.optional<Schema.Number>;
934
+ readonly lines: Schema.optional<Schema.Finite>;
935
+ readonly functions: Schema.optional<Schema.Finite>;
936
+ readonly branches: Schema.optional<Schema.Finite>;
937
+ readonly statements: Schema.optional<Schema.Finite>;
904
938
  }>;
905
939
  readonly gaps: Schema.$Array<Schema.Struct<{
906
940
  readonly file: Schema.String;
907
941
  readonly missing: Schema.Struct<{
908
- readonly statements: Schema.Number;
909
- readonly branches: Schema.Number;
910
- readonly functions: Schema.Number;
911
- readonly lines: Schema.Number;
942
+ readonly statements: Schema.Finite;
943
+ readonly branches: Schema.Finite;
944
+ readonly functions: Schema.Finite;
945
+ readonly lines: Schema.Finite;
912
946
  }>;
913
947
  readonly uncoveredLines: Schema.optional<Schema.String>;
914
948
  }>>;
@@ -918,16 +952,16 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
918
952
  readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
919
953
  readonly pattern: Schema.String;
920
954
  readonly summary: Schema.Struct<{
921
- readonly statements: Schema.Number;
922
- readonly branches: Schema.Number;
923
- readonly functions: Schema.Number;
924
- readonly lines: Schema.Number;
955
+ readonly statements: Schema.Finite;
956
+ readonly branches: Schema.Finite;
957
+ readonly functions: Schema.Finite;
958
+ readonly lines: Schema.Finite;
925
959
  }>;
926
960
  readonly thresholds: Schema.Struct<{
927
- readonly lines: Schema.optional<Schema.Number>;
928
- readonly functions: Schema.optional<Schema.Number>;
929
- readonly branches: Schema.optional<Schema.Number>;
930
- readonly statements: Schema.optional<Schema.Number>;
961
+ readonly lines: Schema.optional<Schema.Finite>;
962
+ readonly functions: Schema.optional<Schema.Finite>;
963
+ readonly branches: Schema.optional<Schema.Finite>;
964
+ readonly statements: Schema.optional<Schema.Finite>;
931
965
  }>;
932
966
  }>>>;
933
967
  }>, Schema.TaggedStruct<"ThresholdViolation", {
@@ -978,15 +1012,35 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
978
1012
  * wrote nothing stray, and in older replay data.
979
1013
  */
980
1014
  readonly strayOutput: Schema.optional<Schema.Struct<{
981
- readonly total: Schema.Number;
982
- readonly stdout: Schema.Number;
983
- readonly stderr: Schema.Number;
984
- readonly bytes: Schema.Number;
1015
+ readonly total: Schema.Finite;
1016
+ readonly stdout: Schema.Finite;
1017
+ readonly stderr: Schema.Finite;
1018
+ readonly bytes: Schema.Finite;
985
1019
  readonly samples: Schema.$Array<Schema.Struct<{
986
1020
  readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
987
1021
  readonly text: Schema.String;
988
1022
  }>>;
989
1023
  }>>;
1024
+ /**
1025
+ * `console.*` output Vitest captured from tests that did not fail
1026
+ * (`AgentReport.consoleLeaks`). Optional: absent when the run logged
1027
+ * nothing, and in older replay data (issue #544).
1028
+ */
1029
+ readonly consoleLeaks: Schema.optional<Schema.Struct<{
1030
+ readonly total: Schema.Finite;
1031
+ readonly byFile: Schema.$Array<Schema.Struct<{
1032
+ readonly file: Schema.String;
1033
+ readonly stdout: Schema.Finite;
1034
+ readonly stderr: Schema.Finite;
1035
+ readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
1036
+ readonly sample: Schema.optional<Schema.String>;
1037
+ }>>;
1038
+ readonly truncated: Schema.optional<Schema.Boolean>;
1039
+ readonly fromFailingTests: Schema.optional<Schema.Struct<{
1040
+ readonly total: Schema.Finite;
1041
+ readonly files: Schema.Finite;
1042
+ }>>;
1043
+ }>>;
990
1044
  }>]>;
991
1045
  /** @public */
992
1046
  export type RunEvent = typeof RunEvent.Type;
@@ -1003,10 +1057,10 @@ type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
1003
1057
  * @public
1004
1058
  */
1005
1059
  declare const MetricThresholds: Schema.Struct<{
1006
- readonly lines: Schema.optional<Schema.Number>;
1007
- readonly functions: Schema.optional<Schema.Number>;
1008
- readonly branches: Schema.optional<Schema.Number>;
1009
- readonly statements: Schema.optional<Schema.Number>;
1060
+ readonly lines: Schema.optional<Schema.Finite>;
1061
+ readonly functions: Schema.optional<Schema.Finite>;
1062
+ readonly branches: Schema.optional<Schema.Finite>;
1063
+ readonly statements: Schema.optional<Schema.Finite>;
1010
1064
  }>;
1011
1065
  /** @public */
1012
1066
  type MetricThresholds = typeof MetricThresholds.Type;
@@ -1405,12 +1459,8 @@ interface SynthesizeOptions {
1405
1459
  readonly finishedAt?: string;
1406
1460
  readonly classifications?: ReadonlyMap<string, TestClassification>;
1407
1461
  readonly coverage?: SynthesizedCoverage;
1408
- readonly suggestedActions?: ReadonlyArray<{
1409
- readonly severity: ActionSeverity;
1410
- readonly title: string;
1411
- readonly detail: string;
1412
- readonly targetTool?: string;
1413
- }>;
1462
+ /** Run-level suggested actions, one `SuggestedAction` event each, emitted before `RunFinished`. */
1463
+ readonly suggestedActions?: ReadonlyArray<SuggestedActionRecord>;
1414
1464
  }
1415
1465
  /**
1416
1466
  * Coverage data to thread into the synthesized event stream.
@@ -1565,5 +1615,5 @@ export declare const statusInkStyle: (name: VitestAgentStatusName) => InkTextSty
1565
1615
  * @public
1566
1616
  */
1567
1617
  export declare const CURRENT_UI_VERSION: string;
1568
- export { type AgentCellFn, type AgentReport, type Cell, type CellOptions, FileCoverageReport as CoverageFile, type CoverageTotals, type DispatchInputs, type GlobShortfall, type InkTextStyle, type MetricThresholds, type ProjectSummary, type RenderAgentOptions, type RunEventByTag, type RunOutcome, type RunShape, type SynthesizeFromAgentReportOptions, type SynthesizeOptions, type SynthesizedCoverage, type TestClassification, type TrendSummary, type VitestAgentStatusName, type VitestModuleDiagnostic, type VitestModuleError, type VitestParsedStack, type VitestTestCase, type VitestTestDiagnostic, type VitestTestError, type VitestTestModule, type VitestTestResult, type VitestTestSuite };
1618
+ export { type AgentCellFn, type AgentReport, type Cell, type CellOptions, FileCoverageReport as CoverageFile, type CoverageTotals, type DispatchInputs, type FileLinkTarget, type GlobShortfall, type InkTextStyle, type MetricThresholds, type ProjectSummary, type RenderAgentOptions, type RunEventByTag, type RunOutcome, type RunShape, type SynthesizeFromAgentReportOptions, type SynthesizeOptions, type SynthesizedCoverage, type TestClassification, type TrendSummary, type VitestAgentStatusName, type VitestModuleDiagnostic, type VitestModuleError, type VitestParsedStack, type VitestTestCase, type VitestTestDiagnostic, type VitestTestError, type VitestTestModule, type VitestTestResult, type VitestTestSuite };
1569
1619
  //# sourceMappingURL=index.d.ts.map