@vitest-agent/mcp 1.3.6 → 2.0.0
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/bin/vitest-agent-mcp.js +2 -2
- package/index.d.ts +999 -1001
- package/index.js +1 -1
- package/layers/McpLive.js +4 -5
- package/package.json +7 -12
- package/server.js +5 -5
- package/tools/_tdd-error-envelope.js +1 -1
- package/tools/acceptance-metrics.js +23 -24
- package/tools/cache-health.js +12 -13
- package/tools/commit-changes.js +27 -22
- package/tools/configure.js +27 -31
- package/tools/coverage.js +9 -10
- package/tools/errors.js +31 -27
- package/tools/failure-signature-get.js +10 -11
- package/tools/file-coverage.js +14 -11
- package/tools/help.js +1 -1
- package/tools/history.js +29 -30
- package/tools/hypothesis.js +33 -12
- package/tools/inventory.js +45 -27
- package/tools/note.js +32 -10
- package/tools/overview.js +16 -13
- package/tools/ping.js +1 -1
- package/tools/register-agent.js +18 -13
- package/tools/run-tests.js +22 -21
- package/tools/settings-list.js +11 -12
- package/tools/status.js +14 -15
- package/tools/tdd-artifact.js +28 -13
- package/tools/tdd-behavior.js +33 -15
- package/tools/tdd-goal.js +39 -23
- package/tools/tdd-phase-transition-request.js +59 -25
- package/tools/tdd-task.js +40 -21
- package/tools/test.js +28 -18
- package/tools/trends.js +12 -13
- package/tools/triage-brief.js +4 -4
- package/tools/turn-search.js +25 -18
- package/tools/wrapup-prompt.js +18 -6
- package/tsdoc-metadata.json +1 -1
- package/utils/effect-to-zod.js +18 -5
package/bin/vitest-agent-mcp.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createCurrentSessionIdRef, createSessionContextRef, sessionContextFromEnv } from "../context.js";
|
|
3
3
|
import { McpLive } from "../layers/McpLive.js";
|
|
4
4
|
import { startMcpServer } from "../server.js";
|
|
5
|
-
import
|
|
5
|
+
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
6
6
|
import { PathResolutionLive, formatFatalError, resolveDataPath, resolveLogFile, resolveLogLevel } from "@vitest-agent/sdk";
|
|
7
7
|
import { Effect, ManagedRuntime } from "effect";
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ function resolveInitialSessionId() {
|
|
|
49
49
|
async function main() {
|
|
50
50
|
const projectDir = resolveProjectDir();
|
|
51
51
|
const initialSessionId = resolveInitialSessionId();
|
|
52
|
-
const dbPath = await Effect.runPromise(resolveDataPath(projectDir).pipe(Effect.provide(PathResolutionLive(projectDir)), Effect.provide(
|
|
52
|
+
const dbPath = await Effect.runPromise(resolveDataPath(projectDir).pipe(Effect.provide(PathResolutionLive(projectDir)), Effect.provide(NodeServices.layer)));
|
|
53
53
|
const logLevel = resolveLogLevel();
|
|
54
54
|
const logFile = resolveLogFile();
|
|
55
55
|
const runtime = ManagedRuntime.make(McpLive(dbPath, logLevel, logFile));
|