fix(skill): pin packaged commands to the shipping package version (#1346)

Fixes #1338.

Use canonical product identity for bundled command versions and keep build-cache fixtures aligned. Verified 10 focused tests, actual CLI installation/repair/uninstall scenarios and all 19 final-head CI checks.

Co-authored-by: Yi-111-a <97448247+Yi-111-a@users.noreply.github.com>
This commit is contained in:
yi111
2026-10-10 04:47:10 +08:00
committed by GitHub
co-authored by Yi-111-a
parent 048b79878c
commit f39e71ce18
3 changed files with 10 additions and 9 deletions
@@ -27,8 +27,8 @@ async function fixture(eol = "\n") {
await mkdir(join(root, "dist"));
await writeFile(join(root, "package.json"), '{"type":"module"}\n');
await writeFile(
join(root, "dist/generatedPackageMetadata.js"),
'export const PACKAGE_METADATA = { name: "rea-agents", version: "6.2.0" };\n',
join(root, "dist/identity.js"),
'export const PRODUCT_IDENTITY = { packageSpecifier: "rea-agents@latest", registrationPackageSpecifier: "rea-agents@6.2.0" };\n',
);
await writeFile(join(sourceRoot, "SKILL.md"), authored.replaceAll("\n", eol));
await writeFile(