|
1 | | -// Shared MCP-channel Docker E2E harness helpers. |
| 1 | +// Shared MCP-channel QA/Docker E2E fixture helpers. |
2 | 2 | // The mounted test harness imports packaged dist modules so bridge assertions run |
3 | 3 | // against the OpenClaw npm tarball installed in the functional image. |
4 | 4 | import process from "node:process"; |
5 | 5 | import { setTimeout as delay } from "node:timers/promises"; |
6 | 6 | import { Client } from "@modelcontextprotocol/sdk/client/index.js"; |
7 | 7 | import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; |
8 | 8 | import { z } from "zod"; |
9 | | -import { PROTOCOL_VERSION } from "../../dist/gateway/protocol/index.js"; |
10 | | -import { formatErrorMessage } from "../../dist/infra/errors.js"; |
11 | | -import { readStringValue } from "../../dist/normalization-core/string-coerce.js"; |
12 | | -import { createGatewayWsClient, type GatewayEventFrame } from "../lib/gateway-ws-client.ts"; |
13 | | -import { resolveGatewaySuccessPayload } from "./lib/gateway-frame-payload.mjs"; |
14 | | -import { readMcpChannelLimits } from "./mcp-channel-limits.ts"; |
15 | | -import { createMcpClientTempState, type McpClientTempState } from "./mcp-client-temp-state.ts"; |
16 | | -import { connectMcpWithTimeout } from "./mcp-connect-timeout.ts"; |
| 9 | +import { PROTOCOL_VERSION } from "../../../../dist/gateway/protocol/index.js"; |
| 10 | +import { formatErrorMessage } from "../../../../dist/infra/errors.js"; |
| 11 | +import { readStringValue } from "../../../../dist/normalization-core/string-coerce.js"; |
| 12 | +import { resolveGatewaySuccessPayload } from "../../../../scripts/e2e/lib/gateway-frame-payload.mjs"; |
| 13 | +import { readMcpChannelLimits } from "../../../../scripts/e2e/mcp-channel-limits.ts"; |
| 14 | +import { |
| 15 | + createGatewayWsClient, |
| 16 | + type GatewayEventFrame, |
| 17 | +} from "../../../../scripts/lib/gateway-ws-client.ts"; |
| 18 | +import { |
| 19 | + connectMcpClientWithPairingReconnect, |
| 20 | + connectMcpWithTimeout, |
| 21 | + createMcpClientTempState, |
| 22 | + type McpClientTempState, |
| 23 | +} from "./mcp-client-temp-state.fixture.ts"; |
| 24 | + |
| 25 | +export { |
| 26 | + connectMcpClientWithPairingReconnect, |
| 27 | + connectMcpWithTimeout, |
| 28 | + createMcpClientTempState, |
| 29 | + type McpClientTempState, |
| 30 | +}; |
17 | 31 |
|
18 | 32 | export const ClaudeChannelNotificationSchema = z.object({ |
19 | 33 | method: z.literal("notifications/claude/channel"), |
|
0 commit comments