@vitest-agent/reporter 5.0.7 → 5.0.9

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 +15 -0
  2. package/index.js +1 -1
  3. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -897,6 +897,21 @@ interface ResolvedReporterConfig {
897
897
  * @internal
898
898
  */
899
899
  readonly coverageMode: "full" | "ui-only";
900
+ /**
901
+ * Whether this run is recorded in the SQLite `data.db` (issue #625).
902
+ * `false` when the user passed `AgentPlugin({ persist: false })` or
903
+ * the `VITEST_AGENT_PERSIST` operator override turned persistence
904
+ * off: the run still renders, but classifications are empty and
905
+ * coverage carries no baseline delta or trend, because there is no
906
+ * history to read. Independent of `coverageMode` — a UI-only run
907
+ * (`coverage.enabled: false`) skips persistence too, with this field
908
+ * still reporting what the user asked for.
909
+ *
910
+ * The plugin always populates it; it is optional only because a
911
+ * consumer constructing `ResolvedReporterConfig` by hand may omit it,
912
+ * in which case treat it as `true`.
913
+ */
914
+ readonly persist?: boolean;
900
915
  readonly detail: DetailLevel;
901
916
  readonly noColor: boolean;
902
917
  readonly runCommand?: string;
package/index.js CHANGED
@@ -8,6 +8,6 @@ import { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForRe
8
8
  *
9
9
  * @public
10
10
  */
11
- const CURRENT_REPORTER_VERSION = "5.0.7";
11
+ const CURRENT_REPORTER_VERSION = "5.0.9";
12
12
 
13
13
  export { CURRENT_REPORTER_VERSION, DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForReport, renderHumanStringForReport, resolveCellOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/reporter",
3
- "version": "5.0.7",
3
+ "version": "5.0.9",
4
4
  "private": false,
5
5
  "description": "Named VitestAgentReporterFactory implementations for the vitest-agent ecosystem.",
6
6
  "keywords": [
@@ -40,14 +40,14 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@effect/platform-node": "^4.0.6",
43
- "@vitest-agent/sdk": "7.0.5",
44
- "@vitest-agent/ui": "5.0.7",
43
+ "@vitest-agent/sdk": "7.1.0",
44
+ "@vitest-agent/ui": "5.0.9",
45
45
  "effect": "^4.0.6",
46
46
  "ink": "^8.0.0",
47
47
  "react": "^19.3.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@effected/cli": "^0.20.0",
50
+ "@effected/cli": "^0.22.0",
51
51
  "@effected/env": "^0.5.0",
52
52
  "@effected/glob": "^0.14.0",
53
53
  "@effected/walker": "^0.19.0",