Skip to main content

Crate defect_config

Crate defect_config 

Source
Expand description

Configuration loading and merging.

This module consolidates user configuration, project configuration, local project overrides, and CLI overrides into a single strongly-typed configuration object ready for startup.

Structs§

BasePromptConfigFile
BashToolConfig
CapabilitiesConfig
Top-level capability configuration entry point.
CliConfig
CliOverrides
ConfigLayerEntry
ConfigLayerStack
EffectiveConfig
FetchToolConfig
Configuration for the local fetch tool.
FsToolConfig
HookEntry
A single hook configuration: matcher + handler + source layer.
HookMatcher
Event matcher. Empty fields match all triggers under that event; see the hooks trust model.
HookPromptSpec
HooksConfig
Valid configuration for the hook system: pipelines are grouped by step event_name and executed in declaration order within each group.
HttpClientConfig
Typed configuration for the HTTP client stack.
HttpProxyConfig
HttpProxySettings
LangfuseConfig
Langfuse upload configuration.
LoadConfigOptions
LoadedConfig
McpConfig
McpRemoteServerConfig
McpStdioServerConfig
OtlpTracingConfig
ProfileSpec
A parsed subagent profile.
PromptConfigFile
ProviderAwsConfigFile
ProviderCapabilityOverrides
Overrides for global capabilities under a single provider.
ProviderConfigFile
ProviderConfigs
SandboxConfig
SearchToolConfig
Configuration for the local search tool.
SkillSpec
A parsed skill.
ToolsConfig
TracingConfig

Enums§

ConfigError
ConfigSource
ConfigWarning
FetchFormat
HookCommandSpec
HookHandlerSpec
Handler spec — three variants.
HookPromptRender
HookShellKind
HttpProxyMode
LogFormat
Output format for the tracing-subscriber log sink (stderr).
McpServerConfig
ModelEntry
A model candidate configuration declaration.
ProviderKind
ProviderProtocol
ReasoningEffort
Values for the reasoning_effort parameter in the OpenAI-compatible protocol.
SandboxMode
ThinkingFormat
Anthropic Messages thinking wire format for a model.

Functions§

discover_profiles
Discover and parse all available profiles.
discover_skills
Discover and parse all available skills.
find_repo_root
load_config
Loads and merges the effective configuration for defect.
load_dotenv_compat
Reads cwd/.env compatibly, only filling in missing environment variables.
parse_cli_override
Parse a single CLI override in KEY=VALUE form.
user_config_path
Resolve the user-level (global) config.toml path using the same XDG/HOME priority as the loader: $XDG_CONFIG_HOME/defect/config.toml, else $HOME/.config/....

Type Aliases§

AnthropicConfigFile
DeepSeekConfigFile
LiteLlmConfigFile
OpenAiConfigFile