docs(installation): pin manual MCP registration to the release version (#658)

This commit is contained in:
Kaoru0822
2026-10-06 13:50:08 +08:00
committed by GitHub
parent 5802ef8746
commit 8dd1d84471
4 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ describe("localized README product facts", () => {
mcpServers: expect.objectContaining({
rea: expect.objectContaining({
command: "npx",
args: ["-y", "rea-agents@latest", "mcp"],
args: ["-y", PRODUCT_IDENTITY.registrationPackageSpecifier, "mcp"],
}),
}),
}),
@@ -7,12 +7,13 @@ import { SUPPORTED_NODE_VERSION_RANGE } from "../../src/domain/runtimeVersion.js
const readJson = async (path: string): Promise<unknown> =>
JSON.parse(await readFile(path, "utf8")) as unknown;
const readmes = [
const versionedDocumentation = [
"README.md",
"README_zh.md",
"README_ja.md",
"README_ko.md",
"README_ar.md",
"docs/installation.md",
] as const;
describe("release configuration", () => {
@@ -29,7 +30,10 @@ describe("release configuration", () => {
packages: {
".": {
"extra-files": [
...readmes.map((path) => ({ type: "generic", path })),
...versionedDocumentation.map((path) => ({
type: "generic",
path,
})),
{
type: "generic",
path: "src/generatedPackageMetadata.ts",
@@ -55,7 +59,7 @@ describe("release configuration", () => {
});
});
it.each(readmes)(
it.each(versionedDocumentation)(
"marks the versioned package example in %s",
async (path) => {
const content = await readFile(path, "utf8");