Let Codex discover the marketplace from the repository root

Constraint: Codex Git sparse checkout preserves selected paths, so plugins/codex is not treated as the marketplace root by the CLI.\nRejected: Require users to rely on a single plugins/codex sparse path | The CLI leaves the manifest nested and rejects the marketplace root.\nConfidence: high\nScope-risk: narrow\nDirective: Keep the root .agents/plugins/marketplace.json as the primary Git entrypoint.\nTested: python json.tool on both marketplace manifests; validate_plugin.py.\nNot-tested: Remote Git marketplace add after this commit.
This commit is contained in:
AreChen
2026-06-10 14:50:33 +08:00
parent ff37f2ab4c
commit e3136a0c5b
3 changed files with 42 additions and 7 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
# Codex Marketplace Root
Use this directory as the Git sparse path for Codex:
This directory can be used as a local marketplace root:
```text
plugins/codex
```powershell
codex plugin marketplace add .\plugins\codex
```
It contains `.agents/plugins/marketplace.json` and the `plugins/eapil-skills` plugin source expected by Codex.
For Git marketplace testing from the repository root, prefer the root `.agents/plugins/marketplace.json` entry and leave sparse checkout empty.