@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.
@@ -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
@@ -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
- * {@link ToolRefusal} (an `isError` result naming the fix) when the binding
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.
@@ -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({
@@ -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
- * `withIdempotency` combinator.
87
+ * `ToolReplay` wrapper the write tools use (`replay.ts`).
88
88
  *
89
89
  * @public
90
90
  */