@vitest-agent/plugin 6.0.3 → 6.0.5

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.js CHANGED
@@ -1,24 +1,24 @@
1
- import { ConfigValidation } from "./services/ConfigValidation.js";
2
- import { resolveThresholds } from "./utils/resolve-thresholds.js";
3
- import { ConfigValidationLive } from "./layers/ConfigValidationLive.js";
4
- import { CoverageAnalyzer } from "./services/CoverageAnalyzer.js";
5
- import { CoverageAnalyzerLive } from "./layers/CoverageAnalyzerLive.js";
6
- import { ReporterLive } from "./layers/ReporterLive.js";
7
- import { captureEnvVars } from "./utils/capture-env.js";
8
- import { captureSettings, hashSettings } from "./utils/capture-settings.js";
9
- import { processFailure } from "./utils/process-failure.js";
10
- import { ConfigurationError } from "./utils/configuration-error.js";
1
+ import { AgentPlugin } from "./plugin.js";
11
2
  import { AgentReporter } from "./reporter.js";
12
- import { findTestFiles } from "./utils/find-test-files.js";
13
- import { Tag } from "./utils/tag.js";
14
- import { DefaultDiscoverStrategy, DiscoverStrategy } from "./utils/discover-strategy.js";
3
+ import { ConfigurationError } from "./utils/configuration-error.js";
15
4
  import { applyProjectOverrides, discoverProjects } from "./utils/discover-projects.js";
16
- import { CONSOLE_REPORTERS, stripConsoleReporters } from "./utils/strip-console-reporters.js";
17
- import { CURRENT_PLUGIN_VERSION } from "./version.js";
18
- import { AgentPlugin } from "./plugin.js";
5
+ import { DefaultDiscoverStrategy, DiscoverStrategy } from "./utils/discover-strategy.js";
19
6
  import { classifyByDirectory, classifyByFilename, combineClassifiers } from "./utils/classify-helpers.js";
7
+ import { findTestFiles } from "./utils/find-test-files.js";
8
+ import { ReporterLive } from "./layers/ReporterLive.js";
9
+ import { CoverageAnalyzerLive } from "./layers/CoverageAnalyzerLive.js";
20
10
  import { CoverageAnalyzerTest } from "./layers/CoverageAnalyzerTest.js";
11
+ import { CoverageAnalyzer } from "./services/CoverageAnalyzer.js";
12
+ import { ConfigValidationLive } from "./layers/ConfigValidationLive.js";
21
13
  import { ConfigValidationTest } from "./layers/ConfigValidationTest.js";
14
+ import { ConfigValidation } from "./services/ConfigValidation.js";
15
+ import { captureEnvVars } from "./utils/capture-env.js";
16
+ import { captureSettings, hashSettings } from "./utils/capture-settings.js";
17
+ import { CURRENT_PLUGIN_VERSION } from "./version.js";
18
+ import { processFailure } from "./utils/process-failure.js";
19
+ import { resolveThresholds } from "./utils/resolve-thresholds.js";
20
+ import { CONSOLE_REPORTERS, stripConsoleReporters } from "./utils/strip-console-reporters.js";
21
+ import { Tag } from "./utils/tag.js";
22
22
  import { CoverageLevel, resolveCoverageInput, validateCoverageConfig } from "@vitest-agent/sdk";
23
23
 
24
24
  // src/index.ts
@@ -1,7 +1,7 @@
1
1
  import { CoverageAnalyzer } from "../services/CoverageAnalyzer.js";
2
2
  import { toPosixPath } from "../utils/to-posix-path.js";
3
3
  import { relative } from "node:path";
4
- import { Fmt } from "@effected/cli";
4
+ import { Fmt } from "@effected/cli-kit";
5
5
  import { Effect, Layer, Option, Result } from "effect";
6
6
  import { GlobPattern } from "@effected/glob";
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/plugin",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "private": false,
5
5
  "description": "Vitest plugin for the vitest-agent ecosystem: owns persistence, classification, baselines, trends, and dispatches rendering to a configurable reporter.",
6
6
  "keywords": [
@@ -43,20 +43,20 @@
43
43
  "vitest-agent-mcp": "bin/vitest-agent-mcp.js"
44
44
  },
