fix(codex): point marketplace plugin path at repo root

This commit is contained in:
Affaan Mustafa
2026-03-28 20:06:42 -04:00
parent 23d743b92c
commit 4257c093ca
2 changed files with 24 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
"name": "everything-claude-code",
"source": {
"source": "local",
"path": "./.agents/plugins/everything-claude-code"
"path": "../.."
},
"policy": {
"installation": "AVAILABLE",

View File

@@ -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}`);