[codex] Support npm marketplace plugin sources#29375
Closed
charlesgong-openai wants to merge 4 commits into
Closed
[codex] Support npm marketplace plugin sources#29375charlesgong-openai wants to merge 4 commits into
charlesgong-openai wants to merge 4 commits into
Conversation
This was referenced Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Marketplace source deserialization treated
{"source":"npm",...}as unsupported. The loader logged and skipped the entry, so npm-backed plugins never appeared inplugin list --availableandplugin addreturned “plugin not found”.The initial npm materialization path also needed a stricter supply-chain boundary: npm package specs can refer to local directories, tarball URLs, Git URLs, or aliases, and
npm installresolves an unnecessary dependency graph for plugin packages.What changed
npmmarketplace plugin sources withpackage, an exact semverversion, optional HTTPSregistry, and requiredsha512integrity.npm pack --ignore-scriptsinstead ofnpm install, so Codex fetches only the requested package tarball rather than its dependency graph.package.jsonname/version before installing.PluginSource, regenerated schema fixtures, and app-server documentation in sync.Impact
Marketplaces can distribute Codex plugins from public or configured private HTTPS npm registries while pinning the exact artifact that Codex installs. Marketplace authors must provide an exact version and the package tarball's
sha512integrity value.Fixes #27831
Validation
just write-app-server-schemajust test -p codex-app-server-protocol(245 passed)just test -p codex-cli(288 passed)just test -p codex-core-plugins(265 passed; one unrelated existing failure from home fixture skills contaminatingskills_service_reuses_skills_parsed_during_plugin_load)just bazel-lock-check