45
45
  "dependencies": {
46
- "@effect/platform-node": "^4.0.7",
47
- "@effected/cli": "^0.24.0",
48
- "@effected/commands": "^0.18.0",
49
- "@effected/config-file": "^0.22.0",
50
- "@effected/env": "^0.7.0",
51
- "@effected/glob": "^0.16.0",
52
- "@effected/walker": "^0.22.0",
53
- "@effected/workspaces": "^0.40.0",
54
- "@vitest-agent/cli": "4.1.5",
55
- "@vitest-agent/engine": "3.0.1",
56
- "@vitest-agent/mcp": "6.0.1",
57
- "@vitest-agent/reporter": "6.1.1",
58
- "@vitest-agent/sdk": "9.0.1",
59
- "effect": "^4.0.7",
46
+ "@effect/platform-node": "~4.1.2",
47
+ "@effected/cli-kit": "^0.26.0",
48
+ "@effected/commands": "^0.20.0",
49
+ "@effected/config-file": "^0.24.0",
50
+ "@effected/env": "^0.10.0",
51
+ "@effected/glob": "^0.18.0",
52
+ "@effected/walker": "^0.25.0",
53
+ "@effected/workspaces": "^0.42.0",
54
+ "@vitest-agent/cli": "4.1.7",
55
+ "@vitest-agent/engine": "3.1.1",
56
+ "@vitest-agent/mcp": "6.1.1",
57
+ "@vitest-agent/reporter": "6.1.3",
58
+ "@vitest-agent/sdk": "9.0.3",
59
+ "effect": "~4.1.2",
60
60
  "magic-string": "^1.4.5"
61
61
  },
62
62
  "peerDependencies": {
package/plugin.js CHANGED
@@ -1,20 +1,20 @@
1
- import { ConfigValidation } from "./services/ConfigValidation.js";
2
- import { resolveThresholds } from "./utils/resolve-thresholds.js";
3
1
  import { ConfigValidationLive } from "./layers/ConfigValidationLive.js";
4
- import { ConfigurationError } from "./utils/configuration-error.js";
5
- import { assertFlatScope } from "./utils/report-writer.js";
6
- import { installStrayOutputCapture } from "./utils/stray-output-capture.js";
7
2
  import { AgentReporter } from "./reporter.js";
3
+ import { ConfigValidation } from "./services/ConfigValidation.js";
8
4
  import { buildModuleInfo } from "./utils/build-module-info.js";
9
5
  import { publishConfigSuggestedActions, suggestedActionsFromValidation } from "./utils/config-suggested-actions.js";
10
- import { DefaultDiscoverStrategy } from "./utils/discover-strategy.js";
6
+ import { ConfigurationError } from "./utils/configuration-error.js";
11
7
  import { discoverProjects } from "./utils/discover-projects.js";
8
+ import { DefaultDiscoverStrategy } from "./utils/discover-strategy.js";
12
9
  import { ensureGithubActionsReporter } from "./utils/ensure-github-reporter.js";
13
10
  import { injectTags } from "./utils/inject-tags.js";
14
11
  import { isBenignViteSourceMapWarning } from "./utils/is-benign-vite-source-map-warning.js";
12
+ import { assertFlatScope } from "./utils/report-writer.js";
15
13
  import { resolveCoverageDirIsolation } from "./utils/resolve-coverage-dir-isolation.js";
16
14
  import { PERSIST_ENV_VAR, resolvePersistence } from "./utils/resolve-persistence.js";
15
+ import { resolveThresholds } from "./utils/resolve-thresholds.js";
17
16
  import { runScriptOptions, shellCommand } from "./utils/run-script-lock.js";
17
+ import { installStrayOutputCapture } from "./utils/stray-output-capture.js";
18
18
  import { stripConsoleReporters } from "./utils/strip-console-reporters.js";
19
19
  import { makeTagCacheKeyGenerator } from "./utils/tag-cache-key.js";
20
20
  import { readVitestVersion, vitestPeerVersionMismatchMessage } from "./utils/vitest-peer-version-mismatch-error.js";
@@ -22,7 +22,7 @@ import { CURRENT_PLUGIN_VERSION } from "./version.js";
22
22
  import { mkdtempSync, rmSync } from "node:fs";
23
23
  import { tmpdir } from "node:os";
24
24
  import { join } from "node:path";
25
- import { CliLog } from "@effected/cli";
25
+ import { CliLog } from "@effected/cli-kit";
26
26
  import { RunOnce } from "@effected/commands";
27
27
  import { nodeRunOnceHost } from "@effected/commands/node-sync";
28
28
  import { Audience, EnvOverride } from "@effected/env";
package/reporter.js CHANGED
@@ -1,7 +1,6 @@
1
- import { resolveThresholds } from "./utils/resolve-thresholds.js";
2
- import { CoverageAnalyzer } from "./services/CoverageAnalyzer.js";
3
1
  import { CoverageAnalyzerLive } from "./layers/CoverageAnalyzerLive.js";
4
2
  import { ReporterLive } from "./layers/ReporterLive.js";
3
+ import { CoverageAnalyzer } from "./services/CoverageAnalyzer.js";
5
4
  import { buildReporterKit, normalizeReporters } from "./utils/build-reporter-kit.js";
6
5
  import { captureEnvVars } from "./utils/capture-env.js";
7
6
  import { captureSettings, hashSettings } from "./utils/capture-settings.js";
@@ -11,6 +10,7 @@ import { isPartialRun } from "./utils/is-partial-run.js";
11
10
  import { processFailure } from "./utils/process-failure.js";
12
11
  import { assertReportCapable, createReportWriter } from "./utils/report-writer.js";
13
12
  import { resolveNoColor } from "./utils/resolve-no-color.js";
13
+ import { resolveThresholds } from "./utils/resolve-thresholds.js";
14
14
  import { routeRenderedOutput } from "./utils/route-rendered-output.js";
15
15
  import { publishRunDiagnostics } from "./utils/run-diagnostics.js";
16
16
  import { runsInCi } from "./utils/runs-in-ci.js";
@@ -22,9 +22,9 @@ import { RuntimeEnv } from "@effected/env";
22
22
  import { ConfigLive, DataReader, DataStore, DetailResolver, EnvironmentDetector, ExecutorResolver, HistoryTracker, OutputPipelineLive, PathResolutionLive, VitestAgentConfigFile, ensureMigrated, formatFatalError, historyKey, probeHostMetadataFromEnv, resolveDataPath, resolveLogFile, resolveLogLevel, withPersistTransaction } from "@vitest-agent/engine";
23
23
  import { RunRetentionPolicy, VitestAgentConfig, buildAgentReport, coerceErrorField, computeTrend, isTimeoutError, suggestedActionsFromRunDiagnostics } from "@vitest-agent/sdk";
24
24
  import { Effect, Option, PubSub } from "effect";
25
- import { randomUUID } from "node:crypto";
26
25
  import * as NodeServices from "@effect/platform-node/NodeServices";
27
26
  import { DefaultVitestAgentReporter } from "@vitest-agent/reporter";
27
+ import { SecureRandom } from "effect/crypto";
28
28
 
29
29
  // src/reporter.ts
30
30
  /**
@@ -743,7 +743,7 @@ var AgentReporter = class {
743
743
  this.neutralizedThresholdSnapshot = /* @__PURE__ */ new Map();
744
744
  }
