Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(providers): add codex_cli to the server provider catalog (#1530) (#1953)
Nehal kanak kuniyil thottathilc3f9d29570e0
diff --git a/packages/server/src/repowise/server/provider_config.py b/packages/server/src/repowise/server/provider_config.pyindex b3141b181..0d10478ea 100644--- a/packages/server/src/repowise/server/provider_config.py+++ b/packages/server/src/repowise/server/provider_config.py@@ -141,6 +141,20 @@ PROVIDER_CATALOG: list[dict[str, Any]] = ["env_keys": [],"requires_key": False,},+ {+ "id": "codex_cli",+ "name": "Codex (Local CLI)",+ "default_model": "codex_cli/default",+ "models": [+ # The CLI's model list comes from the authenticated codex catalog+ # at runtime (see core/providers/llm/codex_cli.py), so the static+ # catalog only names the sentinel default; list_provider_status+ # appends the resolved active model when it isn't cataloged.+ "codex_cli/default",+ ],+ "env_keys": [],+ "requires_key": False,+ },{"id": "opencode","name": "OpenCode (Local CLI)",diff --git a/tests/unit/test_providers/test_provider_env_registry.py b/tests/unit/test_providers/test_provider_env_registry.pyindex 942561aa2..d77a68ccb 100644--- a/tests/unit/test_providers/test_provider_env_registry.py+++ b/tests/unit/test_providers/test_provider_env_registry.py@@ -105,8 +105,19 @@ def test_every_provider_that_can_be_auto_detected_is_in_the_order():def test_server_provider_catalog_agrees_with_the_registry():+ from repowise.core.providers.llm.registry import _BUILTIN_PROVIDERSfrom repowise.server.provider_config import PROVIDER_CATALOG+ catalog_ids = {entry["id"] for entry in PROVIDER_CATALOG}+ # Every provider the CLI can resolve must appear in the server catalog so+ # the web dashboard's provider picker never silently disagrees with what+ # the CLI can resolve. `mock` is the one deliberate exception — it is a+ # test/fallback provider, not something a user should pick in the UI.+ missing = set(_BUILTIN_PROVIDERS) - catalog_ids - {"mock"}+ assert not missing, (+ f"server/provider_config.py is missing catalog entries for: {sorted(missing)}"+ )+mismatched = {entry["id"]: (entry["env_keys"], list(PROVIDER_API_KEY_ENVS[entry["id"]]))for entry in PROVIDER_CATALOG