@vitest-agent/ui 2.0.5 → 2.0.7

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
@@ -1072,95 +1072,12 @@ declare const buildFooter: (inputs: DispatchInputs) => string;
1072
1072
  declare const formatDisplayDuration: (ms: number) => string;
1073
1073
  //#endregion
1074
1074
  //#region src/pubsub/Channel.d.ts
1075
- declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vitest-agent-ui/RunEventChannel", PubSub.PubSub<import("effect/Schema").Struct.ReadonlySide<{
1076
- readonly _tag: import("effect/Schema").tag<"RunStarted">;
1077
- readonly runId: import("effect/Schema").String;
1078
- readonly startedAt: import("effect/Schema").String;
1079
- readonly configHash: import("effect/Schema").String;
1080
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1081
- readonly _tag: import("effect/Schema").tag<"TestStarted">;
1082
- readonly modulePath: import("effect/Schema").String;
1083
- readonly testName: import("effect/Schema").String;
1084
- readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
1085
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1086
- readonly _tag: import("effect/Schema").tag<"ModuleCollected">;
1087
- readonly modulePath: import("effect/Schema").String;
1088
- readonly testCount: import("effect/Schema").Number;
1089
- readonly suiteCount: import("effect/Schema").Number;
1090
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1091
- readonly _tag: import("effect/Schema").tag<"SuiteStarted">;
1092
- readonly modulePath: import("effect/Schema").String;
1093
- readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
1094
- readonly suiteName: import("effect/Schema").String;
1095
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1096
- readonly _tag: import("effect/Schema").tag<"SuiteFinished">;
1097
- readonly modulePath: import("effect/Schema").String;
1098
- readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
1099
- readonly suiteName: import("effect/Schema").String;
1100
- readonly passCount: import("effect/Schema").Number;
1101
- readonly failCount: import("effect/Schema").Number;
1102
- readonly skipCount: import("effect/Schema").Number;
1103
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1104
- readonly _tag: import("effect/Schema").tag<"HookStarted">;
1105
- readonly modulePath: import("effect/Schema").String;
1106
- readonly hookType: import("effect/Schema").Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
1107
- readonly scopeName: import("effect/Schema").String;
1108
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1109
- readonly _tag: import("effect/Schema").tag<"RunTimedOut">;
1110
- readonly message: import("effect/Schema").String;
1111
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1112
- readonly _tag: import("effect/Schema").tag<"TestAnnotated">;
1113
- readonly modulePath: import("effect/Schema").String;
1114
- readonly testName: import("effect/Schema").String;
1115
- readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
1116
- readonly annotation: import("effect/Schema").String;
1117
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1118
- readonly _tag: import("effect/Schema").tag<"TestArtifactRecorded">;
1119
- readonly modulePath: import("effect/Schema").String;
1120
- readonly testName: import("effect/Schema").String;
1121
- readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
1122
- readonly artifact: import("effect/Schema").String;
1123
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1124
- readonly _tag: import("effect/Schema").tag<"WatcherReady">;
1125
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1126
- readonly _tag: import("effect/Schema").tag<"TrendComputed">;
1127
- readonly direction: import("effect/Schema").Literals<readonly ["improving", "regressing", "stable"]>;
1128
- readonly runCount: import("effect/Schema").Number;
1129
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1130
- readonly _tag: import("effect/Schema").tag<"CoverageReady">;
1131
- readonly metrics: import("effect/Schema").Struct<{
1132
- readonly statements: import("effect/Schema").Number;
1133
- readonly branches: import("effect/Schema").Number;
1134
- readonly functions: import("effect/Schema").Number;
1135
- readonly lines: import("effect/Schema").Number;
1136
- }>;
1137
- readonly thresholds: import("effect/Schema").Struct<{
1138
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
1139
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
1140
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
1141
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
1142
- }>;
1143
- readonly gaps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1144
- readonly file: import("effect/Schema").String;
1145
- readonly missing: import("effect/Schema").Struct<{
1146
- readonly statements: import("effect/Schema").Number;
1147
- readonly branches: import("effect/Schema").Number;
1148
- readonly functions: import("effect/Schema").Number;
1149
- readonly lines: import("effect/Schema").Number;
1150
- }>;
1151
- readonly uncoveredLines: import("effect/Schema").optional<import("effect/Schema").String>;
1152
- }>>;
1153
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1154
- readonly _tag: import("effect/Schema").tag<"ThresholdViolation">;
1155
- readonly metric: import("effect/Schema").Literals<readonly ["lines", "branches", "functions", "statements"]>;
1156
- readonly expected: import("effect/Schema").Number;
1157
- readonly actual: import("effect/Schema").Number;
1158
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1159
- readonly _tag: import("effect/Schema").tag<"FailureClassified">;
1160
- readonly modulePath: import("effect/Schema").String;
1161
- readonly testName: import("effect/Schema").String;
1162
- readonly classification: import("effect/Schema").Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
1163
- }, "Type"> | {
1075
+ declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vitest-agent-ui/RunEventChannel", PubSub.PubSub<{
1076
+ readonly _tag: "RunStarted";
1077
+ readonly runId: string;
1078
+ readonly startedAt: string;
1079
+ readonly configHash: string;
1080
+ } | {
1164
1081
  readonly _tag: "ModuleQueued";
1165
1082
  readonly modulePath: string;
1166
1083
  readonly projectName?: string | undefined;
@@ -1169,6 +1086,11 @@ declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vites
1169
1086
  readonly modulePath: string;
1170
1087
  readonly startedAt: string;
1171
1088
  readonly projectName?: string | undefined;
1089
+ } | {
1090
+ readonly _tag: "TestStarted";
1091
+ readonly modulePath: string;
1092
+ readonly testName: string;
1093
+ readonly suitePath: readonly string[];
1172
1094
  } | {
1173
1095
  readonly _tag: "TestFinished";
1174
1096
  readonly modulePath: string;
@@ -1196,6 +1118,29 @@ declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vites
1196
1118
  readonly tagCounts?: {
1197
1119
  readonly [x: string]: number;
1198
1120
  } | undefined;
1121
+ } | {
1122
+ readonly _tag: "ModuleCollected";
1123
+ readonly modulePath: string;
1124
+ readonly testCount: number;
1125
+ readonly suiteCount: number;
1126
+ } | {
1127
+ readonly _tag: "SuiteStarted";
1128
+ readonly modulePath: string;
1129
+ readonly suitePath: readonly string[];
1130
+ readonly suiteName: string;
1131
+ } | {
1132
+ readonly _tag: "SuiteFinished";
1133
+ readonly modulePath: string;
1134
+ readonly suitePath: readonly string[];
1135
+ readonly suiteName: string;
1136
+ readonly passCount: number;
1137
+ readonly failCount: number;
1138
+ readonly skipCount: number;
1139
+ } | {
1140
+ readonly _tag: "HookStarted";
1141
+ readonly modulePath: string;
1142
+ readonly hookType: "afterAll" | "afterEach" | "beforeAll" | "beforeEach";
1143
+ readonly scopeName: string;
1199
1144
  } | {
1200
1145
  readonly _tag: "HookFinished";
1201
1146
  readonly modulePath: string;
@@ -1217,10 +1162,65 @@ declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vites
1217
1162
  readonly level: "stderr" | "stdout";
1218
1163
  readonly content: string;
1219
1164
  readonly time: number;
1165
+ } | {
1166
+ readonly _tag: "RunTimedOut";
1167
+ readonly message: string;
1168
+ } | {
1169
+ readonly _tag: "TestAnnotated";
1170
+ readonly modulePath: string;
1171
+ readonly testName: string;
1172
+ readonly suitePath: readonly string[];
1173
+ readonly annotation: string;
1174
+ } | {
1175
+ readonly _tag: "TestArtifactRecorded";
1176
+ readonly modulePath: string;
1177
+ readonly testName: string;
1178
+ readonly suitePath: readonly string[];
1179
+ readonly artifact: string;
1180
+ } | {
1181
+ readonly _tag: "WatcherReady";
1220
1182
  } | {
1221
1183
  readonly _tag: "WatcherRerun";
1222
1184
  readonly triggerFiles: readonly string[];
1223
1185
  readonly reason?: string | undefined;
1186
+ } | {
1187
+ readonly _tag: "TrendComputed";
1188
+ readonly direction: "improving" | "regressing" | "stable";
1189
+ readonly runCount: number;
1190
+ } | {
1191
+ readonly _tag: "CoverageReady";
1192
+ readonly metrics: {
1193
+ readonly statements: number;
1194
+ readonly branches: number;
1195
+ readonly functions: number;
1196
+ readonly lines: number;
1197
+ };
1198
+ readonly thresholds: {
1199
+ readonly lines?: number | undefined;
1200
+ readonly functions?: number | undefined;
1201
+ readonly branches?: number | undefined;
1202
+ readonly statements?: number | undefined;
1203
+ };
1204
+ readonly gaps: readonly {
1205
+ readonly file: string;
1206
+ readonly missing: {
1207
+ readonly statements: number;
1208
+ readonly branches: number;
1209
+ readonly functions: number;
1210
+ readonly lines: number;
1211
+ };
1212
+ readonly uncoveredLines?: string | undefined;
1213
+ }[];
1214
+ } | {
1215
+ readonly _tag: "ThresholdViolation";
1216
+ readonly metric: "branches" | "functions" | "lines" | "statements";
1217
+ readonly expected: number;
1218
+ readonly actual: number;
1219
+ } | {
1220
+ readonly _tag: "FailureClassified";
1221
+ readonly modulePath: string;
1222
+ readonly testName: string;
1223
+ readonly classification: "flaky" | "new-failure" | "persistent" | "recovered" | "stable";
1224
1224
  } | {
1225
1225
  readonly _tag: "SuggestedAction";
1226
1226
  readonly severity: "blocker" | "info" | "warn";
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.0.5";
36
+ const CURRENT_UI_VERSION = "2.0.7";
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.0.5",
3
+ "version": "2.0.7",
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,8 +39,8 @@
39
39
  "./package.json": "./package.json"
40
40
  },
41
41
  "dependencies": {
42
- "@vitest-agent/sdk": "2.0.5",
43
- "effect": "4.0.0-beta.99"
42
+ "@vitest-agent/sdk": "2.0.7",
43
+ "effect": "4.0.0-beta.101"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "ink": "^7.1.0",
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.11"
8
+ "packageVersion": "7.58.12"
9
9
  }
10
10
  ]
11
11
  }