745
745
  if (!this.wantsRunEvents()) return;
746
- this.currentRunId = randomUUID();
746
+ this.currentRunId = SecureRandom.uuidV4Unsafe();
747
747
  this.moduleStartedAt.clear();
748
748
  this.emit({
749
749
  _tag: "RunStarted",
@@ -1467,7 +1467,7 @@ var AgentReporter = class {
1467
1467
  const store = yield* DataStore;
1468
1468
  const reader = yield* DataReader;
1469
1469
  const tracker = yield* HistoryTracker;
1470
- const invocationId = randomUUID();
1470
+ const invocationId = SecureRandom.uuidV4Unsafe();
1471
1471
  const vitest = stashedVitest;
1472
1472
  const vitestConfig = vitest?.config ?? {};
1473
1473
  const vitestVersion = vitest?.version ?? "unknown";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.60.0"
8
+ "packageVersion": "7.60.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,7 +1,7 @@
1
- import { toPosixPath } from "./to-posix-path.js";
2
- import { directorySignature } from "./find-test-files.js";
3
1
  import { DefaultDiscoverStrategy } from "./discover-strategy.js";
2
+ import { directorySignature } from "./find-test-files.js";
4
3
  import { isTestShapedPackage } from "./is-test-shaped-package.js";
4
+ import { toPosixPath } from "./to-posix-path.js";
5
5
  import { isAbsolute, join, normalize, relative } from "node:path";
6
6
  import { SRC_DIR, TEST_DIR } from "@vitest-agent/sdk";
7
7
  import { nodeWalkerSyncOps } from "@effected/walker/node-sync";
@@ -1,5 +1,5 @@
1
- import { runsInCi } from "./runs-in-ci.js";
2
1
  import { findTestFiles } from "./find-test-files.js";
2
+ import { runsInCi } from "./runs-in-ci.js";
3
3
  import { Tag } from "./tag.js";
4
4
  import { statOrNull } from "./walker-fs.js";
5
5
  import { join, sep } from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { STRAY_OUTPUT_SOURCE, makeStrayOutputRecorder } from "@vitest-agent/sdk";
2
- import { CliUi } from "@effected/cli/ui";
2
+ import { CliUi } from "@effected/cli-kit/ui";
3
3
 
4
4
  // src/utils/stray-output-capture.ts
5
5
  const isCapture = (value) => typeof value === "object" && value !== null && "route" in value && "snapshot" in value;
package/version.js CHANGED
@@ -8,6 +8,6 @@
8
8
  *
9
9
  * @public
10
10
  */
11
- const CURRENT_PLUGIN_VERSION = "6.0.3";
11
+ const CURRENT_PLUGIN_VERSION = "6.0.5";
12
12
 
13
13
  export { CURRENT_PLUGIN_VERSION };