@vitest-agent/mcp 2.0.10 → 2.0.11

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.d.ts CHANGED
@@ -1172,8 +1172,8 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1172
1172
  phase: import("@vitest-agent/sdk").Phase;
1173
1173
  newPhaseId: number;
1174
1174
  previousPhaseId: number | null;
1175
- citedArtifactId?: number | undefined;
1176
- citedArtifactSource?: "explicit-id" | "explicit-kind" | "none" | "transition-derived" | undefined;
1175
+ citedArtifactId?: number;
1176
+ citedArtifactSource?: "explicit-id" | "explicit-kind" | "none" | "transition-derived";
1177
1177
  };
1178
1178
  meta: object;
1179
1179
  }>;
@@ -1227,9 +1227,9 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1227
1227
  action: "get";
1228
1228
  found: false;
1229
1229
  id: number;
1230
- goal?: undefined;
1230
+ goal?: never;
1231
1231
  } | {
1232
- id?: undefined;
1232
+ id?: never;
1233
1233
  action: "get";
1234
1234
  found: true;
1235
1235
  goal: {
@@ -1332,7 +1332,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1332
1332
  action: "get";
1333
1333
  found: false;
1334
1334
  id: number;
1335
- behavior?: undefined;
1335
+ behavior?: never;
1336
1336
  } | {
1337
1337
  action: "get";
1338
1338
  found: true;
@@ -1359,7 +1359,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1359
1359
  readonly createdAt: string;
1360
1360
  }[];
1361
1361
  };
1362
- id?: undefined;
1362
+ id?: never;
1363
1363
  } | {
1364
1364
  ok: true;
1365
1365
  action: "list_by_goal";
package/index.js CHANGED
@@ -12,7 +12,7 @@ import { parseSessionEnvExports, recoverSessionContextFromSessionEnv } from "./s
12
12
  *
13
13
  * @public
14
14
  */
15
- const CURRENT_MCP_VERSION = "2.0.10";
15
+ const CURRENT_MCP_VERSION = "2.0.11";
16
16
 
17
17
  //#endregion
18
18
  export { CURRENT_MCP_VERSION, McpLive, appRouter, buildMcpServer, createCallerFactory, createCurrentSessionIdRef, createSessionContextRef, parseSessionEnvExports, recoverSessionContextFromSessionEnv, startMcpServer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/mcp",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "private": false,
5
5
  "description": "Model Context Protocol server for vitest-agent. Exposes 53 tools for agent access to test data, TDD lifecycle, and session management.",
6
6
  "keywords": [
@@ -40,9 +40,9 @@
40
40
  "dependencies": {
41
41
  "@effect/platform-node": "4.0.0-beta.101",
42
42
  "@effect/sql-sqlite-node": "4.0.0-beta.101",
43
- "@modelcontextprotocol/sdk": "^1.29.0",
43
+ "@modelcontextprotocol/sdk": "^1.30.0",
44
44
  "@trpc/server": "^11.18.0",
45
- "@vitest-agent/sdk": "2.0.10",
45
+ "@vitest-agent/sdk": "2.0.11",
46
46
  "effect": "4.0.0-beta.101",
47
47
  "zod": "^4.4.3"
48
48
  },
@@ -33,7 +33,7 @@ const CacheHealthResult = Schema.Union([ManifestPresent, ManifestAbsent]).annota
33
33
  title: "cache_health result",
34
34
  description: "Cache health snapshot. Discriminate on `manifestPresent` to see whether the manifest exists."
35
35
  });
36
- const STALE_AFTER_MS = 1440 * 60 * 1e3;
36
+ const STALE_AFTER_MS = 864e5;
37
37
  const iconForResult = (r) => {
38
38
  if (r === "passed") return "✅";
39
39
  if (r === "failed") return "❌";
@@ -47,7 +47,7 @@ const formatCacheHealthMarkdown = (data) => {
47
47
  return lines.join("\n");
48
48
  }
49
49
  const { manifest, ageMs, stale } = data;
50
- const ageHours = ageMs / (1e3 * 60 * 60);
50
+ const ageHours = ageMs / 36e5;
51
51
  lines.push("- ✅ **Manifest:** present");
52
52
  lines.push(`- ℹ️ **Projects:** ${manifest.projects.length}`);
53
53
  lines.push(`- ℹ️ **Cache directory:** \`${manifest.cacheDir}\``);
@@ -334,7 +334,8 @@ const runTests = publicProcedure.input(Schema.toStandardSchemaV1(Schema.Struct({
334
334
  resolvedExpression
335
335
  }
336
336
  };
337
- const baseReport = buildAgentReport(testModules, unhandledErrors, unhandledErrors.length > 0 || result.testModules.some((m) => m.state() === "failed") ? "failed" : "passed", { omitPassingTests: true });
337
+ const reason = unhandledErrors.length > 0 || result.testModules.some((m) => m.state() === "failed") ? "failed" : "passed";
338
+ const baseReport = buildAgentReport(testModules, unhandledErrors, reason, { omitPassingTests: true });
338
339
  const leaks = buildConsoleLeaks(collectConsoleLeakEntries(localVitest.state.getFiles()));
339
340
  const report = leaks !== void 0 ? {
340
341
  ...baseReport,