From 4257c093ca23099ef10d7bff13eda062803d544e Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sat, 28 Mar 2026 20:06:42 -0400 Subject: [PATCH] fix(codex): point marketplace plugin path at repo root --- .agents/plugins/marketplace.json | 2 +- tests/plugin-manifest.test.js | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 635d8442..a1561e41 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -8,7 +8,7 @@ "name": "everything-claude-code", "source": { "source": "local", - "path": "./.agents/plugins/everything-claude-code" + "path": "../.." }, "policy": { "installation": "AVAILABLE", diff --git a/tests/plugin-manifest.test.js b/tests/plugin-manifest.test.js index ea264502..1adad6a1 100644 --- a/tests/plugin-manifest.test.js +++ b/tests/plugin-manifest.test.js @@ -213,6 +213,29 @@ test('marketplace.json plugin entries have required fields', () => { } }); +test('marketplace local plugin path resolves to the repo-root Codex bundle', () => { + for (const plugin of marketplace.plugins) { + if (!plugin.source || plugin.source.source !== 'local') { + continue; + } + + const resolvedRoot = path.resolve(path.dirname(marketplacePath), plugin.source.path); + assert.strictEqual( + resolvedRoot, + repoRoot, + `Expected local marketplace path to resolve to repo root, got: ${plugin.source.path}`, + ); + assert.ok( + fs.existsSync(path.join(resolvedRoot, '.codex-plugin', 'plugin.json')), + `Codex plugin manifest missing under resolved marketplace root: ${plugin.source.path}`, + ); + assert.ok( + fs.existsSync(path.join(resolvedRoot, '.mcp.json')), + `Root MCP config missing under resolved marketplace root: ${plugin.source.path}`, + ); + } +}); + // ── Summary ─────────────────────────────────────────────────────────────────── console.log(`\nPassed: ${passed}`); console.log(`Failed: ${failed}`);