@vitest-agent/ui 1.0.0 → 1.0.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 +29 -29
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1111,31 +1111,30 @@ declare const formatDisplayDuration: (ms: number) => string;
1111
1111
  //#endregion
1112
1112
  //#region src/pubsub/Channel.d.ts
1113
1113
  declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-agent-ui/RunEventChannel", PubSub.PubSub<{
1114
- readonly _tag: "RunStarted";
1115
1114
  readonly runId: string;
1116
- readonly startedAt: string;
1117
1115
  readonly configHash: string;
1116
+ readonly startedAt: string;
1117
+ readonly _tag: "RunStarted";
1118
1118
  } | {
1119
- readonly _tag: "ModuleQueued";
1120
1119
  readonly modulePath: string;
1121
1120
  readonly projectName?: string | undefined;
1121
+ readonly _tag: "ModuleQueued";
1122
1122
  } | {
1123
- readonly _tag: "ModuleStarted";
1124
1123
  readonly startedAt: string;
1125
1124
  readonly modulePath: string;
1126
1125
  readonly projectName?: string | undefined;
1126
+ readonly _tag: "ModuleStarted";
1127
1127
  } | {
1128
- readonly _tag: "TestStarted";
1129
1128
  readonly modulePath: string;
1130
1129
  readonly testName: string;
1131
1130
  readonly suitePath: readonly string[];
1131
+ readonly _tag: "TestStarted";
1132
1132
  } | {
1133
- readonly _tag: "TestFinished";
1134
1133
  readonly modulePath: string;
1135
- readonly testName: string;
1136
- readonly suitePath: readonly string[];
1137
1134
  readonly status: "passed" | "failed" | "skipped" | "pending";
1138
1135
  readonly durationMs: number;
1136
+ readonly testName: string;
1137
+ readonly suitePath: readonly string[];
1139
1138
  readonly error?: {
1140
1139
  readonly message: string;
1141
1140
  readonly stack?: string | undefined;
@@ -1144,43 +1143,43 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
1144
1143
  readonly received?: string | undefined;
1145
1144
  } | undefined;
1146
1145
  readonly timedOut?: boolean | undefined;
1146
+ readonly _tag: "TestFinished";
1147
1147
  } | {
1148
- readonly _tag: "ModuleFinished";
1149
1148
  readonly modulePath: string;
1150
- readonly projectName?: string | undefined;
1151
- readonly durationMs: number;
1152
1149
  readonly passCount: number;
1153
1150
  readonly failCount: number;
1154
1151
  readonly skipCount: number;
1155
1152
  readonly timeoutCount?: number | undefined;
1153
+ readonly durationMs: number;
1154
+ readonly projectName?: string | undefined;
1156
1155
  readonly tagCounts?: {
1157
1156
  readonly [x: string]: number;
1158
1157
  } | undefined;
1158
+ readonly _tag: "ModuleFinished";
1159
1159
  } | {
1160
- readonly _tag: "ModuleCollected";
1161
1160
  readonly modulePath: string;
1161
+ readonly _tag: "ModuleCollected";
1162
1162
  readonly testCount: number;
1163
1163
  readonly suiteCount: number;
1164
1164
  } | {
1165
- readonly _tag: "SuiteStarted";
1166
1165
  readonly modulePath: string;
1167
1166
  readonly suitePath: readonly string[];
1167
+ readonly _tag: "SuiteStarted";
1168
1168
  readonly suiteName: string;
1169
1169
  } | {
1170
- readonly _tag: "SuiteFinished";
1171
1170
  readonly modulePath: string;
1172
- readonly suitePath: readonly string[];
1173
1171
  readonly passCount: number;
1174
1172
  readonly failCount: number;
1175
1173
  readonly skipCount: number;
1174
+ readonly suitePath: readonly string[];
1175
+ readonly _tag: "SuiteFinished";
1176
1176
  readonly suiteName: string;
1177
1177
  } | {
1178
- readonly _tag: "HookStarted";
1179
1178
  readonly modulePath: string;
1179
+ readonly _tag: "HookStarted";
1180
1180
  readonly hookType: "beforeAll" | "afterAll" | "beforeEach" | "afterEach";
1181
1181
  readonly scopeName: string;
1182
1182
  } | {
1183
- readonly _tag: "HookFinished";
1184
1183
  readonly modulePath: string;
1185
1184
  readonly status: "passed" | "failed";
1186
1185
  readonly durationMs: number;
@@ -1191,29 +1190,30 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
1191
1190
  readonly expected?: string | undefined;
1192
1191
  readonly received?: string | undefined;
1193
1192
  } | undefined;
1193
+ readonly _tag: "HookFinished";
1194
1194
  readonly hookType: "beforeAll" | "afterAll" | "beforeEach" | "afterEach";
1195
1195
  readonly scopeName: string;
