codenexus 0.3.4

A queryable code knowledge graph tool built on LadybugDB and tree-sitter
// Copyright (c) 2026 Kirky.X. All rights reserved.
// SPDX-License-Identifier: MIT

//! Indexing pipeline (Facade pattern).
//!
//! Orchestrates discover → parse → resolve → storage, computes SHA-256 file
//! hashes for incremental indexing (ADR-009), and exposes [`IndexFacade`] as
//! the single entry point for the indexing workflow.
//!
//! # Modules
//!
//! - [`error`]: [`IndexError`] and [`Result`](error::Result) alias.
//! - [`hash`]: SHA-256 file/content hashing (ADR-009).
//! - [`incremental`]: [`FileDiff`] and [`diff_files`] for incremental indexing
//!   (BR-INDEX-001~003).
//! - [`pipeline`]: [`IndexFacade`] (Facade), [`Pipeline`], [`IndexResult`].
//! - [`pipeline_dag`]: [`Phase`] trait + [`DagPipeline`] runner with Kahn
//!   topological sort (T9 H2, design.md D2).
//! - [`phases`]: 6 typed [`Phase`] implementations (Scan, Parse, ScopeResolution,
//!   Resolve, Confidence, Load) for Task 2.5.

pub mod capability;
pub mod error;
pub mod hash;
pub mod incremental;
pub mod module;
pub mod phases;
pub mod pipeline;
pub mod pipeline_dag;

pub use error::{IndexError, Result};
pub use hash::{compute_content_hash, compute_file_hash};
pub use incremental::{diff_files, FileDiff};
pub use module::{IndexConfig, IndexerModule};
pub use pipeline::{IndexFacade, IndexResult, Pipeline};
pub use pipeline_dag::{Phase, PhaseError, Pipeline as DagPipeline, PipelineCtx};