@vitest-agent/plugin 6.2.2 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/plugin",
3
- "version": "6.2.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": [
@@ -43,19 +43,19 @@
43
43
  "vitest-agent-mcp": "bin/vitest-agent-mcp.js"
44
44
  },
45
45
  "dependencies": {
46
- "@effect/platform-node": "4.1.6",
47
- "@effected/cli-kit": "0.31.0",
46
+ "@effect/platform-node": "4.1.7",
47
+ "@effected/cli-kit": "0.33.0",
48
48
  "@effected/commands": "0.22.0",
49
49
  "@effected/env": "0.12.0",
50
50
  "@effected/glob": "0.23.1",
51
- "@effected/walker": "0.31.0",
52
- "@effected/workspaces": "0.49.2",
53
- "@vitest-agent/cli": "4.1.22",
54
- "@vitest-agent/engine": "3.4.2",
55
- "@vitest-agent/mcp": "6.3.2",
56
- "@vitest-agent/reporter": "6.2.1",
57
- "@vitest-agent/sdk": "9.2.1",
58
- "effect": "4.1.6",
51
+ "@effected/walker": "0.32.0",
52
+ "@effected/workspaces": "0.49.3",
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
+ "effect": "4.1.7",
59
59
  "magic-string": "^1.4.5"
60
60
  },
61
61
  "peerDependencies": {
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,
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.60.1"
8
+ "packageVersion": "7.60.2"
9
9
  }
10
10
  ]
11
11
  }
package/version.js CHANGED
@@ -8,6 +8,6 @@
8
8
  *
9
9
  * @public
10
10
  */
11
- const CURRENT_PLUGIN_VERSION = "6.2.2";
11
+ const CURRENT_PLUGIN_VERSION = "6.2.4";
12
12
 
13
13
  export { CURRENT_PLUGIN_VERSION };