@vitest-agent/mcp 1.0.1 → 1.1.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 +1 -17
- package/index.d.ts +322 -313
- package/index.js +2 -4
- package/middleware/idempotency.js +1 -1
- package/package.json +2 -2
- package/{public/patterns → patterns}/_meta.json +1 -1
- package/{public/patterns → patterns}/operating-vitest-agent-as-an-agent.md +17 -8
- package/{public/patterns → patterns}/running-tests-via-mcp.md +45 -0
- package/resources/index.js +1 -1
- package/resources/manifest-schema.js +1 -1
- package/tools/acceptance-metrics.js +1 -1
- package/tools/cache-health.js +1 -1
- package/tools/commit-changes.js +1 -1
- package/tools/configure.js +1 -1
- package/tools/coverage.js +1 -1
- package/tools/errors.js +1 -1
- package/tools/failure-signature-get.js +1 -1
- package/tools/file-coverage.js +1 -1
- package/tools/history.js +1 -1
- package/tools/inventory.js +1 -1
- package/tools/overview.js +1 -1
- package/tools/run-tests.js +15 -3
- package/tools/settings-list.js +1 -1
- package/tools/status.js +1 -1
- package/tools/tdd-artifact.js +1 -1
- package/tools/tdd-task.js +1 -1
- package/tools/test.js +1 -1
- package/tools/trends.js +1 -1
- package/tools/turn-search.js +1 -1
- /package/{public/patterns → patterns}/authoring-a-custom-vitest-agent-reporter.md +0 -0
- /package/{public/patterns → patterns}/known-issues-and-caveats.md +0 -0
- /package/{public/patterns → patterns}/silencing-leaking-output-in-tests.md +0 -0
- /package/{public/patterns → patterns}/testing-effect-schema-definitions.md +0 -0
- /package/{public/patterns → patterns}/testing-effect-services-with-mock-layers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/ATTRIBUTION.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/artifacts.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/metadata.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/plugin.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/reporters.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/runner.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-case.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-collection.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-module.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-project.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-specification.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/test-suite.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/advanced/vitest.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/assert-type.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/assert.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/assertions.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/commands.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/context.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/interactivity.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/locators.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/react.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/svelte.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/browser/vue.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/describe.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/expect-typeof.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/expect.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/hooks.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/mock.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/test.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/api/vi.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/alias.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/allowonly.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/api.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/attachmentsdir.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/bail.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/benchmark.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/api.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/commands.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/connecttimeout.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/detailspanelposition.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/enabled.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/expect.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/headless.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/instances.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/isolate.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/locators.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/orchestratorscripts.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/playwright.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/preview.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/provider.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/screenshotdirectory.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/screenshotfailures.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/testerhtmlpath.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/trace.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/trackunhandlederrors.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/ui.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/viewport.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/browser/webdriverio.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/cache.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/chaiconfig.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/clearmocks.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/coverage.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/css.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/dangerouslyignoreunhandlederrors.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/deps.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/detectasyncleaks.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/diff.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/dir.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/disableconsoleintercept.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/env.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/environment.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/environmentoptions.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/exclude.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/execargv.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/expandsnapshotdiff.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/expect.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/experimental.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/faketimers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/fileparallelism.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/forcereruntriggers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/globals.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/globalsetup.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/hideskippedtests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/hooktimeout.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/include-source.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/include.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/includetasklocation.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/index.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/isolate.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/logheapusage.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/maxconcurrency.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/maxworkers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/mockreset.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/mode.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/name.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/onconsolelog.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/onstacktrace.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/onunhandlederror.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/open.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/outputfile.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/passwithnotests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/pool.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/printconsoletrace.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/projects.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/provide.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/reporters.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/resolvesnapshotpath.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/restoremocks.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/retry.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/root.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/runner.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/sequence.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/server.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/setupfiles.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/silent.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/slowtestthreshold.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/snapshotenvironment.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/snapshotformat.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/snapshotserializers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/stricttags.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/tags.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/teardowntimeout.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/testnamepattern.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/testtimeout.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/typecheck.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/ui.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/unstubenvs.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/unstubglobals.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/update.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/vmmemorylimit.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/watch.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/config/watchtriggerpatterns.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/advanced/index.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/advanced/pool.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/advanced/reporters.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/advanced/tests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/aria-snapshots.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/component-testing.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/index.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/multiple-setups.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/trace-view.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/browser/visual-regression-testing.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/cli-generated.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/cli.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/common-errors.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/coverage.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/debugging.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/environment.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/extending-matchers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/features.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/filtering.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/ide.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/improving-performance.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/in-source.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/index.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/async.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/debugging-tests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/matchers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/mock-functions.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/setup-teardown.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/snapshots.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/testing-in-practice.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/writing-tests-with-ai.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/learn/writing-tests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/lifecycle.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/migration.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/classes.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/dates.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/file-system.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/functions.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/globals.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/modules.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/requests.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking/timers.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/mocking.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/open-telemetry.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/parallelism.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/profiling-test-performance.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/projects.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/recipes.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/reporters.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/snapshot.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/test-annotations.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/test-context.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/test-tags.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/testing-types.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/ui.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/guide/using-plugins.md +0 -0
- /package/{public/vendor → vendor}/vitest-docs/manifest.json +0 -0
package/bin/vitest-agent-mcp.js
CHANGED
|
@@ -2,27 +2,12 @@
|
|
|
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 { CURRENT_MCP_VERSION } from "../index.js";
|
|
6
5
|
import { NodeContext } from "@effect/platform-node";
|
|
7
|
-
import {
|
|
6
|
+
import { PathResolutionLive, formatFatalError, resolveDataPath, resolveLogFile, resolveLogLevel } from "@vitest-agent/sdk";
|
|
8
7
|
import { Effect, ManagedRuntime } from "effect";
|
|
9
8
|
|
|
10
9
|
//#region src/bin.ts
|
|
11
10
|
/**
|
|
12
|
-
* Cross-package version drift check. Compares this MCP package's version
|
|
13
|
-
* against @vitest-agent/sdk and writes a single stderr line on mismatch.
|
|
14
|
-
* Observation-only — never throws. The `"0.0.0"` fallback marks a dev
|
|
15
|
-
* build (rslib-builder did not substitute the literal); skip the check
|
|
16
|
-
* to avoid spurious warnings during local source-loaded runs. See the
|
|
17
|
-
* root CLAUDE.md "Cross-package version drift" section.
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
function checkVersionDrift() {
|
|
22
|
-
if ("1.0.1" === "0.0.0") return;
|
|
23
|
-
if (CURRENT_SDK_VERSION !== "1.0.1") process.stderr.write(`[@vitest-agent/mcp] version drift: @vitest-agent/mcp@${CURRENT_MCP_VERSION} with @vitest-agent/sdk@${CURRENT_SDK_VERSION}. Reinstall @vitest-agent/* packages so versions match.\n`);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
11
|
* Resolve the user's project directory.
|
|
27
12
|
*
|
|
28
13
|
* Precedence (most explicit wins):
|
|
@@ -63,7 +48,6 @@ function resolveInitialSessionId() {
|
|
|
63
48
|
}
|
|
64
49
|
async function main() {
|
|
65
50
|
const projectDir = resolveProjectDir();
|
|
66
|
-
checkVersionDrift();
|
|
67
51
|
const initialSessionId = resolveInitialSessionId();
|
|
68
52
|
const dbPath = await Effect.runPromise(resolveDataPath(projectDir).pipe(Effect.provide(PathResolutionLive(projectDir)), Effect.provide(NodeContext.layer)));
|
|
69
53
|
const logLevel = resolveLogLevel();
|