tokmd_analysis/lib.rs
1//! # tokmd-analysis
2//!
3//! **Tier 3 (Orchestration)**
4//!
5//! Analysis logic and optional enrichers for tokmd receipts. Computes derived
6//! metrics and orchestrates optional analysis modules based on presets.
7//!
8//! ## What belongs here
9//! * Analysis orchestration and module coordination
10//! * Derived metric computation
11//! * Preset-based feature inclusion
12//! * Enricher orchestration and adapters (delegated to microcrates)
13//!
14//! ## What does NOT belong here
15//! * Output formatting (use tokmd-analysis-format)
16//! * CLI argument parsing
17//! * File modification
18
19mod analysis;
20#[cfg(feature = "git")]
21mod churn;
22#[cfg(feature = "content")]
23mod content;
24mod derived;
25#[cfg(feature = "git")]
26mod git;
27mod util;
28
29pub use analysis::{AnalysisContext, AnalysisPreset, AnalysisRequest, ImportGranularity, analyze};
30pub use tokmd_analysis_types::NearDupScope;
31pub use tokmd_analysis_util::AnalysisLimits;
32pub use util::normalize_root;