import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import { describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; import { captureEnv } from "../test-utils/env.js"; import {
writeBundleProbeMcpServer,
writeClaudeBundle,
writeFakeClaudeCli,
} from "./bundle-mcp.test-harness.js";
vi.mock("./cli-runner/helpers.js", async () => { const original =
await vi.importActual<typeofimport("./cli-runner/helpers.js")>("./cli-runner/helpers.js"); return {
...original, // This e2e only validates bundle MCP wiring into the spawned CLI backend. // Stub the large prompt-construction path so cold Vitest workers do not // time out before the actual MCP roundtrip runs.
buildSystemPrompt: () => "Bundle MCP e2e test prompt.",
};
});
// This e2e spins a real stdio MCP server plus a spawned CLI process, which is // notably slower under Docker and cold Vitest imports. The plugins Docker lane // also reaches this test after several gateway/plugin restart exercises. const E2E_TIMEOUT_MS = 90_000;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.