Support remote marketplaces in the plugin CLI (#42150)

## What changed

- Include remote catalog entries in `codex plugin list`, including their source,
  version, install policy, and authentication policy in JSON output.
- Support adding and removing remote plugins through the existing plugin CLI.
- Cache remote catalogs by scope and collection. Prefer fresh cached results, and
  refetch once when an add request misses a plugin in the cache.
- Preserve the local curated catalog when an unfiltered remote listing fails,
  while surfacing errors for explicitly selected remote marketplaces.

## Testing

- Cover remote listing, installation, removal, catalog fallback, cache refresh,
  collection isolation, and install failure behavior.

GitOrigin-RevId: 09796b2c393d102e00ba9289f784d78a2e166a54
This commit is contained in:
willwang-openai
2026-09-01 22:51:14 +00:00
committed by copyberry
parent 68c9556cdf
commit 6b59cefcbb
9 changed files with 1373 additions and 132 deletions
+2
View File
@@ -2469,6 +2469,7 @@ dependencies = [
"codex-utils-path",
"codex-windows-sandbox",
"crossterm",
"flate2",
"futures",
"http 1.4.0",
"insta",
@@ -2483,6 +2484,7 @@ dependencies = [
"sqlx",
"supports-color 3.0.2",
"sys-locale",
"tar",
"tempfile",
"tokio",
"tokio-tungstenite",