@vitest-agent/mcp 6.1.0 → 6.1.1
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 +2 -2
- package/index.d.ts +41 -41
- package/index.js +4 -4
- package/main.d.ts +1 -1
- package/main.js +3 -3
- package/package.json +11 -11
- package/replay.js +1 -1
- package/server.js +1 -1
- package/toolkit.js +2 -2
- package/tools/_tdd-error-envelope.js +1 -1
- package/tools/cache-health.js +1 -1
- package/tools/configure.js +1 -1
- package/tools/coverage.js +1 -1
- package/tools/failure-signature-get.js +1 -1
- package/tools/file-coverage.js +1 -1
- package/tools/hypothesis.js +1 -1
- package/tools/inventory.js +1 -1
- package/tools/note.js +1 -1
- package/tools/overview.js +1 -1
- package/tools/ping.js +1 -1
- package/tools/register-agent.js +1 -1
- package/tools/run-tests.js +3 -3
- package/tools/status.js +1 -1
- package/tools/tdd-behavior.js +1 -1
- package/tools/tdd-goal.js +1 -1
- package/tools/tdd-phase-transition-request.js +2 -2
- package/tools/tdd-task.js +1 -1
- package/tools/test.js +1 -1
- package/tools/trends.js +1 -1
- package/tsdoc-metadata.json +1 -1
- package/version.js +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@ The `vitest-agent-mcp` MCP server bin, built on Effect's native `McpServer` (`ef
|
|
|
12
12
|
|
|
13
13
|
- **30 action-keyed tools** — one tool per file, assembled into a single `Toolkit`; per-CRUD families collapse into single tools dispatching on an `action` discriminator; covers `test_status`, `test_overview`, `test_coverage`, `test_errors`, `run_tests`, `note`, `hypothesis`, `tdd_task`, `tdd_goal`, `tdd_behavior`, `tdd_progress_push` and more
|
|
14
14
|
- **Six framing prompts** — `triage`, `why-flaky`, `regression-since-pass`, `explain-failure`, `tdd-resume`, `wrapup`
|
|
15
|
-
- **Idempotent writes** — `tdd_task` `start` / `end`, `tdd_goal` and `tdd_behavior` `create`, and `hypothesis` `validate` replay their stored result on a retry with the same derived key, through `@effected/mcp`'s `ToolReplay`; a replay carries `_idempotentReplay: true`
|
|
15
|
+
- **Idempotent writes** — `tdd_task` `start` / `end`, `tdd_goal` and `tdd_behavior` `create`, and `hypothesis` `validate` replay their stored result on a retry with the same derived key, through `@effected/mcp-kit`'s `ToolReplay`; a replay carries `_idempotentReplay: true`
|
|
16
16
|
- **Strict tool inputs** — every served `inputSchema` is strict at every object level; an unknown key is rejected with an error naming every unrecognized key and the accepted params, instead of being stripped and running a wider query than the caller asked for
|
|
17
17
|
- **Typed results** — every tool serves an object-rooted `outputSchema`, and every successful result carries the typed object in `structuredContent`
|
|
18
18
|
- **Session-surviving error handling** — a handler that dies returns a generic `isError` result (the detail is logged on stderr, never on stdout, the JSON-RPC wire), and a stray unhandled rejection after the transport connects is logged rather than killing the server mid-session
|
|
19
|
-
- **Programmatic API** — `ServerLayer({ version })` is the whole server as an Effect `Layer` over any `Stdio` implementation (the test harness runs it over in-memory queues); `Kit`, `toolHandlers`, `PromptsLayer` and `McpSession` are exported for embedding or extension. Built on [`@effected/mcp`](https://github.com/spencerbeggs/effected)'s `McpStdio` and `McpToolkit`
|
|
19
|
+
- **Programmatic API** — `ServerLayer({ version })` is the whole server as an Effect `Layer` over any `Stdio` implementation (the test harness runs it over in-memory queues); `Kit`, `toolHandlers`, `PromptsLayer` and `McpSession` are exported for embedding or extension. Built on [`@effected/mcp-kit`](https://github.com/spencerbeggs/effected)'s `McpStdio` and `McpToolkit`
|
|
20
20
|
- **No MCP SDK, tRPC or zod** — the wire protocol, JSON Schema generation and input validation all come from `effect`; tool inputs and outputs are Effect `Schema` values end to end
|
|
21
21
|
|
|
22
22
|
## Install
|
package/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ToolRefusal, ToolRefusal as ToolRefusal$1 } from "@effected/mcp";
|
|
1
|
+
import { ToolRefusal, ToolRefusal as ToolRefusal$1 } from "@effected/mcp-kit";
|
|
2
2
|
import { Context, Effect, Layer, Schema, Scope, Stdio } from "effect";
|
|
3
3
|
import { McpServer, Tool, Toolkit } from "effect/ai";
|
|
4
4
|
import { DataReader, DataStore, ProjectDiscovery, SessionContext } from "@vitest-agent/engine";
|
|
5
5
|
import "@effected/git";
|
|
6
|
-
import "@effected/mcp/node";
|
|
6
|
+
import "@effected/mcp-kit/node";
|
|
7
7
|
import "@vitest-agent/sdk";
|
|
8
|
-
import { Remediation } from "@effected/
|
|
8
|
+
import { Remediation } from "@effected/kit";
|
|
9
9
|
/**
|
|
10
10
|
* Formerly rendered a tool's encoded result as a markdown `content[0].text`
|
|
11
11
|
* channel. The server no longer reads it: every successful result carries
|
|
@@ -2858,7 +2858,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
2858
2858
|
readonly failure: import("effect/Schema").Never;
|
|
2859
2859
|
readonly failureMode: "error";
|
|
2860
2860
|
}, never>;
|
|
2861
|
-
readonly hypothesis: import("@effected/mcp").UnionTool<"hypothesis", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2861
|
+
readonly hypothesis: import("@effected/mcp-kit").UnionTool<"hypothesis", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2862
2862
|
readonly action: import("effect/Schema").Literal<"record">;
|
|
2863
2863
|
readonly tddTaskId: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>;
|
|
2864
2864
|
readonly sessionId: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>;
|
|
@@ -2895,8 +2895,8 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
2895
2895
|
readonly validationOutcome: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["confirmed", "refuted", "abandoned"]>>;
|
|
2896
2896
|
readonly validatedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2897
2897
|
}>>;
|
|
2898
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
2899
|
-
readonly inventory: import("@effected/mcp").UnionTool<"inventory", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2898
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
2899
|
+
readonly inventory: import("@effected/mcp-kit").UnionTool<"inventory", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2900
2900
|
readonly kind: import("effect/Schema").Literal<"project">;
|
|
2901
2901
|
}>, import("effect/Schema").Struct<{
|
|
2902
2902
|
readonly kind: import("effect/Schema").Literal<"module">;
|
|
@@ -3010,8 +3010,8 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3010
3010
|
readonly testCount: import("effect/Schema").Number;
|
|
3011
3011
|
}>>;
|
|
3012
3012
|
}>>;
|
|
3013
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
3014
|
-
readonly note: import("@effected/mcp").UnionTool<"note", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3013
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
3014
|
+
readonly note: import("@effected/mcp-kit").UnionTool<"note", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3015
3015
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
3016
3016
|
readonly title: import("effect/Schema").String;
|
|
3017
3017
|
readonly content: import("effect/Schema").String;
|
|
@@ -3112,7 +3112,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3112
3112
|
readonly createdAt: import("effect/Schema").String;
|
|
3113
3113
|
readonly updatedAt: import("effect/Schema").String;
|
|
3114
3114
|
}>>;
|
|
3115
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3115
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3116
3116
|
readonly ping: import("effect/ai/Tool").Tool<"ping", {
|
|
3117
3117
|
readonly parameters: import("effect/ai/Tool").EmptyParams;
|
|
3118
3118
|
readonly success: import("effect/Schema").Struct<{
|
|
@@ -3475,7 +3475,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3475
3475
|
readonly failure: import("effect/Schema").Never;
|
|
3476
3476
|
readonly failureMode: "error";
|
|
3477
3477
|
}, import("@vitest-agent/engine").DataReader>;
|
|
3478
|
-
readonly tdd_behavior: import("@effected/mcp").UnionTool<"tdd_behavior", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3478
|
+
readonly tdd_behavior: import("@effected/mcp-kit").UnionTool<"tdd_behavior", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3479
3479
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
3480
3480
|
readonly goalId: import("effect/Schema").Finite;
|
|
3481
3481
|
readonly behavior: import("effect/Schema").String;
|
|
@@ -3652,8 +3652,8 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3652
3652
|
readonly to: import("effect/Schema").String;
|
|
3653
3653
|
readonly reason: import("effect/Schema").String;
|
|
3654
3654
|
}>]>;
|
|
3655
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3656
|
-
readonly tdd_goal: import("@effected/mcp").UnionTool<"tdd_goal", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3655
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3656
|
+
readonly tdd_goal: import("@effected/mcp-kit").UnionTool<"tdd_goal", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3657
3657
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
3658
3658
|
readonly tddTaskId: import("effect/Schema").Finite;
|
|
3659
3659
|
readonly goal: import("effect/Schema").String;
|
|
@@ -3810,7 +3810,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3810
3810
|
readonly to: import("effect/Schema").String;
|
|
3811
3811
|
readonly reason: import("effect/Schema").String;
|
|
3812
3812
|
}>]>;
|
|
3813
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3813
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3814
3814
|
readonly tdd_phase_transition_request: import("effect/ai/Tool").Tool<"tdd_phase_transition_request", {
|
|
3815
3815
|
readonly parameters: import("effect/Schema").Struct<{
|
|
3816
3816
|
readonly tddTaskId: import("effect/Schema").Finite;
|
|
@@ -3851,7 +3851,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3851
3851
|
readonly failure: import("effect/Schema").Never;
|
|
3852
3852
|
readonly failureMode: "error";
|
|
3853
3853
|
}, import("@vitest-agent/engine").DataReader | import("effect/ai/McpServer").McpServer>;
|
|
3854
|
-
readonly tdd_task: import("@effected/mcp").UnionTool<"tdd_task", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3854
|
+
readonly tdd_task: import("@effected/mcp-kit").UnionTool<"tdd_task", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3855
3855
|
readonly action: import("effect/Schema").Literal<"start">;
|
|
3856
3856
|
readonly goal: import("effect/Schema").String;
|
|
3857
3857
|
readonly sessionId: import("effect/Schema").optionalKey<import("effect/Schema").Finite>;
|
|
@@ -3954,8 +3954,8 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
3954
3954
|
readonly action: import("effect/Schema").Literal<"resume">;
|
|
3955
3955
|
readonly found: import("effect/Schema").Literal<false>;
|
|
3956
3956
|
readonly tddTaskId: import("effect/Schema").Number;
|
|
3957
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3958
|
-
readonly test: import("@effected/mcp").UnionTool<"test", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3957
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
3958
|
+
readonly test: import("@effected/mcp-kit").UnionTool<"test", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3959
3959
|
readonly action: import("effect/Schema").Literal<"list">;
|
|
3960
3960
|
readonly project: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
3961
3961
|
readonly state: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
@@ -4093,7 +4093,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
4093
4093
|
readonly bodyEncoding: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["base64", "utf-8"]>>;
|
|
4094
4094
|
}>>;
|
|
4095
4095
|
}>>;
|
|
4096
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
4096
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
4097
4097
|
readonly test_coverage: import("effect/ai/Tool").Tool<"test_coverage", {
|
|
4098
4098
|
readonly parameters: import("effect/Schema").Struct<{
|
|
4099
4099
|
readonly project: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
@@ -4457,7 +4457,7 @@ export declare const Kit: Toolkit.Toolkit<{
|
|
|
4457
4457
|
/**
|
|
4458
4458
|
* Builds the handler for each tool in {@link Kit}: reads `DataReader` /
|
|
4459
4459
|
* `DataStore` once into the idempotent-replay store and wraps the write
|
|
4460
|
-
* tools once over it (`@effected/mcp`'s `ToolReplay` guidance for a server:
|
|
4460
|
+
* tools once over it (`@effected/mcp-kit`'s `ToolReplay` guidance for a server:
|
|
4461
4461
|
* read the store when the handlers are built, never per call). Both services
|
|
4462
4462
|
* are fixed for the life of the server, the same instances the server's
|
|
4463
4463
|
* request middleware provides to each call.
|
|
@@ -4777,7 +4777,7 @@ export declare const toolHandlers: Effect.Effect<{
|
|
|
4777
4777
|
} | {
|
|
4778
4778
|
readonly _idempotentReplay?: true;
|
|
4779
4779
|
readonly action: "validate";
|
|
4780
|
-
}, import("effect/ai/McpSchema").InvalidParams | import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
4780
|
+
}, import("effect/ai/McpSchema").InvalidParams | import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
4781
4781
|
tdd_task: (payload: unknown) => Effect.Effect<{
|
|
4782
4782
|
readonly action: "get";
|
|
4783
4783
|
readonly found: true;
|
|
@@ -4862,7 +4862,7 @@ export declare const toolHandlers: Effect.Effect<{
|
|
|
4862
4862
|
readonly action: "end";
|
|
4863
4863
|
readonly tddTaskId: number;
|
|
4864
4864
|
readonly outcome: "abandoned" | "blocked" | "succeeded";
|
|
4865
|
-
}, import("effect/ai/McpSchema").InvalidParams | import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
4865
|
+
}, import("effect/ai/McpSchema").InvalidParams | import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
4866
4866
|
tdd_phase_transition_request: typeof handlePhaseTransitionRequest;
|
|
4867
4867
|
tdd_goal: (payload: unknown) => Effect.Effect<{
|
|
4868
4868
|
readonly ok: false;
|
|
@@ -5345,7 +5345,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
5345
5345
|
readonly failure: import("effect/Schema").Never;
|
|
5346
5346
|
readonly failureMode: "error";
|
|
5347
5347
|
}, never>;
|
|
5348
|
-
readonly hypothesis: import("@effected/mcp").UnionTool<"hypothesis", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5348
|
+
readonly hypothesis: import("@effected/mcp-kit").UnionTool<"hypothesis", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5349
5349
|
readonly action: import("effect/Schema").Literal<"record">;
|
|
5350
5350
|
readonly tddTaskId: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>;
|
|
5351
5351
|
readonly sessionId: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>;
|
|
@@ -5382,8 +5382,8 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
5382
5382
|
readonly validationOutcome: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["confirmed", "refuted", "abandoned"]>>;
|
|
5383
5383
|
readonly validatedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5384
5384
|
}>>;
|
|
5385
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
5386
|
-
readonly inventory: import("@effected/mcp").UnionTool<"inventory", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5385
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore | McpSession>;
|
|
5386
|
+
readonly inventory: import("@effected/mcp-kit").UnionTool<"inventory", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5387
5387
|
readonly kind: import("effect/Schema").Literal<"project">;
|
|
5388
5388
|
}>, import("effect/Schema").Struct<{
|
|
5389
5389
|
readonly kind: import("effect/Schema").Literal<"module">;
|
|
@@ -5497,8 +5497,8 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
5497
5497
|
readonly testCount: import("effect/Schema").Number;
|
|
5498
5498
|
}>>;
|
|
5499
5499
|
}>>;
|
|
5500
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
5501
|
-
readonly note: import("@effected/mcp").UnionTool<"note", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5500
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
5501
|
+
readonly note: import("@effected/mcp-kit").UnionTool<"note", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5502
5502
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
5503
5503
|
readonly title: import("effect/Schema").String;
|
|
5504
5504
|
readonly content: import("effect/Schema").String;
|
|
@@ -5599,7 +5599,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
5599
5599
|
readonly createdAt: import("effect/Schema").String;
|
|
5600
5600
|
readonly updatedAt: import("effect/Schema").String;
|
|
5601
5601
|
}>>;
|
|
5602
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
5602
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
5603
5603
|
readonly ping: import("effect/ai/Tool").Tool<"ping", {
|
|
5604
5604
|
readonly parameters: import("effect/ai/Tool").EmptyParams;
|
|
5605
5605
|
readonly success: import("effect/Schema").Struct<{
|
|
@@ -5962,7 +5962,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
5962
5962
|
readonly failure: import("effect/Schema").Never;
|
|
5963
5963
|
readonly failureMode: "error";
|
|
5964
5964
|
}, import("@vitest-agent/engine").DataReader>;
|
|
5965
|
-
readonly tdd_behavior: import("@effected/mcp").UnionTool<"tdd_behavior", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5965
|
+
readonly tdd_behavior: import("@effected/mcp-kit").UnionTool<"tdd_behavior", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5966
5966
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
5967
5967
|
readonly goalId: import("effect/Schema").Finite;
|
|
5968
5968
|
readonly behavior: import("effect/Schema").String;
|
|
@@ -6139,8 +6139,8 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
6139
6139
|
readonly to: import("effect/Schema").String;
|
|
6140
6140
|
readonly reason: import("effect/Schema").String;
|
|
6141
6141
|
}>]>;
|
|
6142
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6143
|
-
readonly tdd_goal: import("@effected/mcp").UnionTool<"tdd_goal", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6142
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6143
|
+
readonly tdd_goal: import("@effected/mcp-kit").UnionTool<"tdd_goal", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6144
6144
|
readonly action: import("effect/Schema").Literal<"create">;
|
|
6145
6145
|
readonly tddTaskId: import("effect/Schema").Finite;
|
|
6146
6146
|
readonly goal: import("effect/Schema").String;
|
|
@@ -6297,7 +6297,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
6297
6297
|
readonly to: import("effect/Schema").String;
|
|
6298
6298
|
readonly reason: import("effect/Schema").String;
|
|
6299
6299
|
}>]>;
|
|
6300
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6300
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6301
6301
|
readonly tdd_phase_transition_request: import("effect/ai/Tool").Tool<"tdd_phase_transition_request", {
|
|
6302
6302
|
readonly parameters: import("effect/Schema").Struct<{
|
|
6303
6303
|
readonly tddTaskId: import("effect/Schema").Finite;
|
|
@@ -6338,7 +6338,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
6338
6338
|
readonly failure: import("effect/Schema").Never;
|
|
6339
6339
|
readonly failureMode: "error";
|
|
6340
6340
|
}, import("@vitest-agent/engine").DataReader | import("effect/ai/McpServer").McpServer>;
|
|
6341
|
-
readonly tdd_task: import("@effected/mcp").UnionTool<"tdd_task", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6341
|
+
readonly tdd_task: import("@effected/mcp-kit").UnionTool<"tdd_task", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6342
6342
|
readonly action: import("effect/Schema").Literal<"start">;
|
|
6343
6343
|
readonly goal: import("effect/Schema").String;
|
|
6344
6344
|
readonly sessionId: import("effect/Schema").optionalKey<import("effect/Schema").Finite>;
|
|
@@ -6441,8 +6441,8 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
6441
6441
|
readonly action: import("effect/Schema").Literal<"resume">;
|
|
6442
6442
|
readonly found: import("effect/Schema").Literal<false>;
|
|
6443
6443
|
readonly tddTaskId: import("effect/Schema").Number;
|
|
6444
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6445
|
-
readonly test: import("@effected/mcp").UnionTool<"test", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6444
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader | import("@vitest-agent/engine").DataStore>;
|
|
6445
|
+
readonly test: import("@effected/mcp-kit").UnionTool<"test", import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
6446
6446
|
readonly action: import("effect/Schema").Literal<"list">;
|
|
6447
6447
|
readonly project: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
6448
6448
|
readonly state: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
@@ -6580,7 +6580,7 @@ export declare const ToolsLayer: import("effect/Layer").Layer<import("effect/ai/
|
|
|
6580
6580
|
readonly bodyEncoding: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["base64", "utf-8"]>>;
|
|
6581
6581
|
}>>;
|
|
6582
6582
|
}>>;
|
|
6583
|
-
}>]>, typeof import("@effected/mcp").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
6583
|
+
}>]>, typeof import("@effected/mcp-kit").ToolRefusal, import("@vitest-agent/engine").DataReader>;
|
|
6584
6584
|
readonly test_coverage: import("effect/ai/Tool").Tool<"test_coverage", {
|
|
6585
6585
|
readonly parameters: import("effect/Schema").Struct<{
|
|
6586
6586
|
readonly project: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
@@ -7036,7 +7036,7 @@ export declare const handleHypothesis: (input: HypothesisInputType) => Effect.Ef
|
|
|
7036
7036
|
*
|
|
7037
7037
|
* @public
|
|
7038
7038
|
*/
|
|
7039
|
-
export declare const hypothesisTool: import("@effected/mcp").UnionTool<"hypothesis", Schema.Union<readonly [Schema.Struct<{
|
|
7039
|
+
export declare const hypothesisTool: import("@effected/mcp-kit").UnionTool<"hypothesis", Schema.Union<readonly [Schema.Struct<{
|
|
7040
7040
|
readonly action: Schema.Literal<"record">;
|
|
7041
7041
|
readonly tddTaskId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
7042
7042
|
readonly sessionId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
@@ -7225,7 +7225,7 @@ export declare const handleInventory: (input: InventoryInputType) => Effect.Effe
|
|
|
7225
7225
|
*
|
|
7226
7226
|
* @public
|
|
7227
7227
|
*/
|
|
7228
|
-
export declare const inventoryTool: import("@effected/mcp").UnionTool<"inventory", Schema.Union<readonly [Schema.Struct<{
|
|
7228
|
+
export declare const inventoryTool: import("@effected/mcp-kit").UnionTool<"inventory", Schema.Union<readonly [Schema.Struct<{
|
|
7229
7229
|
readonly kind: Schema.Literal<"project">;
|
|
7230
7230
|
}>, Schema.Struct<{
|
|
7231
7231
|
readonly kind: Schema.Literal<"module">;
|
|
@@ -7476,7 +7476,7 @@ export declare const handleNote: (input: NoteParamsType) => Effect.Effect<NoteRe
|
|
|
7476
7476
|
*
|
|
7477
7477
|
* @public
|
|
7478
7478
|
*/
|
|
7479
|
-
export declare const noteTool: import("@effected/mcp").UnionTool<"note", Schema.Union<readonly [Schema.Struct<{
|
|
7479
|
+
export declare const noteTool: import("@effected/mcp-kit").UnionTool<"note", Schema.Union<readonly [Schema.Struct<{
|
|
7480
7480
|
readonly action: Schema.Literal<"create">;
|
|
7481
7481
|
readonly title: Schema.String;
|
|
7482
7482
|
readonly content: Schema.String;
|
|
@@ -7791,7 +7791,7 @@ export declare const handleTddBehavior: (input: TddBehaviorInputType) => Effect.
|
|
|
7791
7791
|
*
|
|
7792
7792
|
* @public
|
|
7793
7793
|
*/
|
|
7794
|
-
export declare const tddBehaviorTool: import("@effected/mcp").UnionTool<"tdd_behavior", Schema.Union<readonly [Schema.Struct<{
|
|
7794
|
+
export declare const tddBehaviorTool: import("@effected/mcp-kit").UnionTool<"tdd_behavior", Schema.Union<readonly [Schema.Struct<{
|
|
7795
7795
|
readonly action: Schema.Literal<"create">;
|
|
7796
7796
|
readonly goalId: Schema.Finite;
|
|
7797
7797
|
readonly behavior: Schema.String;
|
|
@@ -8162,7 +8162,7 @@ export declare const handleTddGoal: (input: TddGoalInputType) => Effect.Effect<T
|
|
|
8162
8162
|
*
|
|
8163
8163
|
* @public
|
|
8164
8164
|
*/
|
|
8165
|
-
export declare const tddGoalTool: import("@effected/mcp").UnionTool<"tdd_goal", Schema.Union<readonly [Schema.Struct<{
|
|
8165
|
+
export declare const tddGoalTool: import("@effected/mcp-kit").UnionTool<"tdd_goal", Schema.Union<readonly [Schema.Struct<{
|
|
8166
8166
|
readonly action: Schema.Literal<"create">;
|
|
8167
8167
|
readonly tddTaskId: Schema.Finite;
|
|
8168
8168
|
readonly goal: Schema.String;
|
|
@@ -8461,7 +8461,7 @@ export declare const handleTddTask: (input: TddTaskInputType) => Effect.Effect<T
|
|
|
8461
8461
|
*
|
|
8462
8462
|
* @public
|
|
8463
8463
|
*/
|
|
8464
|
-
export declare const tddTaskTool: import("@effected/mcp").UnionTool<"tdd_task", Schema.Union<readonly [Schema.Struct<{
|
|
8464
|
+
export declare const tddTaskTool: import("@effected/mcp-kit").UnionTool<"tdd_task", Schema.Union<readonly [Schema.Struct<{
|
|
8465
8465
|
readonly action: Schema.Literal<"start">;
|
|
8466
8466
|
readonly goal: Schema.String;
|
|
8467
8467
|
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
@@ -8751,7 +8751,7 @@ export declare const handleTest: (input: TestInputType) => Effect.Effect<TestRes
|
|
|
8751
8751
|
*
|
|
8752
8752
|
* @public
|
|
8753
8753
|
*/
|
|
8754
|
-
export declare const testTool: import("@effected/mcp").UnionTool<"test", Schema.Union<readonly [Schema.Struct<{
|
|
8754
|
+
export declare const testTool: import("@effected/mcp-kit").UnionTool<"test", Schema.Union<readonly [Schema.Struct<{
|
|
8755
8755
|
readonly action: Schema.Literal<"list">;
|
|
8756
8756
|
readonly project: Schema.optionalKey<Schema.String>;
|
|
8757
8757
|
readonly state: Schema.optionalKey<Schema.String>;
|
package/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RenderText } from "./annotations.js";
|
|
2
|
-
import { McpSession, createCurrentSessionIdRef, createSessionContextRef, sessionContextFromEnv } from "./session.js";
|
|
3
2
|
import { PromptsLayer } from "./prompts/layer.js";
|
|
3
|
+
import { SERVER_INSTRUCTIONS, ServerLayer } from "./server.js";
|
|
4
|
+
import { McpSession, createCurrentSessionIdRef, createSessionContextRef, sessionContextFromEnv } from "./session.js";
|
|
5
|
+
import { Kit, ToolsLayer, toolHandlers } from "./toolkit.js";
|
|
4
6
|
import { AcceptanceMetricsResult, acceptanceMetricsTool, handleAcceptanceMetrics } from "./tools/acceptance-metrics.js";
|
|
5
7
|
import { CacheHealthResult, cacheHealthTool, handleCacheHealth } from "./tools/cache-health.js";
|
|
6
8
|
import { CommitChangesInput, CommitChangesResult, commitChangesTool, handleCommitChanges } from "./tools/commit-changes.js";
|
|
@@ -31,9 +33,7 @@ import { TestTrendsInput, TestTrendsResult, handleTestTrends, testTrendsTool } f
|
|
|
31
33
|
import { TriageBriefInput, TriageBriefResult, handleTriageBrief, triageBriefTool } from "./tools/triage-brief.js";
|
|
32
34
|
import { TurnSearchInput, TurnSearchResult, handleTurnSearch, turnSearchTool } from "./tools/turn-search.js";
|
|
33
35
|
import { WrapupPromptInput, WrapupPromptResult, handleWrapupPrompt, wrapupPromptTool } from "./tools/wrapup-prompt.js";
|
|
34
|
-
import { Kit, ToolsLayer, toolHandlers } from "./toolkit.js";
|
|
35
|
-
import { SERVER_INSTRUCTIONS, ServerLayer } from "./server.js";
|
|
36
36
|
import { CURRENT_MCP_VERSION } from "./version.js";
|
|
37
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
37
|
+
import { ToolRefusal } from "@effected/mcp-kit";
|
|
38
38
|
|
|
39
39
|
export { AcceptanceMetricsResult, CURRENT_MCP_VERSION, CacheHealthResult, CommitChangesInput, CommitChangesResult, ConfigureInput, ConfigureResult, FailureSignatureGetInput, FailureSignatureGetResult, FileCoverageInput, FileCoverageResult, HelpResult, HypothesisInput, HypothesisResult, InventoryInput, InventoryResult, Kit, McpSession, NoteParams, NoteResult, PhaseTransitionInput, PhaseTransitionResult, PingResult, PromptsLayer, RegisterAgentInput, RegisterAgentResult, RenderText, RunTestsInput, RunTestsResult, SERVER_INSTRUCTIONS, ServerLayer, SettingsListResult, TddArtifactListInput, TddArtifactListResult, TddBehaviorInput, TddBehaviorResult, TddGoalInput, TddGoalResult, TddProgressPushInput, TddProgressPushResult, TddTaskInput, TddTaskResult, TestCoverageInput, TestCoverageResult, TestErrorsInput, TestErrorsResult, TestHistoryInput, TestHistoryResult, TestInput, TestOverviewInput, TestOverviewResult, TestResult, TestStatusInput, TestStatusResult, TestTrendsInput, TestTrendsResult, ToolRefusal, ToolsLayer, TriageBriefInput, TriageBriefResult, TurnSearchInput, TurnSearchResult, WrapupPromptInput, WrapupPromptResult, acceptanceMetricsTool, cacheHealthTool, commitChangesTool, configureTool, createCurrentSessionIdRef, createSessionContextRef, failureSignatureGetTool, fileCoverageTool, handleAcceptanceMetrics, handleCacheHealth, handleCommitChanges, handleConfigure, handleFailureSignatureGet, handleFileCoverage, handleHelp, handleHypothesis, handleInventory, handleNote, handlePhaseTransitionRequest, handlePing, handleRegisterAgent, handleRunTests, handleSettingsList, handleTddArtifactList, handleTddBehavior, handleTddGoal, handleTddProgressPush, handleTddTask, handleTest, handleTestCoverage, handleTestErrors, handleTestHistory, handleTestOverview, handleTestStatus, handleTestTrends, handleTriageBrief, handleTurnSearch, handleWrapupPrompt, helpTool, hypothesisTool, inventoryTool, noteTool, pingTool, registerAgentTool, runTestsTool, sessionContextFromEnv, settingsListTool, tddArtifactListTool, tddBehaviorTool, tddGoalTool, tddPhaseTransitionRequestTool, tddProgressPushTool, tddTaskTool, testCoverageTool, testErrorsTool, testHistoryTool, testOverviewTool, testStatusTool, testTool, testTrendsTool, toolHandlers, triageBriefTool, turnSearchTool, wrapupPromptTool };
|
package/main.d.ts
CHANGED
package/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpGuard } from "@effected/mcp/guard";
|
|
1
|
+
import { McpGuard } from "@effected/mcp-kit/guard";
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
/**
|
|
@@ -27,8 +27,8 @@ const main = (options = {}) => McpGuard.run({
|
|
|
27
27
|
const NodeServices = await import("@effect/platform-node/NodeServices");
|
|
28
28
|
const NodeStdio = await import("@effect/platform-node/NodeStdio");
|
|
29
29
|
const { Effect, Layer, Option } = await import("effect");
|
|
30
|
-
const { CurrentDistribution, LaunchContext } = await import("@effected/
|
|
31
|
-
const { StdioCapture } = await import("@effected/mcp/node");
|
|
30
|
+
const { CurrentDistribution, LaunchContext } = await import("@effected/kit");
|
|
31
|
+
const { StdioCapture } = await import("@effected/mcp-kit/node");
|
|
32
32
|
const { PathResolutionLive, PlatformLive, recoverSessionContextFromSessionEnv, resolveDataPath, resolveLogFile, resolveLogLevel, resolveProjectDir } = await import("@vitest-agent/engine");
|
|
33
33
|
const { McpSession, sessionContextFromEnv } = await import("./session.js");
|
|
34
34
|
const { ServerLayer } = await import("./server.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/mcp",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Model Context Protocol server for vitest-agent. Exposes 30 tools for agent access to test data, TDD lifecycle, and session management.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"vitest-agent-mcp": "bin/vitest-agent-mcp.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@effect/platform-node": "~4.1.
|
|
47
|
-
"@effected/commands": "^0.
|
|
48
|
-
"@effected/
|
|
49
|
-
"@effected/
|
|
50
|
-
"@effected/
|
|
51
|
-
"@effected/mcp": "^0.
|
|
52
|
-
"@effected/walker": "^0.
|
|
53
|
-
"@vitest-agent/engine": "3.1.
|
|
54
|
-
"@vitest-agent/sdk": "9.0.
|
|
55
|
-
"effect": "~4.1.
|
|
46
|
+
"@effect/platform-node": "~4.1.2",
|
|
47
|
+
"@effected/commands": "^0.20.0",
|
|
48
|
+
"@effected/git": "^0.30.0",
|
|
49
|
+
"@effected/glob": "^0.18.0",
|
|
50
|
+
"@effected/kit": "^0.12.0",
|
|
51
|
+
"@effected/mcp-kit": "^0.13.0",
|
|
52
|
+
"@effected/walker": "^0.25.0",
|
|
53
|
+
"@vitest-agent/engine": "3.1.1",
|
|
54
|
+
"@vitest-agent/sdk": "9.0.3",
|
|
55
|
+
"effect": "~4.1.2"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"vitest": "^5.0.0"
|
package/replay.js
CHANGED
package/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PromptsLayer } from "./prompts/layer.js";
|
|
2
2
|
import { Kit, ToolsLayer } from "./toolkit.js";
|
|
3
|
-
import { McpStdio, McpToolkit } from "@effected/mcp";
|
|
3
|
+
import { McpStdio, McpToolkit } from "@effected/mcp-kit";
|
|
4
4
|
import { Effect, Layer } from "effect";
|
|
5
5
|
import { McpServer } from "effect/ai";
|
|
6
6
|
|
package/toolkit.js
CHANGED
|
@@ -29,7 +29,7 @@ import { handleTestTrends, testTrendsTool } from "./tools/trends.js";
|
|
|
29
29
|
import { handleTriageBrief, triageBriefTool } from "./tools/triage-brief.js";
|
|
30
30
|
import { handleTurnSearch, turnSearchTool } from "./tools/turn-search.js";
|
|
31
31
|
import { handleWrapupPrompt, wrapupPromptTool } from "./tools/wrapup-prompt.js";
|
|
32
|
-
import { McpToolkit } from "@effected/mcp";
|
|
32
|
+
import { McpToolkit } from "@effected/mcp-kit";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
import { Toolkit } from "effect/ai";
|
|
35
35
|
|
|
@@ -103,7 +103,7 @@ const makeToolHandlers = (store) => {
|
|
|
103
103
|
/**
|
|
104
104
|
* Builds the handler for each tool in {@link Kit}: reads `DataReader` /
|
|
105
105
|
* `DataStore` once into the idempotent-replay store and wraps the write
|
|
106
|
-
* tools once over it (`@effected/mcp`'s `ToolReplay` guidance for a server:
|
|
106
|
+
* tools once over it (`@effected/mcp-kit`'s `ToolReplay` guidance for a server:
|
|
107
107
|
* read the store when the handlers are built, never per call). Both services
|
|
108
108
|
* are fixed for the life of the server, the same instances the server's
|
|
109
109
|
* request middleware provides to each call.
|
package/tools/cache-health.js
CHANGED
package/tools/configure.js
CHANGED
package/tools/coverage.js
CHANGED
package/tools/file-coverage.js
CHANGED
package/tools/hypothesis.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpSession } from "../session.js";
|
|
2
2
|
import { IdempotentReplayMarker } from "../utils/replay-marker.js";
|
|
3
|
-
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
3
|
+
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp-kit";
|
|
4
4
|
import { Effect, Match, Option, Schema } from "effect";
|
|
5
5
|
import { Tool } from "effect/ai";
|
|
6
6
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
package/tools/inventory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { collectProjectRows, resolveProjectTargets } from "./_project-groups.js";
|
|
2
|
-
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
2
|
+
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { Effect, Match, Option, Schema } from "effect";
|
|
4
4
|
import { Tool } from "effect/ai";
|
|
5
5
|
import { DataReader } from "@vitest-agent/engine";
|
package/tools/note.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp-kit";
|
|
2
2
|
import { Effect, Match, Option, Schema } from "effect";
|
|
3
3
|
import { Tool } from "effect/ai";
|
|
4
4
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
package/tools/overview.js
CHANGED
package/tools/ping.js
CHANGED
package/tools/register-agent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolOutputSchema } from "@effected/mcp";
|
|
1
|
+
import { ToolOutputSchema } from "@effected/mcp-kit";
|
|
2
2
|
import { Effect, Option, Schema } from "effect";
|
|
3
3
|
import { Tool } from "effect/ai";
|
|
4
4
|
import { DataReader, DataStore, deriveIdempotencyKey } from "@vitest-agent/engine";
|
package/tools/run-tests.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { McpSession } from "../session.js";
|
|
2
|
-
import { ToolOutputSchema } from "@effected/mcp";
|
|
2
|
+
import { ToolOutputSchema } from "@effected/mcp-kit";
|
|
3
3
|
import { Context, Data, Effect, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
4
4
|
import { Tool } from "effect/ai";
|
|
5
5
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
6
6
|
import { AgentReport, RunDiagnostics, SuggestedActionRecord, VITEST_CONFIG_FILES, buildAgentReport, buildConsoleLeaks, collectConsoleLeakEntries, formatScopedCoverageNote, readStrayOutput, suggestedActionsFromRunDiagnostics } from "@vitest-agent/sdk";
|
|
7
|
-
import { ErrorText, Exclusive, ProcessScope } from "@effected/
|
|
7
|
+
import { ErrorText, Exclusive, ProcessScope } from "@effected/kit";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import * as NodeChildProcessSpawner from "@effect/platform-node/NodeChildProcessSpawner";
|
|
10
10
|
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem";
|
|
11
11
|
import * as NodePath from "@effect/platform-node/NodePath";
|
|
12
12
|
import { ModuleResolution } from "@effected/commands/node-sync";
|
|
13
13
|
import { Git, TreeIdentity } from "@effected/git";
|
|
14
|
-
import { StdioCapture } from "@effected/mcp/node";
|
|
14
|
+
import { StdioCapture } from "@effected/mcp-kit/node";
|
|
15
15
|
import { Walker } from "@effected/walker";
|
|
16
16
|
|
|
17
17
|
// src/tools/run-tests.ts
|
package/tools/status.js
CHANGED
package/tools/tdd-behavior.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdempotentReplayMarker } from "../utils/replay-marker.js";
|
|
2
2
|
import { behaviorNotFound, goalNotFound, illegalStatusTransition, tddEnvelope, tddTaskAlreadyEnded, tddTaskNotFound } from "./_tdd-error-envelope.js";
|
|
3
|
-
import { McpToolkit, ToolOutcome, ToolRefusal } from "@effected/mcp";
|
|
3
|
+
import { McpToolkit, ToolOutcome, ToolRefusal } from "@effected/mcp-kit";
|
|
4
4
|
import { Effect, Match, Option, Schema } from "effect";
|
|
5
5
|
import { Tool } from "effect/ai";
|
|
6
6
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
package/tools/tdd-goal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdempotentReplayMarker } from "../utils/replay-marker.js";
|
|
2
2
|
import { goalNotFound, illegalStatusTransition, tddEnvelope, tddTaskAlreadyEnded, tddTaskNotFound } from "./_tdd-error-envelope.js";
|
|
3
|
-
import { McpToolkit, ToolOutcome, ToolRefusal } from "@effected/mcp";
|
|
3
|
+
import { McpToolkit, ToolOutcome, ToolRefusal } from "@effected/mcp-kit";
|
|
4
4
|
import { Effect, Match, Option, Schema } from "effect";
|
|
5
5
|
import { Tool } from "effect/ai";
|
|
6
6
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ToolOutputSchema } from "@effected/mcp";
|
|
1
|
+
import { ToolOutputSchema } from "@effected/mcp-kit";
|
|
2
2
|
import { Effect, Option, Schema } from "effect";
|
|
3
3
|
import { Tool } from "effect/ai";
|
|
4
4
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
|
5
5
|
import { requiredArtifactForTransition, transitionEnforcesBehaviorMatch, validatePhaseTransition } from "@vitest-agent/sdk";
|
|
6
|
-
import { Remediation } from "@effected/
|
|
6
|
+
import { Remediation } from "@effected/kit";
|
|
7
7
|
|
|
8
8
|
// src/tools/tdd-phase-transition-request.ts
|
|
9
9
|
/**
|
package/tools/tdd-task.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IdempotentReplayMarker } from "../utils/replay-marker.js";
|
|
2
|
-
import { McpToolkit, ToolFailure, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
2
|
+
import { McpToolkit, ToolFailure, ToolOutputSchema, ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { Effect, Match, Option, Schema } from "effect";
|
|
4
4
|
import { Tool } from "effect/ai";
|
|
5
5
|
import { DataReader, DataStore } from "@vitest-agent/engine";
|
package/tools/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { collectProjectRows, resolveProjectTargets } from "./_project-groups.js";
|
|
2
|
-
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp";
|
|
2
|
+
import { McpToolkit, ToolOutputSchema, ToolRefusal } from "@effected/mcp-kit";
|
|
3
3
|
import { Effect, Match, Option, Schema } from "effect";
|
|
4
4
|
import { Tool } from "effect/ai";
|
|
5
5
|
import { DataReader } from "@vitest-agent/engine";
|
package/tools/trends.js
CHANGED
package/tsdoc-metadata.json
CHANGED