sync: update MCP client from GameCraftTable

This commit is contained in:
2026-09-17 00:40:50 +08:00
parent d8f8f394f9
commit 6182738980
18 changed files with 551 additions and 23 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
/**
* 覆盖 Agent 配置适配器、Skill 目录解析、幂等配置、冲突替换与备份行为。
*
* @packageDocumentation
*/
import assert from "node:assert/strict";
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
import os from "node:os";
@@ -35,7 +41,7 @@ class FakeRunner implements CommandRunner {
}
const options = resolveClientOptions({ url: "https://example.test/mcp", clientId: "client", callbackPort: 48321, env: {} });
const cliEntry = path.resolve("dist", "cli.js");
const cliEntry = path.resolve("..", "build", "mcp-client", "cli.js");
const nodePath = path.resolve("bin", "node.exe");
test("Agent Skill paths use each client's user-level discovery directory", () => {