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(init): read embedder and local provider names from the registry in the finish panel and plan screen (#4270)
Raghav Chamadiya9d83163158ce
diff --git a/packages/cli/src/repowise/cli/ui/finish_panel.py b/packages/cli/src/repowise/cli/ui/finish_panel.pyindex 12a5eee33..791ff2009 100644--- a/packages/cli/src/repowise/cli/ui/finish_panel.py+++ b/packages/cli/src/repowise/cli/ui/finish_panel.py@@ -189,19 +189,20 @@ def _search_lines(facts: FinishFacts) -> list[RenderableType]:]-#: Display names for hosted embedders; an unlisted one is shown as written.-_HOSTED_EMBEDDERS = {"openai": "OpenAI", "gemini": "Gemini", "openrouter": "OpenRouter"}--def _embed_cost(command: str) -> str:"""Who pays for the embedder the command names; Ollama is the keyless option."""+ from repowise.cli.providers import is_free_embedder+ from repowise.core.providers.llm.specs import PROVIDER_SPECS+args = command.split()name = args[args.index("--embedder") + 1] if "--embedder" in args[:-1] else Noneif name is None:return "Ollama needs no key"- if name == "ollama":+ if is_free_embedder(name):return "runs locally with Ollama, no key"- return f"uses your {_HOSTED_EMBEDDERS.get(name, name)} key"+ # Hosted embedders share their provider's name, so its catalog label names the key.+ spec = PROVIDER_SPECS.get(name)+ return f"uses your {spec.label if spec else name} key"def _footer(diff --git a/packages/cli/src/repowise/cli/ui/plan_screen/state.py b/packages/cli/src/repowise/cli/ui/plan_screen/state.pyindex 907282194..d7571e5a8 100644--- a/packages/cli/src/repowise/cli/ui/plan_screen/state.py+++ b/packages/cli/src/repowise/cli/ui/plan_screen/state.py@@ -135,8 +135,11 @@ def _found_phrase(provider: str, how: str) -> str:if agent is not None:label = agent.display_name.removesuffix(" CLI")return f"{label} is logged in" if agent.login_check else f"{label} is installed"- if provider == "ollama":- return f"Ollama is running at {how}"+ from repowise.core.providers.llm.specs import PROVIDER_SPECS++ spec = PROVIDER_SPECS.get(provider)+ if spec is not None and spec.local:+ return f"{spec.label.removesuffix(' (Local)')} is running at {how}"return f"{how} found" if how else f"{provider} is set up"