-
Notifications
You must be signed in to change notification settings - Fork 2
config: migrate-config for [[llm.providers]] + startup error on old format #2136
Copy link
Copy link
Closed
Labels
breaking-changeIntroduces breaking changesIntroduces breaking changesconfigConfiguration file changesConfiguration file changesenhancementNew feature or requestNew feature or requestllmzeph-llm crate (Ollama, Claude)zeph-llm crate (Ollama, Claude)
Description
Part of #2134 — Phase 2.
Spec: .local/specs/022-config-simplification/spec.md § Phase 2
Goal
Implement migration tooling and make old-format configs fail loudly.
Tasks
- Add
migrate_llm_to_providers()tocrates/zeph-config/src/migrate.rs- Detects presence of
providerkey (old format) - Converts
[llm.cloud],[llm.openai],[llm.orchestrator],[llm.router]to[[llm.providers]] - Creates
.bakbackup before overwriting
- Detects presence of
- Add detection of old-format keys in
LlmConfigdeserialization → clear error:"legacy [llm.cloud] format removed in v0.17.0 — run: zeph --migrate-config" - Rewrite
config/default.tomlto new format - Update
--initwizard to generate new format
Acceptance
--migrate-configon each.local/config/*.tomlproduces valid new-format TOML- Old-format config prints actionable error on startup
--initproduces new-format config- All tests green
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking-changeIntroduces breaking changesIntroduces breaking changesconfigConfiguration file changesConfiguration file changesenhancementNew feature or requestNew feature or requestllmzeph-llm crate (Ollama, Claude)zeph-llm crate (Ollama, Claude)