@vitest-agent/plugin 6.0.2 → 6.0.4

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/package.json +16 -16
  2. package/reporter.js +3 -3
  3. package/version.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/plugin",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
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,21 +43,21 @@
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",
60
- "magic-string": "^1.4.4"
46
+ "@effect/platform-node": "~4.1.1",
47
+ "@effected/cli": "^0.25.0",
48
+ "@effected/commands": "^0.19.0",
49
+ "@effected/config-file": "^0.23.0",
50
+ "@effected/env": "^0.9.0",
51
+ "@effected/glob": "^0.17.0",
52
+ "@effected/walker": "^0.24.0",
53
+ "@effected/workspaces": "^0.41.0",
54
+ "@vitest-agent/cli": "4.1.6",
55
+ "@vitest-agent/engine": "3.1.0",
56
+ "@vitest-agent/mcp": "6.1.0",
57
+ "@vitest-agent/reporter": "6.1.2",
58
+ "@vitest-agent/sdk": "9.0.2",
59
+ "effect": "~4.1.1",
60
+ "magic-string": "^1.4.5"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@vitest/coverage-istanbul": "^5.0.0",
package/reporter.js CHANGED
@@ -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";
package/version.js CHANGED
@@ -8,6 +8,6 @@
8
8
  *
9
9
  * @public
10
10
  */
11
- const CURRENT_PLUGIN_VERSION = "6.0.2";
11
+ const CURRENT_PLUGIN_VERSION = "6.0.4";
12
12
 
13
13
  export { CURRENT_PLUGIN_VERSION };