@vitest-agent/plugin 6.0.3 → 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.
- package/package.json +15 -15
- package/reporter.js +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.
|
|
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,20 +43,20 @@
|
|
|
43
43
|
"vitest-agent-mcp": "bin/vitest-agent-mcp.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@effect/platform-node": "
|
|
47
|
-
"@effected/cli": "^0.
|
|
48
|
-
"@effected/commands": "^0.
|
|
49
|
-
"@effected/config-file": "^0.
|
|
50
|
-
"@effected/env": "^0.
|
|
51
|
-
"@effected/glob": "^0.
|
|
52
|
-
"@effected/walker": "^0.
|
|
53
|
-
"@effected/workspaces": "^0.
|
|
54
|
-
"@vitest-agent/cli": "4.1.
|
|
55
|
-
"@vitest-agent/engine": "3.0
|
|
56
|
-
"@vitest-agent/mcp": "6.0
|
|
57
|
-
"@vitest-agent/reporter": "6.1.
|
|
58
|
-
"@vitest-agent/sdk": "9.0.
|
|
59
|
-
"effect": "
|
|
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
60
|
"magic-string": "^1.4.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
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 =
|
|
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 =
|
|
1470
|
+
const invocationId = SecureRandom.uuidV4Unsafe();
|
|
1471
1471
|
const vitest = stashedVitest;
|
|
1472
1472
|
const vitestConfig = vitest?.config ?? {};
|
|
1473
1473
|
const vitestVersion = vitest?.version ?? "unknown";
|