feat: migrate MCP runtime to TypeScript

This commit is contained in:
nac
2026-08-15 05:02:28 +00:00
parent 7eb416ded1
commit 27672a0940
83 changed files with 6559 additions and 12057 deletions
+12
View File
@@ -0,0 +1,12 @@
import { readFile } from "node:fs/promises";
const tag = process.argv[2];
if (!tag?.startsWith("v")) throw new Error("Release tag must have the form v<version>");
const packageJson = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
const manifest = JSON.parse(await readFile(new URL("../install-manifest.json", import.meta.url), "utf8"));
const expected = tag.slice(1);
if (packageJson.version !== expected || manifest.version !== expected) {
throw new Error(
`Version mismatch: tag=${tag}, package=${packageJson.version}, manifest=${manifest.version}`,
);
}