lean-ctx 3.6.2

Context Runtime for AI Agents with CCP. 51 MCP tools, 10 read modes, 60+ compression patterns, cross-session memory (CCP), persistent AI knowledge with temporal facts + contradiction detection, multi-agent context sharing, LITM-aware positioning, AAAK compact format, adaptive compression with Thompson Sampling bandits. Supports 24+ AI tools. Reduces LLM token consumption by up to 99%.
Documentation
use super::registry::LocalRegistry;

pub fn auto_load_packages(project_root: &str) -> Vec<String> {
    let Ok(registry) = LocalRegistry::open() else {
        return Vec::new();
    };

    let Ok(packages) = registry.auto_load_packages() else {
        return Vec::new();
    };

    let mut loaded = Vec::new();

    for entry in &packages {
        let Ok((manifest, content)) = registry.load_package(&entry.name, &entry.version) else {
            continue;
        };

        if super::loader::load_package(&manifest, &content, project_root).is_ok() {
            loaded.push(format!("{} v{}", entry.name, entry.version));
        }
    }

    loaded
}