concept-analyzer 0.1.1

A unified pipeline that analyzes code repositories and extracts first-principles instructions for AI agents
Documentation
//! Concept Analyzer Library
//!
//! This crate provides tools for analyzing code repositories to extract high-level concepts,
//! identify relationships between them, and build a conceptual map of the entire ecosystem.

pub mod analyze_relationships;
pub mod concept_registry;
pub mod file_collector;
pub mod identify_abstractions;
pub mod llm_client;
// pub mod github_integration; // Commented out due to missing dependencies
pub mod api;
pub mod genetic_engine;
pub mod genetic_github;
pub mod genetic_integration;
pub mod knowledge_integration;
pub mod unified_pipeline;

// Re-export key types for easier usage
pub use analyze_relationships::{Relationship, RelationshipAnalyzer};
pub use concept_registry::{ConceptRegistry, Gap};
pub use file_collector::{BatchFileCollector, FileCollection, FileData};
pub use identify_abstractions::{Abstraction, AbstractionIdentifier};
pub use llm_client::LLMClient;
// pub use github_integration::{GithubClient, RepoSearchResult, RepositoryCompatibility};
pub use knowledge_integration::{KnowledgeEntity, KnowledgeIntegration, KnowledgeStore};

// Re-export old genetic integration types for backward compatibility
pub use genetic_integration::{
    GeneticAlgorithm, GeneticParameters as OldGeneticParameters, SolutionCandidate,
};

// Re-export new genetic engine types
pub use genetic_engine::{
    AsyncFitnessFunction, AsyncGeneticEngine, FitnessFunction, GeneticConstraint,
    GeneticParameters, GeneticSolution, Genome, SelectionMethod, TextGenome,
};

// Re-export GitHub genetic integration
pub use genetic_github::{
    RepositoryFitnessFunction, RepositoryGenome, RepositorySelectionEngine,
    RepositorySolutionProcessor,
};

// Re-export unified pipeline for single-call analysis
pub use unified_pipeline::{
    analyze_repository, ConceptRelation, CriticalGap, EssentialConcept, FirstPrinciplesOutput,
    RebuildStep, UnifiedAnalysisPipeline,
};

// Re-export API functionality
#[cfg(feature = "api")]
pub use api::create_api_router;
pub use api::{run_cli_analysis, AnalyzeRequest, AnalyzeResponse};