@vitest-agent/ui 2.3.1 → 2.4.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 (3) hide show
  1. package/index.d.ts +68 -0
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -537,6 +537,12 @@ declare const AgentReport: Schema.Struct<{
537
537
  readonly functions: Schema.optional<Schema.Number>;
538
538
  readonly branches: Schema.optional<Schema.Number>;
539
539
  readonly statements: Schema.optional<Schema.Number>;
540
+ readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
541
+ readonly lines: Schema.optional<Schema.Number>;
542
+ readonly functions: Schema.optional<Schema.Number>;
543
+ readonly branches: Schema.optional<Schema.Number>;
544
+ readonly statements: Schema.optional<Schema.Number>;
545
+ }>]>>;
540
546
  }>]>>, never>;
541
547
  }>;
542
548
  readonly targets: Schema.optional<Schema.Struct<{
@@ -551,6 +557,12 @@ declare const AgentReport: Schema.Struct<{
551
557
  readonly functions: Schema.optional<Schema.Number>;
552
558
  readonly branches: Schema.optional<Schema.Number>;
553
559
  readonly statements: Schema.optional<Schema.Number>;
560
+ readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
561
+ readonly lines: Schema.optional<Schema.Number>;
562
+ readonly functions: Schema.optional<Schema.Number>;
563
+ readonly branches: Schema.optional<Schema.Number>;
564
+ readonly statements: Schema.optional<Schema.Number>;
565
+ }>]>>;
554
566
  }>]>>, never>;
555
567
  }>>;
556
568
  readonly baselines: Schema.optional<Schema.Struct<{
@@ -565,6 +577,12 @@ declare const AgentReport: Schema.Struct<{
565
577
  readonly functions: Schema.optional<Schema.Number>;
566
578
  readonly branches: Schema.optional<Schema.Number>;
567
579
  readonly statements: Schema.optional<Schema.Number>;
580
+ readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
581
+ readonly lines: Schema.optional<Schema.Number>;
582
+ readonly functions: Schema.optional<Schema.Number>;
583
+ readonly branches: Schema.optional<Schema.Number>;
584
+ readonly statements: Schema.optional<Schema.Number>;
585
+ }>]>>;
568
586
  }>]>>, never>;
569
587
  }>>;
570
588
  readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
@@ -749,11 +767,36 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
749
767
  readonly testName: Schema.String;
750
768
  readonly suitePath: Schema.$Array<Schema.String>;
751
769
  readonly annotation: Schema.String;
