pub struct Config {
pub roots: Vec<PathBuf>,
pub aliases: BTreeMap<String, String>,
pub llm_command: String,
pub sessions_dir: PathBuf,
pub max_sessions: usize,
pub max_session_kb: u64,
pub scan_depth: usize,
pub inventory_ttl_secs: u64,
pub contexts: BTreeMap<String, ContextDef>,
}Fields§
§roots: Vec<PathBuf>Directories where git repositories are searched.
aliases: BTreeMap<String, String>Optional per-root label override, keyed by the canonical root path.
llm_command: StringCommand that receives the prompt on stdin and returns the answer on stdout.
sessions_dir: PathBufClaude Code sessions directory.
max_sessions: usizeMaximum number of sessions used in distillation.
max_session_kb: u64KB read from the tail of each session.
scan_depth: usizeMaximum directory depth (from each root) to search for git repositories.
inventory_ttl_secs: u64Seconds before an inventory entry is considered expired regardless of SHA match. 0 (default) means SHA-only validation with no time-based expiry.
contexts: BTreeMap<String, ContextDef>Named query scopes (@name in queries) mapped to filter strings.
Implementations§
Source§impl Config
impl Config
Sourcepub fn context_filter(&self, name: &str) -> Result<&str>
pub fn context_filter(&self, name: &str) -> Result<&str>
Returns the filter string for a named context.
Sourcepub fn resolve_labels(&self) -> Result<Vec<(PathBuf, String)>>
pub fn resolve_labels(&self) -> Result<Vec<(PathBuf, String)>>
Resolves a stable label per root (alias, else basename). Errors when two roots resolve to the same label and no alias disambiguates them.
Sourcepub fn resolve_scan_roots(&self, plan: &ScanPlan) -> Result<Vec<PathBuf>>
pub fn resolve_scan_roots(&self, plan: &ScanPlan) -> Result<Vec<PathBuf>>
Subset of configured roots matching plan.root_filters. Path values are
tilde-expanded and canonicalized, then matched as a prefix against roots
(ADR 0003). Label/path substring match is a fallback for short aliases.
Multiple filters are ANDed (intersection).