@vitest-agent/reporter 1.0.6 → 1.0.8
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 +12 -60
- package/index.js +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { PubSub, Schema } from "effect";
|
|
2
|
+
import "@effect/platform";
|
|
3
|
+
import "config-file-effect";
|
|
4
|
+
import "@effect/sql/SqlClient";
|
|
5
|
+
import "workspaces-effect";
|
|
6
|
+
import "xdg-effect";
|
|
2
7
|
//#region ../sdk/dist/dev/pkg/index.d.ts
|
|
3
8
|
/**
|
|
4
9
|
* Per-file coverage data including uncovered line ranges.
|
|
@@ -16,10 +21,6 @@ declare const FileCoverageReport: Schema.Struct<{
|
|
|
16
21
|
}>;
|
|
17
22
|
/** @public */
|
|
18
23
|
type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
19
|
-
/**
|
|
20
|
-
* Complete coverage report attached to an AgentReport.
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
24
|
/**
|
|
24
25
|
* The renderer state. Both the human (Ink) and agent (string)
|
|
25
26
|
* renderers read this shape; the reducer is the only producer.
|
|
@@ -137,12 +138,6 @@ declare const RenderState: Schema.Struct<{
|
|
|
137
138
|
}>;
|
|
138
139
|
/** @public */
|
|
139
140
|
type RenderState = typeof RenderState.Type;
|
|
140
|
-
/**
|
|
141
|
-
* Initial state — what the reducer returns when no events have been
|
|
142
|
-
* applied yet. Exported so tests and the renderers' bootstrapping
|
|
143
|
-
* code share one definition.
|
|
144
|
-
* @public
|
|
145
|
-
*/
|
|
146
141
|
//#endregion
|
|
147
142
|
//#region src/contracts/dispatcher.d.ts
|
|
148
143
|
/**
|
|
@@ -264,12 +259,7 @@ interface CellOptions {
|
|
|
264
259
|
* cells can call this directly without re-consulting the environment.
|
|
265
260
|
*/
|
|
266
261
|
readonly osc8: (url: string, label: string) => string;
|
|
267
|
-
}
|
|
268
|
-
//#region src/schemas/AgentReport.d.ts
|
|
269
|
-
/**
|
|
270
|
-
* Aggregate test run statistics.
|
|
271
|
-
* @public
|
|
272
|
-
*/
|
|
262
|
+
}
|
|
273
263
|
/**
|
|
274
264
|
* Complete per-project test report written to disk as JSON.
|
|
275
265
|
* @public
|
|
@@ -421,12 +411,7 @@ declare const AgentReport: Schema.Struct<{
|
|
|
421
411
|
}>>;
|
|
422
412
|
}>;
|
|
423
413
|
/** @public */
|
|
424
|
-
type AgentReport = typeof AgentReport.Type;
|
|
425
|
-
//#region src/schemas/Common.d.ts
|
|
426
|
-
/**
|
|
427
|
-
* Possible states for an individual test case.
|
|
428
|
-
* @public
|
|
429
|
-
*/
|
|
414
|
+
type AgentReport = typeof AgentReport.Type;
|
|
430
415
|
/**
|
|
431
416
|
* Classification of a test's failure history across runs.
|
|
432
417
|
* @public
|
|
@@ -434,10 +419,6 @@ type AgentReport = typeof AgentReport.Type; //#endregion
|
|
|
434
419
|
declare const TestClassification: Schema.Literal<["stable", "new-failure", "persistent", "flaky", "recovered"]>;
|
|
435
420
|
/** @public */
|
|
436
421
|
type TestClassification = typeof TestClassification.Type;
|
|
437
|
-
/**
|
|
438
|
-
* Console output verbosity mode for AgentReporter.
|
|
439
|
-
* @public
|
|
440
|
-
*/
|
|
441
422
|
/**
|
|
442
423
|
* Union of every legal console-output value across the three executor slots.
|
|
443
424
|
* Useful for type-narrowing in renderers that take the resolved value.
|
|
@@ -446,10 +427,6 @@ type TestClassification = typeof TestClassification.Type;
|
|
|
446
427
|
declare const ConsoleMode: Schema.Union<[Schema.Literal<["passthrough", "silent", "stream", "agent"]>, Schema.Literal<["passthrough", "silent", "agent"]>, Schema.Literal<["passthrough", "silent", "ci-annotations"]>]>;
|
|
447
428
|
/** @public */
|
|
448
429
|
type ConsoleMode = typeof ConsoleMode.Type;
|
|
449
|
-
/**
|
|
450
|
-
* Supported package managers for run command generation.
|
|
451
|
-
* @public
|
|
452
|
-
*/
|
|
453
430
|
/**
|
|
454
431
|
* Runtime environment where tests are being executed.
|
|
455
432
|
* @public
|
|
@@ -478,18 +455,6 @@ type OutputFormat = typeof OutputFormat.Type;
|
|
|
478
455
|
declare const DetailLevel: Schema.Literal<["minimal", "neutral", "standard", "verbose"]>;
|
|
479
456
|
/** @public */
|
|
480
457
|
type DetailLevel = typeof DetailLevel.Type;
|
|
481
|
-
/**
|
|
482
|
-
* A single test or module error with optional stack trace, diff, and
|
|
483
|
-
* structured assertion values.
|
|
484
|
-
*
|
|
485
|
-
* `expected` / `received` are pre-stringified, one-line representations
|
|
486
|
-
* of the assertion's expected and received JS values. They are populated
|
|
487
|
-
* only when the underlying test runner error carries structured `.expected`
|
|
488
|
-
* / `.actual` properties (assertion errors). The raw JS values stay in
|
|
489
|
-
* Vitest's internal error object; only the string representation crosses
|
|
490
|
-
* the schema boundary.
|
|
491
|
-
* @public
|
|
492
|
-
*/
|
|
493
458
|
//#endregion
|
|
494
459
|
//#region src/formatters/types.d.ts
|
|
495
460
|
/** @public */
|
|
@@ -498,7 +463,6 @@ interface RenderedOutput {
|
|
|
498
463
|
readonly content: string;
|
|
499
464
|
readonly contentType: string;
|
|
500
465
|
}
|
|
501
|
-
/** @public */
|
|
502
466
|
/**
|
|
503
467
|
* The reducer projects this union into `RenderState`. Renderers
|
|
504
468
|
* never read the raw event stream — they read the projected state.
|
|
@@ -650,13 +614,6 @@ declare const RunEvent: Schema.Union<[Schema.TaggedStruct<"RunStarted", {
|
|
|
650
614
|
}>]>;
|
|
651
615
|
/** @public */
|
|
652
616
|
type RunEvent = typeof RunEvent.Type;
|
|
653
|
-
/**
|
|
654
|
-
* Convenience: discriminator-keyed map of the individual variants.
|
|
655
|
-
*
|
|
656
|
-
* Useful for callers that want to construct an event by tag without
|
|
657
|
-
* pulling the whole union shape into scope.
|
|
658
|
-
* @public
|
|
659
|
-
*/
|
|
660
617
|
/**
|
|
661
618
|
* Fully resolved thresholds ready for evaluation.
|
|
662
619
|
* @public
|
|
@@ -681,7 +638,8 @@ declare const ResolvedThresholds: Schema.Struct<{
|
|
|
681
638
|
}>;
|
|
682
639
|
}>;
|
|
683
640
|
/** @public */
|
|
684
|
-
type ResolvedThresholds = typeof ResolvedThresholds.Type;
|
|
641
|
+
type ResolvedThresholds = typeof ResolvedThresholds.Type;
|
|
642
|
+
//#endregion
|
|
685
643
|
//#region src/schemas/Transport.d.ts
|
|
686
644
|
/**
|
|
687
645
|
* Transport binding for the persistence layer.
|
|
@@ -696,7 +654,8 @@ declare const Transport: Schema.Struct<{
|
|
|
696
654
|
kind: Schema.Literal<["local"]>;
|
|
697
655
|
}>;
|
|
698
656
|
/** @public */
|
|
699
|
-
type Transport = typeof Transport.Type;
|
|
657
|
+
type Transport = typeof Transport.Type;
|
|
658
|
+
//#endregion
|
|
700
659
|
//#region src/contracts/reporter.d.ts
|
|
701
660
|
/**
|
|
702
661
|
* Config the plugin computes from its own options + Vitest's resolved config,
|
|
@@ -881,14 +840,7 @@ interface VitestAgentReporter {
|
|
|
881
840
|
* the plugin own the kit assembly.
|
|
882
841
|
* @public
|
|
883
842
|
*/
|
|
884
|
-
type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
|
|
885
|
-
//#region src/schemas/Identity.d.ts
|
|
886
|
-
/**
|
|
887
|
-
* Canonical UUID for an LLM agent invocation. Generated server-side at
|
|
888
|
-
* `register_agent` time. Stable across transport reconnects within an
|
|
889
|
-
* agent's lifetime.
|
|
890
|
-
* @public
|
|
891
|
-
*/
|
|
843
|
+
type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
|
|
892
844
|
//#endregion
|
|
893
845
|
//#region src/defaultReporter.d.ts
|
|
894
846
|
/**
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForRe
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
const CURRENT_REPORTER_VERSION = "1.0.
|
|
12
|
+
const CURRENT_REPORTER_VERSION = "1.0.8";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { CURRENT_REPORTER_VERSION, DefaultVitestAgentReporter, createLiveInk as _createLiveInk, buildDispatchInputs, renderAgentStringForReport, renderHumanStringForReport, resolveCellOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/reporter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Named VitestAgentReporterFactory implementations for the vitest-agent ecosystem.",
|
|
6
6
|
"keywords": [
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@effect/sql": "^0.51.1",
|
|
47
47
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
48
48
|
"@effect/workflow": "^0.18.2",
|
|
49
|
-
"@vitest-agent/sdk": "1.3.
|
|
50
|
-
"@vitest-agent/ui": "1.1.
|
|
49
|
+
"@vitest-agent/sdk": "1.3.4",
|
|
50
|
+
"@vitest-agent/ui": "1.1.2",
|
|
51
51
|
"effect": "^3.21.4",
|
|
52
52
|
"ink": "^7.1.0",
|
|
53
53
|
"react": "^19.2.7"
|