Skip to main content

Module config_init

Module config_init 

Source
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§

ConfigInitResult
Result of configuration initialization.

Functions§

initialize_config
Initializes configuration and agent registry.
initialize_config_with
Initializes configuration and agent registry with full dependency injection.