23namespace entropic::config {
45 const std::filesystem::path& global_path,
46 const std::filesystem::path& project_path,
47 const BundledModels& registry,
48 ParsedConfig& config);
70 const std::filesystem::path& project_dir,
71 const std::filesystem::path& consumer_defaults,
72 const BundledModels& registry,
73 ParsedConfig& config);
90 const std::filesystem::path& path,
91 const BundledModels& registry,
92 ParsedConfig& config);
110 const std::filesystem::path& path,
111 const BundledModels& registry,
112 ParsedConfig& config);
139ENTROPIC_EXPORT std::filesystem::path
resolve_data_dir(
const ParsedConfig& config);
157 const std::string& content,
158 const BundledModels& registry,
159 ParsedConfig& config);
Bundled model registry — resolves keys to filesystem paths.
Configuration structs with defaults.
Symbol visibility macro for all exported symbols.
ENTROPIC_EXPORT std::string load_config(const std::filesystem::path &global_path, const std::filesystem::path &project_path, const BundledModels ®istry, ParsedConfig &config)
Load config using layered resolution.
ENTROPIC_EXPORT std::string load_config_from_string(const std::string &content, const BundledModels ®istry, ParsedConfig &config)
Load config from a YAML/JSON string (no layering).
ENTROPIC_EXPORT std::filesystem::path resolve_data_dir(const ParsedConfig &config)
Resolve the bundled data directory.
ENTROPIC_EXPORT std::string parse_config_file(const std::filesystem::path &path, const BundledModels ®istry, ParsedConfig &config)
Parse a config YAML file and overlay onto existing config.
ENTROPIC_EXPORT void apply_env_overrides(ParsedConfig &config)
Apply ENTROPIC_* environment variable overrides.
ENTROPIC_EXPORT std::string load_config_from_file(const std::filesystem::path &path, const BundledModels ®istry, ParsedConfig &config)
Load config from a single YAML file (no layering).
ENTROPIC_EXPORT std::string load_layered(const std::filesystem::path &project_dir, const std::filesystem::path &consumer_defaults, const BundledModels ®istry, ParsedConfig &config)
Load config with consumer defaults + global + project layers.