Skip to content

Commit 4257c09

Browse files
committed
fix(codex): point marketplace plugin path at repo root
1 parent 23d743b commit 4257c09

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.agents/plugins/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "everything-claude-code",
99
"source": {
1010
"source": "local",
11-
"path": "./.agents/plugins/everything-claude-code"
11+
"path": "../.."
1212
},
1313
"policy": {
1414
"installation": "AVAILABLE",

tests/plugin-manifest.test.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,29 @@ test('marketplace.json plugin entries have required fields', () => {
213213
}
214214
});
215215

216+
test('marketplace local plugin path resolves to the repo-root Codex bundle', () => {
217+
for (const plugin of marketplace.plugins) {
218+
if (!plugin.source || plugin.source.source !== 'local') {
219+
continue;
220+
}
221+
222+
const resolvedRoot = path.resolve(path.dirname(marketplacePath), plugin.source.path);
223+
assert.strictEqual(
224+
resolvedRoot,
225+
repoRoot,
226+
`Expected local marketplace path to resolve to repo root, got: ${plugin.source.path}`,
227+
);
228+
assert.ok(
229+
fs.existsSync(path.join(resolvedRoot, '.codex-plugin', 'plugin.json')),
230+
`Codex plugin manifest missing under resolved marketplace root: ${plugin.source.path}`,
231+
);
232+
assert.ok(
233+
fs.existsSync(path.join(resolvedRoot, '.mcp.json')),
234+
`Root MCP config missing under resolved marketplace root: ${plugin.source.path}`,
235+
);
236+
}
237+
});
238+
216239
// ── Summary ───────────────────────────────────────────────────────────────────
217240
console.log(`\nPassed: ${passed}`);
218241
console.log(`Failed: ${failed}`);

0 commit comments

Comments
 (0)