23namespace entropic::config {
42 const std::filesystem::path& global_path,
43 const std::filesystem::path& project_path,
44 const BundledModels& registry,
45 ParsedConfig& config);
64 const std::filesystem::path& project_dir,
65 const std::filesystem::path& consumer_defaults,
66 const BundledModels& registry,
67 ParsedConfig& config);
82 const std::filesystem::path& path,
83 const BundledModels& registry,
84 ParsedConfig& config);
99 const std::filesystem::path& path,
100 const BundledModels& registry,
101 ParsedConfig& config);
126ENTROPIC_EXPORT std::filesystem::path
resolve_data_dir(
const ParsedConfig& config);
142 const std::string& content,
143 const BundledModels& registry,
144 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.