From fbbc53843ccf99be0a9d814027ce26da45921d80 Mon Sep 17 00:00:00 2001 From: sickn33 Date: Fri, 27 Mar 2026 10:51:25 +0100 Subject: [PATCH] test(release): derive Codex plugin version from package metadata Make the Codex marketplace release test follow package.json instead of pinning the previous release version, so scripted release prepares can bump plugin manifests safely. --- tools/scripts/tests/codex_plugin_marketplace.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/scripts/tests/codex_plugin_marketplace.test.js b/tools/scripts/tests/codex_plugin_marketplace.test.js index f08f2c40..b024b24f 100644 --- a/tools/scripts/tests/codex_plugin_marketplace.test.js +++ b/tools/scripts/tests/codex_plugin_marketplace.test.js @@ -7,10 +7,12 @@ const projectRoot = findProjectRoot(__dirname); const marketplacePath = path.join(projectRoot, ".agents", "plugins", "marketplace.json"); const editorialBundlesPath = path.join(projectRoot, "data", "editorial-bundles.json"); const compatibilityPath = path.join(projectRoot, "data", "plugin-compatibility.json"); +const packageJsonPath = path.join(projectRoot, "package.json"); const marketplace = JSON.parse(fs.readFileSync(marketplacePath, "utf8")); const editorialBundles = JSON.parse(fs.readFileSync(editorialBundlesPath, "utf8")).bundles || []; const compatibility = JSON.parse(fs.readFileSync(compatibilityPath, "utf8")).skills || []; const compatibilityById = new Map(compatibility.map((skill) => [skill.id, skill])); +const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8")); assert.strictEqual( marketplace.name, @@ -61,7 +63,7 @@ const pluginManifestPath = path.join(pluginRoot, ".codex-plugin", "plugin.json") const pluginManifest = JSON.parse(fs.readFileSync(pluginManifestPath, "utf8")); assert.strictEqual(pluginManifest.name, "antigravity-awesome-skills"); -assert.strictEqual(pluginManifest.version, "8.10.0"); +assert.strictEqual(pluginManifest.version, packageJson.version); assert.strictEqual(pluginManifest.skills, "./skills/"); const pluginSkillsPath = path.join(pluginRoot, "skills");