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
+20
View File
@@ -0,0 +1,20 @@
{
"name": "eapil-skill-market",
"interface": {
"displayName": "EAPIL Skill Market"
},
"plugins": [
{
"name": "eapil-skills",
"source": {
"source": "local",
"path": "./plugins/codex/plugins/eapil-skills"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Developer Tools"
}
]
}
+18 -3
View File
@@ -8,21 +8,35 @@ In **Add plugin marketplace**:
- Source: `https://git.playones.com/arechen/EapilSkillMarket.git` - Source: `https://git.playones.com/arechen/EapilSkillMarket.git`
- Git ref: `main` - Git ref: `main`
- Sparse path: `plugins/codex` - Sparse path: leave empty
After the marketplace is added, install `eapil-skills` from the `EAPIL Skill Market` marketplace. After the marketplace is added, install `eapil-skills` from the `EAPIL Skill Market` marketplace.
If you want to use sparse checkout, enter both paths if the UI allows multiple lines:
```text
.agents
plugins/codex
```
## CLI test ## CLI test
```powershell ```powershell
codex plugin marketplace add https://git.playones.com/arechen/EapilSkillMarket.git --ref main --sparse plugins/codex codex plugin marketplace add https://git.playones.com/arechen/EapilSkillMarket.git --ref main
codex plugin add eapil-skills@eapil-skill-market
```
Sparse CLI form:
```powershell
codex plugin marketplace add https://git.playones.com/arechen/EapilSkillMarket.git --ref main --sparse .agents --sparse plugins/codex
codex plugin add eapil-skills@eapil-skill-market codex plugin add eapil-skills@eapil-skill-market
``` ```
For local testing before pushing: For local testing before pushing:
```powershell ```powershell
codex plugin marketplace add .\plugins\codex codex plugin marketplace add .
codex plugin add eapil-skills@eapil-skill-market codex plugin add eapil-skills@eapil-skill-market
``` ```
@@ -31,6 +45,7 @@ Start a new Codex thread after installing so the new skills are loaded into cont
## Layout ## Layout
```text ```text
.agents/plugins/marketplace.json
plugins/codex/ plugins/codex/
.agents/plugins/marketplace.json .agents/plugins/marketplace.json
plugins/eapil-skills/ plugins/eapil-skills/
+4 -4
View File
@@ -1,9 +1,9 @@
# Codex Marketplace Root # Codex Marketplace Root
Use this directory as the Git sparse path for Codex: This directory can be used as a local marketplace root:
```text ```powershell
plugins/codex 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.