"""
Core Engine Module

This module provides the core functionality for code graph analysis:
- AST parsing with Tree-sitter
- Graph operations with SQLite backend
- Indexing and incremental updates
- Community detection
- Semantic analysis
- LLM integration
- GraphRAG search

Architecture: Library-First (ADR-001)
"""

from iflow_mcp_nahisaho_codegraph_mcp_server.core.community import Community, CommunityDetector
from iflow_mcp_nahisaho_codegraph_mcp_server.core.graph import GraphEngine, GraphQuery, QueryResult
from iflow_mcp_nahisaho_codegraph_mcp_server.core.graphrag import GraphRAGSearch
from iflow_mcp_nahisaho_codegraph_mcp_server.core.indexer import Indexer, IndexResult
from iflow_mcp_nahisaho_codegraph_mcp_server.core.llm import LLMClient, LLMConfig
from iflow_mcp_nahisaho_codegraph_mcp_server.core.parser import ASTParser, Entity, ParseResult, Relation
from iflow_mcp_nahisaho_codegraph_mcp_server.core.semantic import SemanticAnalyzer


__all__ = [
    # Parser
    "ASTParser",
    "Community",
    # Community
    "CommunityDetector",
    "Entity",
    # Graph
    "GraphEngine",
    "GraphQuery",
    # GraphRAG
    "GraphRAGSearch",
    "IndexResult",
    # Indexer
    "Indexer",
    # LLM
    "LLMClient",
    "LLMConfig",
    "ParseResult",
    "QueryResult",
    "Relation",
    # Semantic
    "SemanticAnalyzer",
]
