fix(release): keep the launched package name when comparing plugin manifests

The version-only comparison blanked the whole launch argument, so a release
that swapped rea-agents for another package passed the notes check as a
version bump. Mask only the version after the last "@" and test a changed
package name.

The plugin readiness command in the installation guide now uses the pinned
release version, so its report describes the server the plugin starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GamerDubz
2026-10-13 08:51:56 +02:00
co-authored by Claude Opus 5.5
parent 2da5e86289
commit 2fb79a99c8
3 changed files with 31 additions and 9 deletions
+4 -1
View File
@@ -376,7 +376,10 @@ function pluginManifestWithoutVersions(text) {
if (manifest === null || typeof manifest !== "object") return text;
if ("version" in manifest) manifest.version = "";
const launch = manifest.mcpServers?.rea?.args;
if (Array.isArray(launch) && launch.length > 1) launch[1] = "";
// Only the version after the last "@" is release-owned; a different package
// name changes what the plugin runs.
if (Array.isArray(launch) && typeof launch[1] === "string")
launch[1] = launch[1].replace(/@[^@/]*$/u, "@");
return JSON.stringify(manifest);
}