770
+ readonly annotationType: Schema.String;
771
+ readonly location: Schema.optional<Schema.Struct<{
772
+ readonly file: Schema.String;
773
+ readonly line: Schema.Number;
774
+ readonly column: Schema.Number;
775
+ }>>;
776
+ readonly attachments: Schema.$Array<Schema.Struct<{
777
+ readonly contentType: Schema.optional<Schema.String>;
778
+ readonly path: Schema.optional<Schema.String>;
779
+ readonly body: Schema.optional<Schema.String>;
780
+ readonly bodyEncoding: Schema.optional<Schema.Literals<readonly ["base64", "utf-8"]>>;
781
+ readonly byteSize: Schema.Number;
782
+ }>>;
752
783
  }>, Schema.TaggedStruct<"TestArtifactRecorded", {
753
784
  readonly modulePath: Schema.String;
754
785
  readonly testName: Schema.String;
755
786
  readonly suitePath: Schema.$Array<Schema.String>;
756
787
  readonly artifact: Schema.String;
788
+ readonly location: Schema.optional<Schema.Struct<{
789
+ readonly file: Schema.String;
790
+ readonly line: Schema.Number;
791
+ readonly column: Schema.Number;
792
+ }>>;
793
+ readonly attachments: Schema.$Array<Schema.Struct<{
794
+ readonly contentType: Schema.optional<Schema.String>;
795
+ readonly path: Schema.optional<Schema.String>;
796
+ readonly body: Schema.optional<Schema.String>;
797
+ readonly bodyEncoding: Schema.optional<Schema.Literals<readonly ["base64", "utf-8"]>>;
798
+ readonly byteSize: Schema.Number;
799
+ }>>;
757
800
  }>, Schema.TaggedStruct<"WatcherReady", {}>, Schema.TaggedStruct<"WatcherRerun", {
758
801
  readonly triggerFiles: Schema.$Array<Schema.String>;
759
802
  readonly reason: Schema.optional<Schema.String>;
@@ -1252,12 +1295,37 @@ declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vites
1252
1295
  readonly testName: string;
1253
1296
  readonly suitePath: readonly string[];
1254
1297
  readonly annotation: string;
1298
+ readonly annotationType: string;
1299
+ readonly location?: {
1300
+ readonly file: string;
1301
+ readonly line: number;
1302
+ readonly column: number;
1303
+ } | undefined;
1304
+ readonly attachments: readonly {
1305
+ readonly contentType?: string | undefined;
1306
+ readonly path?: string | undefined;
1307
+ readonly body?: string | undefined;
1308
+ readonly bodyEncoding?: "base64" | "utf-8" | undefined;
1309
+ readonly byteSize: number;
1310
+ }[];
1255
1311
  } | {
1256
1312
  readonly _tag: "TestArtifactRecorded";
1257
1313
  readonly modulePath: string;
1258
1314
  readonly testName: string;
1259
1315
  readonly suitePath: readonly string[];
1260
1316
  readonly artifact: string;
1317
+ readonly location?: {
1318
+ readonly file: string;
1319
+ readonly line: number;
1320
+ readonly column: number;
1321
+ } | undefined;
1322
+ readonly attachments: readonly {
1323
+ readonly contentType?: string | undefined;
1324
+ readonly path?: string | undefined;
1325
+ readonly body?: string | undefined;
1326
+ readonly bodyEncoding?: "base64" | "utf-8" | undefined;
1327
+ readonly byteSize: number;
1328
+ }[];
1261
1329
  } | {
1262
1330
  readonly _tag: "WatcherReady";
1263
1331
  } | {
package/index.js CHANGED
@@ -33,7 +33,7 @@ import { ActionSeverity, CoverageFile, CoverageGap, CoverageMetric, CoverageRend
33
33
  *
34
34
  * @public
35
35
  */
36
- const CURRENT_UI_VERSION = "2.3.1";
36
+ const CURRENT_UI_VERSION = "2.4.1";
37
37
 
38
38
  //#endregion
39
39
  export { ActionSeverity, CURRENT_UI_VERSION, CountColumns, CoverageBlock, CoverageFile, CoverageGap, CoverageMetric, CoverageRenderState, DURATION_CELL_WIDTH, FailureRecord, FailureSection, FailuresSection, ModuleHeader, ModuleRecord, ProjectRow, RenderState, RenderTotals, RunEvent, RunEventChannel, RunEventChannelLive, SPINNER_FRAMES, SPINNER_FRAME_MS, SUITE_LOAD_FAILURE_LABEL, StatusIcon, StreamApp, SuggestedActionRecord, SuggestedActions, TagColumns, TestRecord, TestRow, TrendLine, accumulateUntilFinished, buildFooter, classifyOutcome, classifyRunShape, dispatch, dispatchInk, dispatcherTable, dominantClassification, forEachRenderState, formatDisplayDuration, initialRenderState, publish, publishAll, reduceRenderState, reduceRenderStateAll, renderAgent, renderStateStream, spinnerFrame, spinnerFrameForTime, subscribeRaw, synthesizeFromAgentReport, synthesizeRunEvents, tagUnion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/ui",
3
- "version": "2.3.1",
3
+ "version": "2.4.1",
4
4
  "private": false,
5
5
  "description": "Shared event-sourced renderer for vitest-agent. React Ink view for humans, plain-string view for agents, both fed by the same reducer over a RunEvent stream.",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "./package.json": "./package.json"
40
40
  },
41
41
  "dependencies": {
42
- "@vitest-agent/sdk": "2.5.1",
42
+ "@vitest-agent/sdk": "3.1.0",
43
43
  "effect": "4.0.0-rc.112"
44
44
  },
45
45
  "peerDependencies": {