//! External code discovery and indexing for the Common Agent Runtime.
//!
//! Split out from `car-agents` to keep the LLM-wrapper agents lean:
//! `car-search` owns HTTP, filesystem walkers, GitHub API clients, and
//! AST-driven persistence. `car-agents` stays as thin inference shims.
//!
//! Components:
//! - `reference_miner` — search for analogous code across external repos
//!   via GitHub, local clones, or composed sources, with optional LLM
//!   relevance scoring.
//! - `indexer` — persist mined references into the Foreign partition of a
//!   memory graph for cross-repo retrieval.

pub mod indexer;
pub mod reference_miner;

pub use indexer::{IndexReport, Indexer};
pub use reference_miner::{
    CodeReference, MiningError, MiningFilters, MiningQuery, MiningScope, ReferenceMiner,
};
