@vitest-agent/mcp 5.3.1 → 6.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/README.md +1 -1
- package/index.d.ts +3101 -450
- package/index.js +31 -28
- package/main.js +8 -44
- package/package.json +9 -8
- package/replay.js +93 -0
- package/server.js +1 -1
- package/toolkit.js +25 -9
- package/tools/_tdd-error-envelope.js +119 -70
- 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/hypothesis.js +7 -2
- package/tools/inventory.js +1 -1
- package/tools/note.js +1 -1
- package/tools/overview.js +1 -1
- package/tools/register-agent.js +2 -2
- package/tools/run-tests.js +310 -252
- package/tools/settings-list.js +1 -1
- package/tools/status.js +1 -1
- package/tools/tdd-artifact.js +1 -1
- package/tools/tdd-behavior.js +28 -23
- package/tools/tdd-goal.js +27 -24
- package/tools/tdd-phase-transition-request.js +1 -1
- package/tools/tdd-progress-push.js +1 -1
- package/tools/tdd-task.js +7 -2
- package/tools/test.js +1 -1
- package/tools/trends.js +1 -1
- package/tools/triage-brief.js +1 -1
- package/tools/turn-search.js +1 -1
- package/tools/wrapup-prompt.js +1 -1
- package/utils/safe-format-fatal-error.js +1 -1
- package/version.js +1 -1
- package/idempotency.js +0 -123
package/tools/file-coverage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolOutputSchema } from "@effected/mcp";
|
|
2
2
|
import { Effect, Option, Schema } from "effect";
|
|
3
|
-
import { DataReader } from "@vitest-agent/engine";
|
|
4
3
|
import { Tool } from "effect/ai";
|
|
4
|
+
import { DataReader } from "@vitest-agent/engine";
|
|
5
5
|
import { CoverageTotals, FileCoverageReport } from "@vitest-agent/sdk";
|
|
6
6
|
|
|
7
7
|
// src/tools/file-coverage.ts
|
package/tools/history.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import { DataReader } from "@vitest-agent/engine";
|
|
3
2
|
import { Tool } from "effect/ai";
|
|
3
|
+
import { DataReader } from "@vitest-agent/engine";
|
|
4
4
|
import { HistoryRecord, StrayOutput } from "@vitest-agent/sdk";
|
|
5
5
|
|
|
6
6
|
// src/tools/history.ts
|
package/tools/hypothesis.js
CHANGED
|
@@ -2,8 +2,8 @@ import { McpSession } from "../session.js";
|
|
|
2
2
|
import { IdempotentReplayMarker } from "../utils/replay-marker.js";
|
|
3
3
|
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
4
4
|
import { Effect, Match, Option, Schema } from "effect";
|
|
5
|
-
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
6
5
|
import { Tool } from "effect/ai";
|
|
6
|
+
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
7
7
|
|
|
8
8
|
// src/tools/hypothesis.ts
|
|
9
9
|
const HypothesisRowSchema = Schema.Struct({
|
|
@@ -32,6 +32,11 @@ const HypothesisListOk = Schema.Struct({
|
|
|
32
32
|
count: Schema.Number,
|
|
33
33
|
hypotheses: Schema.Array(HypothesisRowSchema)
|
|
34
34
|
});
|
|
35
|
+
/**
|
|
36
|
+
* The `hypothesis` tool's success payload.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
35
40
|
const HypothesisResult = ToolOutputSchema.objectRooted(Schema.Union([
|
|
36
41
|
HypothesisRecordOk,
|
|
37
42
|
HypothesisValidateOk,
|
|
@@ -86,7 +91,7 @@ const HypothesisInput = Schema.Union([
|
|
|
86
91
|
]);
|
|
87
92
|
/**
|
|
88
93
|
* Handler for {@link hypothesisTool}. `record` fails with a
|
|
89
|
-
*
|
|
94
|
+
* `ToolRefusal` (an `isError` result naming the fix) when the binding
|
|
90
95
|
* session cannot be resolved: an unknown `tddTaskId`, an unknown fallback
|
|
91
96
|
* `sessionId`, or no session at all; `validate` does for an unknown id. Any
|
|
92
97
|
* other store failure is a defect.
|
package/tools/inventory.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { collectProjectRows, resolveProjectTargets } from "./_project-groups.js";
|
|
2
2
|
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
3
3
|
import { Effect, Match, Option, Schema } from "effect";
|
|
4
|
-
import { DataReader } from "@vitest-agent/engine";
|
|
5
4
|
import { Tool } from "effect/ai";
|
|
5
|
+
import { DataReader } from "@vitest-agent/engine";
|
|
6
6
|
|
|
7
7
|
// src/tools/inventory.ts
|
|
8
8
|
const ProjectRunSummary = Schema.Struct({
|
package/tools/note.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
2
2
|
import { Effect, Match, Option, Schema } from "effect";
|
|
3
|
-
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
4
3
|
import { Tool } from "effect/ai";
|
|
4
|
+
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
5
5
|
|
|
6
6
|
// src/tools/note.ts
|
|
7
7
|
const NoteScope = Schema.Literals([
|
package/tools/overview.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolOutputSchema } from "@effected/mcp";
|
|
2
2
|
import { Effect, Option, Schema } from "effect";
|
|
3
|
-
import { DataReader } from "@vitest-agent/engine";
|
|
4
3
|
import { Tool } from "effect/ai";
|
|
4
|
+
import { DataReader } from "@vitest-agent/engine";
|
|
5
5
|
|
|
6
6
|
// src/tools/overview.ts
|
|
7
7
|
const ProjectRunSummary = Schema.Struct({
|
package/tools/register-agent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolOutputSchema } from "@effected/mcp";
|
|
2
2
|
import { Effect, Option, Schema } from "effect";
|
|
3
|
-
import { DataReader, DataStore, deriveIdempotencyKey } from "@vitest-agent/engine";
|
|
4
3
|
import { Tool } from "effect/ai";
|
|
4
|
+
import { DataReader, DataStore, deriveIdempotencyKey } from "@vitest-agent/engine";
|
|
5
5
|
|
|
6
6
|
// src/tools/register-agent.ts
|
|
7
7
|
/**
|
|
@@ -84,7 +84,7 @@ const RegisterAgentResult = ToolOutputSchema.objectRooted(Schema.Union([Register
|
|
|
84
84
|
/**
|
|
85
85
|
* Handler for {@link registerAgentTool}. Idempotency is the tool's own
|
|
86
86
|
* business rule (the `agents` idempotency key), not the generic
|
|
87
|
-
* `
|
|
87
|
+
* `ToolReplay` wrapper the write tools use (`replay.ts`).
|
|
88
88
|
*
|
|
89
89
|
* @public
|
|
90
90
|
*/
|