Skip to main content

soma_config/
lib.rs

1//! Product configuration, environment loading, and env-var registry for soma.
2//!
3//! Split out of `soma-contracts` (plan section 3.18): owns Soma's own
4//! environment variables, `config.toml` shape, defaults, path resolution, and
5//! configuration validation. It does not own engine configuration types
6//! themselves (those stay with the engine crates) or business workflows.
7
8pub mod config;
9pub mod env_registry;
10mod python_environment;
11#[cfg(test)]
12mod python_environment_tests;
13
14pub use config::{
15    AuthConfig, AuthMode, Config, EffectiveRuntimeMode, McpConfig, PythonExecutionProfile,
16    PythonRunnerConfig, PythonRunnerMode, RuntimeMode, SomaConfig, TraceHeaderMode,
17    default_data_dir, load_dotenv,
18};
19pub use python_environment::PythonEnvironmentConfig;