@vitest-agent/ui 1.1.0 → 1.1.2

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 +11 -49
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { Context, Effect, Layer, PubSub, Queue, Schema, Scope, Stream } 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
  import { FC, ReactElement } from "react";
3
-
4
8
  //#region ../sdk/dist/dev/pkg/index.d.ts
5
9
  //#region src/schemas/Coverage.d.ts
6
10
  /**
@@ -31,10 +35,6 @@ declare const FileCoverageReport: Schema.Struct<{
31
35
  }>;
32
36
  /** @public */
33
37
  type FileCoverageReport = typeof FileCoverageReport.Type;
34
- /**
35
- * Complete coverage report attached to an AgentReport.
36
- * @public
37
- */
38
38
  //#endregion
39
39
  //#region src/schemas/RenderState.d.ts
40
40
  /**
@@ -306,7 +306,8 @@ type RenderState = typeof RenderState.Type;
306
306
  * code share one definition.
307
307
  * @public
308
308
  */
309
- declare const initialRenderState: RenderState; //#endregion
309
+ declare const initialRenderState: RenderState;
310
+ //#endregion
310
311
  //#region src/contracts/dispatcher.d.ts
311
312
  /**
312
313
  * The four run shapes the dispatcher distinguishes.
@@ -427,12 +428,7 @@ interface CellOptions {
427
428
  * cells can call this directly without re-consulting the environment.
428
429
  */
429
430
  readonly osc8: (url: string, label: string) => string;
430
- } //#endregion
431
- //#region src/schemas/AgentReport.d.ts
432
- /**
433
- * Aggregate test run statistics.
434
- * @public
435
- */
431
+ }
436
432
  /**
437
433
  * Complete per-project test report written to disk as JSON.
438
434
  * @public
@@ -584,12 +580,7 @@ declare const AgentReport: Schema.Struct<{
584
580
  }>>;
585
581
  }>;
586
582
  /** @public */
587
- type AgentReport = typeof AgentReport.Type; //#endregion
588
- //#region src/schemas/Common.d.ts
589
- /**
590
- * Possible states for an individual test case.
591
- * @public
592
- */
583
+ type AgentReport = typeof AgentReport.Type;
593
584
  /**
594
585
  * Classification of a test's failure history across runs.
595
586
  * @public
@@ -597,10 +588,6 @@ type AgentReport = typeof AgentReport.Type; //#endregion
597
588
  declare const TestClassification: Schema.Literal<["stable", "new-failure", "persistent", "flaky", "recovered"]>;
598
589
  /** @public */
599
590
  type TestClassification = typeof TestClassification.Type;
600
- /**
601
- * Console output verbosity mode for AgentReporter.
602
- * @public
603
- */
604
591
  //#endregion
605
592
  //#region src/schemas/RunEvent.d.ts
606
593
  /**
@@ -617,10 +604,6 @@ type CoverageMetric = typeof CoverageMetric.Type;
617
604
  declare const ActionSeverity: Schema.Literal<["info", "warn", "blocker"]>;
618
605
  /** @public */
619
606
  type ActionSeverity = typeof ActionSeverity.Type;
620
- /**
621
- * Lifecycle scope of a Vitest setup/teardown hook.
622
- * @public
623
- */
624
607
  /**
625
608
  * A coverage gap surfaced to the renderer — a per-file shortfall that
626
609
  * a renderer may want to call out individually.
@@ -796,7 +779,8 @@ type RunEvent = typeof RunEvent.Type;
796
779
  * pulling the whole union shape into scope.
797
780
  * @public
798
781
  */
799
- type RunEventByTag = { [E in RunEvent as E["_tag"]]: E }; //#endregion
782
+ type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
783
+ //#endregion
800
784
  //#region src/schemas/Thresholds.d.ts
801
785
  /**
802
786
  * Per-metric threshold values. All optional -- only set metrics are enforced.
@@ -810,10 +794,6 @@ declare const MetricThresholds: Schema.Struct<{
810
794
  }>;
811
795
  /** @public */
812
796
  type MetricThresholds = typeof MetricThresholds.Type;
813
- /**
814
- * A glob pattern paired with its metric thresholds.
815
- * @public
816
- */
817
797
  //#endregion
818
798
  //#region src/utils/build-report.d.ts
819
799
  /**
@@ -952,24 +932,6 @@ interface VitestTestModule {
952
932
  diagnostic(): VitestModuleDiagnostic | undefined;
953
933
  errors(): Array<VitestModuleError>;
954
934
  }
955
- /**
956
- * Convert Vitest TestModule/TestCase objects into an `AgentReport`.
957
- *
958
- * @remarks
959
- * This is a pure data transformation function with no I/O. It tallies
960
- * pass/fail/skip counts, extracts error details with diffs, and builds
961
- * the complete report structure. Only modules with at least one failing
962
- * test are included in the `failed` array to keep reports compact.
963
- *
964
- * @param testModules - All test modules from the Vitest run
965
- * @param unhandledErrors - Unhandled errors from the run
966
- * @param reason - Overall run outcome (`"passed"`, `"failed"`, or `"interrupted"`)
967
- * @param options - Reporter options; only `omitPassingTests` is used
968
- * @param projectName - Optional project name for monorepo grouping
969
- * @returns Structured report ready for JSON serialization
970
- *
971
- * @public
972
- */
973
935
  //#endregion
974
936
  //#region src/dispatcher/cell-types.d.ts
975
937
  /**
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 = "1.1.0";
36
+ const CURRENT_UI_VERSION = "1.1.2";
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, 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": "1.1.0",
3
+ "version": "1.1.2",
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.3.2",
41
+ "@vitest-agent/sdk": "1.3.4",
42
42
  "effect": "^3.21.4"
43
43
  },
44
44
  "peerDependencies": {