1196
1196
  } | {
1197
- readonly _tag: "ConsoleLog";
1198
1197
  readonly modulePath?: string | undefined;
1199
1198
  readonly testName?: string | undefined;
1199
+ readonly _tag: "ConsoleLog";
1200
1200
  readonly level: "stdout" | "stderr";
1201
1201
  readonly content: string;
1202
1202
  readonly time: number;
1203
1203
  } | {
1204
- readonly _tag: "RunTimedOut";
1205
1204
  readonly message: string;
1205
+ readonly _tag: "RunTimedOut";
1206
1206
  } | {
1207
- readonly _tag: "TestAnnotated";
1208
1207
  readonly modulePath: string;
1209
1208
  readonly testName: string;
1210
1209
  readonly suitePath: readonly string[];
1210
+ readonly _tag: "TestAnnotated";
1211
1211
  readonly annotation: string;
1212
1212
  } | {
1213
- readonly _tag: "TestArtifactRecorded";
1214
1213
  readonly modulePath: string;
1215
1214
  readonly testName: string;
1216
1215
  readonly suitePath: readonly string[];
1216
+ readonly _tag: "TestArtifactRecorded";
1217
1217
  readonly artifact: string;
1218
1218
  } | {
1219
1219
  readonly _tag: "WatcherReady";
@@ -1222,11 +1222,10 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
1222
1222
  readonly triggerFiles: readonly string[];
1223
1223
  readonly reason?: string | undefined;
1224
1224
  } | {
1225
- readonly _tag: "TrendComputed";
1226
1225
  readonly direction: "improving" | "regressing" | "stable";
1227
1226
  readonly runCount: number;
1227
+ readonly _tag: "TrendComputed";
1228
1228
  } | {
1229
- readonly _tag: "CoverageReady";
1230
1229
  readonly metrics: {
1231
1230
  readonly statements: number;
1232
1231
  readonly branches: number;
@@ -1249,31 +1248,32 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
1249
1248
  };
1250
1249
  readonly uncoveredLines?: string | undefined;
1251
1250
  }[];
1251
+ readonly _tag: "CoverageReady";
1252
1252
  } | {
1253
- readonly _tag: "ThresholdViolation";
1254
1253
  readonly expected: number;
1255
1254
  readonly metric: "statements" | "branches" | "functions" | "lines";
1256
1255
  readonly actual: number;
1256
+ readonly _tag: "ThresholdViolation";
1257
1257
  } | {
1258
- readonly _tag: "FailureClassified";
1259
1258
  readonly modulePath: string;
1260
1259
  readonly testName: string;
1261
1260
  readonly classification: "stable" | "new-failure" | "persistent" | "flaky" | "recovered";
1261
+ readonly _tag: "FailureClassified";
1262
1262
  } | {
1263
- readonly _tag: "SuggestedAction";
1264
1263
  readonly severity: "info" | "warn" | "blocker";
1265
1264
  readonly title: string;
1266
1265
  readonly detail: string;
1267
1266
  readonly targetTool?: string | undefined;
1267
+ readonly _tag: "SuggestedAction";
1268
1268
  } | {
1269
- readonly _tag: "RunFinished";
1270
1269
  readonly runId: string;
1271
- readonly durationMs: number;
1270
+ readonly finishedAt: string;
1272
1271
  readonly passCount: number;
1273
1272
  readonly failCount: number;
1274
1273
  readonly skipCount: number;
1275
1274
  readonly timeoutCount?: number | undefined;
1276
- readonly finishedAt: string;
1275
+ readonly durationMs: number;
1276
+ readonly _tag: "RunFinished";
1277
1277
  }>>;
1278
1278
  /**
1279
1279
  * Service tag for the run-event channel. Consumers depend on this tag;
package/index.js CHANGED
@@ -34,7 +34,7 @@ import { ActionSeverity, CoverageFile, CoverageGap, CoverageMetric, CoverageRend
34
34
  *
35
35
  * @public
36
36
  */
37
- const CURRENT_UI_VERSION = "1.0.0";
37
+ const CURRENT_UI_VERSION = "1.0.1";
38
38
 
39
39
  //#endregion
40
40
  export { ActionSeverity, CURRENT_UI_VERSION, CountColumns, CoverageBlock, CoverageFile, CoverageGap, CoverageMetric, CoverageRenderState, FailureRecord, FailureSection, FailuresSection, ModuleHeader, ModuleRecord, ProjectRow, RenderState, RenderTotals, RunEvent, RunEventChannel, RunEventChannelLive, SPINNER_FRAMES, SPINNER_FRAME_MS, StatusIcon, StreamApp, SuggestedActionRecord, SuggestedActions, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.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": [
@@ -38,7 +38,7 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "dependencies": {
41
- "@vitest-agent/sdk": "1.0.0",
41
+ "@vitest-agent/sdk": "1.0.1",
42
42
  "effect": "^3.21.4"
43
43
  },
44
44
  "peerDependencies": {