mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix(codex): point marketplace plugin path at repo root
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"name": "everything-claude-code",
|
"name": "everything-claude-code",
|
||||||
"source": {
|
"source": {
|
||||||
"source": "local",
|
"source": "local",
|
||||||
"path": "./.agents/plugins/everything-claude-code"
|
"path": "../.."
|
||||||
},
|
},
|
||||||
"policy": {
|
"policy": {
|
||||||
"installation": "AVAILABLE",
|
"installation": "AVAILABLE",
|
||||||
|
|||||||
@@ -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 ───────────────────────────────────────────────────────────────────
|
// ── Summary ───────────────────────────────────────────────────────────────────
|
||||||
console.log(`\nPassed: ${passed}`);
|
console.log(`\nPassed: ${passed}`);
|
||||||
console.log(`Failed: ${failed}`);
|
console.log(`Failed: ${failed}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user