@vitest-agent/plugin 6.2.3 → 6.2.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 +6 -6
- package/reporter.js +9 -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.2.
|
|
3
|
+
"version": "6.2.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": [
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@effected/glob": "0.23.1",
|
|
51
51
|
"@effected/walker": "0.32.0",
|
|
52
52
|
"@effected/workspaces": "0.49.3",
|
|
53
|
-
"@vitest-agent/cli": "4.1.
|
|
54
|
-
"@vitest-agent/engine": "3.
|
|
55
|
-
"@vitest-agent/mcp": "6.
|
|
56
|
-
"@vitest-agent/reporter": "6.2.
|
|
57
|
-
"@vitest-agent/sdk": "9.
|
|
53
|
+
"@vitest-agent/cli": "4.1.24",
|
|
54
|
+
"@vitest-agent/engine": "3.5.0",
|
|
55
|
+
"@vitest-agent/mcp": "6.4.0",
|
|
56
|
+
"@vitest-agent/reporter": "6.2.3",
|
|
57
|
+
"@vitest-agent/sdk": "9.3.0",
|
|
58
58
|
"effect": "4.1.7",
|
|
59
59
|
"magic-string": "^1.4.5"
|
|
60
60
|
},
|
package/reporter.js
CHANGED
|
@@ -2,7 +2,7 @@ import { mkdirSync, statSync } from "node:fs";
|
|
|
2
2
|
import { dirname } from "node:path";
|
|
3
3
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
4
4
|
import { RuntimeEnv } from "@effected/env";
|
|
5
|
-
import { ConfigLive, DataReader, DataStore, DetailResolver, EnvironmentDetector, ExecutorResolver, HistoryTracker, OutputPipelineLive, PathResolutionLive, VitestAgentConfigFile, ensureMigrated, formatFatalError, historyKey, probeHostMetadataFromEnv, resolveDataPath, resolveLogFile, resolveLogLevel, withPersistTransaction } from "@vitest-agent/engine";
|
|
5
|
+
import { ConfigLive, DataReader, DataStore, DetailResolver, EnvironmentDetector, ExecutorResolver, HistoryTracker, OutputPipelineLive, PathResolutionLive, RunContextLive, RunContextService, VitestAgentConfigFile, ensureMigrated, formatFatalError, historyKey, probeHostMetadataFromEnv, resolveDataPath, resolveLogFile, resolveLogLevel, withPersistTransaction } from "@vitest-agent/engine";
|
|
6
6
|
import { DefaultVitestAgentReporter } from "@vitest-agent/reporter";
|
|
7
7
|
import { RunRetentionPolicy, VitestAgentConfig, buildAgentReport, coerceErrorField, computeTrend, finalAttemptErrors, isTimeoutError, normalizeTraceSteps, suggestedActionsFromRunDiagnostics } from "@vitest-agent/sdk";
|
|
8
8
|
import { Effect, Option, PubSub } from "effect";
|
|
@@ -1616,6 +1616,9 @@ var AgentReporter = class {
|
|
|
1616
1616
|
const ciRun = Option.isSome(runtimeEnv.ci) && runtimeEnv.ci.value === "github-actions" ? Option.getOrUndefined(runtimeEnv.ciRun) : void 0;
|
|
1617
1617
|
const ciCommitSha = ciRun === void 0 ? null : Option.getOrNull(ciRun.sha);
|
|
1618
1618
|
const ciRefName = ciRun === void 0 ? null : Option.getOrNull(ciRun.refName);
|
|
1619
|
+
const gitContext = yield* Effect.gen(function* () {
|
|
1620
|
+
return yield* (yield* RunContextService).captureRunContext(process.cwd());
|
|
1621
|
+
}).pipe(Effect.provide(RunContextLive(process.env)));
|
|
1619
1622
|
const projectGroups = /* @__PURE__ */ new Map();
|
|
1620
1623
|
for (const mod of filteredModules) {
|
|
1621
1624
|
const key = mod.project.name || "default";
|
|
@@ -1669,8 +1672,11 @@ var AgentReporter = class {
|
|
|
1669
1672
|
actorType: attribution.actorType,
|
|
1670
1673
|
agentId: attribution.agentId,
|
|
1671
1674
|
conversationId: attribution.conversationId,
|
|
1672
|
-
gitBranch: ciRefName,
|
|
1673
|
-
gitCommitSha: ciCommitSha,
|
|
1675
|
+
gitBranch: ciRefName ?? gitContext.gitBranch,
|
|
1676
|
+
gitCommitSha: ciCommitSha ?? gitContext.gitCommitSha,
|
|
1677
|
+
gitDirty: gitContext.gitDirty,
|
|
1678
|
+
gitUpstream: gitContext.gitUpstream,
|
|
1679
|
+
gitWorktreeDir: gitContext.gitWorktreeDir,
|
|
1674
1680
|
hostSource: hostProbe.source,
|
|
1675
1681
|
hostValue: hostProbe.value,
|
|
1676
1682
|
hostMetadata: hostProbe.metadata,
|