Expand description
CADI Core - Core types and utilities for Content-Addressed Development Interface
This crate provides the fundamental types and utilities used across the CADI ecosystem.
§Modules
chunk- Basic chunk typesmanifest- CADI manifest parsinghash- Content hashing utilitiesatomic- Atomic chunk system with aliasessmart_chunker- Intelligent code analysisgraph- Merkle DAG graph store for dependenciesatomizer- Language-aware AST parsing (Phase 1)rehydration- Virtual view assembly (Phase 2)
§The Graph Store
The graph module provides the core infrastructure for O(1) dependency queries:
ⓘ
use cadi_core::graph::{GraphStore, GraphNode, EdgeType};
let store = GraphStore::open(".cadi/graph")?;
store.insert_node(&node)?;
let deps = store.get_dependencies("chunk:sha256:abc...")?;§The Atomizer
The atomizer module provides language-aware code parsing:
ⓘ
use cadi_core::atomizer::{AtomExtractor, AtomizerConfig};
let extractor = AtomExtractor::new("rust", AtomizerConfig::default());
let atoms = extractor.extract(source)?;§Virtual Views (Rehydration)
The rehydration module assembles atoms into coherent contexts:
ⓘ
use cadi_core::rehydration::{RehydrationEngine, ViewConfig};
let engine = RehydrationEngine::new(graph);
let view = engine.create_view(atom_ids, ViewConfig::default()).await?;§Ghost Import Resolver
The ghost module automatically expands atom context with dependencies:
ⓘ
use cadi_core::ghost::{GhostResolver, ExpansionPolicy};
let resolver = GhostResolver::new(graph);
let result = resolver.resolve(&atom_ids).await?;Re-exports§
pub use chunk::*;pub use manifest::*;pub use hash::*;pub use error::*;pub use atomic::*;pub use smart_chunker::*;pub use project_analyzer::*;
Modules§
- ast
- atomic
- Atomic Chunk System
- atomizer
- Smart Atomizer - Language-aware code parsing
- chunk
- Chunk types and operations
- error
- Error types for CADI
- ghost
- Ghost Import Resolver
- graph
- Merkle DAG Graph Store
- hash
- Hashing utilities for CADI
- manifest
- Manifest types for CADI application build graphs
- parser
- project_
analyzer - Project Analyzer - Whole-project analysis for intelligent chunking
- rehydration
- Rehydration Engine
- smart_
chunker - Smart Chunker - Intelligent code analysis and chunking
- validator