Expand description
Configuration loading and agent registry initialization.
This module handles:
- Loading configuration from the unified config file (~/.config/ralph-workflow.toml)
- Applying environment variable and CLI overrides
- Selecting default agents from fallback chains
- Loading agent registry data from unified config
- Fetching and caching OpenCode API catalog for dynamic provider/model resolution
§Dependency Injection
The initialize_config_with function accepts both a CatalogLoader and a
ConfigEnvironment for full dependency injection. This enables testing without
network calls or environment variable dependencies.
Structs§
- Config
Init Result - Result of configuration initialization.
Functions§
- initialize_
config - Initializes configuration and agent registry.
- initialize_
config_ with - Initializes configuration and agent registry with full dependency injection.