Skip to content

feat: add Codex marketplace catalog at .agents/plugins/ (#1) - #6

Merged
tyunta merged 1 commit into
mainfrom
fix/split-marketplace-codex-agents-path
May 16, 2026
Merged

tyunta merged 1 commit into
mainfrom
fix/split-marketplace-codex-agents-path

Conversation

@tyunta

@tyunta tyunta commented May 16, 2026

Copy link
Copy Markdown
Owner

背景

issue #1 の Codex 経路。codex plugin marketplace add は成功するが、Codex の install 候補にプラグインが出ない。

根本原因

Codex CLI は、リポジトリルートに解決される plugin source path を拒否する(openai/codex#17066、OPEN・複数ユーザーが再現)。本プラグインはリポジトリルートに置かれているため、.claude-plugin/marketplace.json の "./" source では Codex が marketplace 全体を skip し、プラグインが一覧に出ない。

Claude Code 側は "./" で install 成功済み(経路が異なる — marketplace add <repo> の生 GitHub 経路)。

修正

Codex の canonical な repo-scoped パス .agents/plugins/marketplace.json に2つ目のカタログを追加。source は url(https:// でリポジトリを clone し、その clone ルート = プラグインルート)→ #17066 を回避。

  • .claude-plugin/marketplace.json — Claude Code 用、source: "./"(変更なし、確認済み)
  • .agents/plugins/marketplace.json — Codex 用(新設)、source: url
  • 2カタログは plugins[0].source 以外は同一。test_catalogs_differ_only_in_plugin_source が drift を検出。

検証

  • 全テストスイート: 2276 passed, 8 skipped, 0 failed。
  • 両カタログの JSON 妥当性と「source 以外同一」を確認。
  • Codex 実 install は merge 後、Codex で marketplace を remove → add し直して install 候補を確認(要ユーザー検証)。

Refs #1

🤖 Generated with Claude Code

Codex CLI rejects a plugin source path that resolves to the repository
root (openai/codex#17066): with the plugin at the repo root, the `"./"`
source makes Codex skip the whole marketplace, so the plugin never
appears in Codex's install list.

Ship a second catalog on Codex's canonical repo-scoped path,
`.agents/plugins/marketplace.json`, with a `url` source that fetches
the repo as an `https://` clone whose root is the plugin root —
sidestepping #17066. The Claude Code catalog keeps the relative-path
`"./"` source (verified install) at `.claude-plugin/marketplace.json`.

The two catalogs are identical except `plugins[0].source`;
test_catalogs_differ_only_in_plugin_source guards against drift.

Refs #1

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tyunta
tyunta merged commit e7bb5d9 into main May 16, 2026
4 checks passed
@tyunta
tyunta deleted the fix/split-marketplace-codex-agents-path branch May 16, 2026 22:10
tyunta added a commit that referenced this pull request May 18, 2026
…/ source-text purification / mutmut config / add-component diagnostics (#35)

Resolves #3, resolves #4, resolves #5, resolves #6, resolves #22, resolves #23, resolves #27, resolves #28, resolves #29.

- #3: package-private cross-module functions made public (rename + `__all__`).
- #4: `Diagnostic` gains optional per-item `severity`; `_diagnostic_to_wire` prefers it over the envelope severity.
- #5: C# comment stripping centralized in `_read`, applied to all 4 source-text test files.
- #6: Tier3 = structural-invariant-only definition recorded in TESTING.md (README is router-only, has no §14); CLAUDE.md inventory needed no change.
- #22: stale `ConsoleLogEntry.phase` doc comment repointed to `ConsoleLogPhaseClassifier.Classify`.
- #23: §5 count anchor clarified (85 unchanged); §4.2 stale line refs already removed by the H-3 rewrite.
- #27: Approach 1 — all 3 silent-discard cases in add-component initial-property loop now emit diagnostics; severity escalates to `warning`.
- #28: `do_not_mutate = []` — the construct-style globs were inert under mutmut 3.5.0 (file-path fnmatch).
- #29: single-module mutmut command fixed to the dotted-name glob form.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant