export * from './types/index.js';
export { analyzeProject } from './analyzers/index.js';
export { generateClaudeMd } from './generators/claude-md.js';
export * from './coordination/index.js';
export * from './tasks/index.js';
// Multi-Model Architecture (explicit exports to avoid conflicts with types)
export { ModelRouter, createRouter, createCostOptimizedRouter, createPerformanceRouter, TaskPlanner, createPlanner, TaskExecutor, createExecutor, MockModelClient, ModelPresets, DEFAULT_ROUTING_RULES, } from './models/index.js';
// Memory system exports
/**
 * Get the embedding service for generating vector embeddings
 * @returns EmbeddingService instance
 */
export { getEmbeddingService, generateEmbedding, generateEmbeddings } from './memory/embeddings.js';
/**
 * Classify tasks into categories and extract entities for memory queries
 * @param task - Task description to classify
 * @returns Task classification with suggested memory queries
 */
export { classifyTask, extractTaskEntities, getSuggestedMemoryQueries, } from './memory/task-classifier.js';
/**
 * Retrieve dynamic memory context based on query complexity
 * @param query - User query for context retrieval
 * @returns Dynamic memory context with retrieved memories
 */
export { retrieveDynamicMemoryContext, measureQueryComplexity, getRetrievalDepth, } from './memory/dynamic-retrieval.js';
// Semantic compression
export { extractAtomicFacts, createSemanticUnit, compressToSemanticUnits, serializeSemanticUnit, } from './memory/semantic-compression.js';
// Ollama embedding support
export { OllamaEmbeddingProvider } from './memory/embeddings.js';
// New optimization modules
export { compressMemoryEntry, compressMemoryBatch, summarizeMemories, estimateTokens, ContextBudget, } from './memory/context-compressor.js';
export { HierarchicalMemoryManager, getHierarchicalMemoryManager, calculateEffectiveImportance, persistToSQLite, loadFromSQLite, saveHierarchicalMemory, } from './memory/hierarchical-memory.js';
export { SpeculativeCache, getSpeculativeCache, initializeCacheFromDb, autoWarmCache, } from './memory/speculative-cache.js';
export { MemoryConsolidator, getMemoryConsolidator } from './memory/memory-consolidator.js';
// Serverless Qdrant
export { ServerlessQdrantManager, getServerlessQdrantManager, initServerlessQdrant, } from './memory/serverless-qdrant.js';
// Multi-view memory removed — was export-only with zero internal consumers
// Entropy-aware compression
export { calculateEntropy, calculateInformationDensity } from './memory/semantic-compression.js';
// Write Gate - quality filter for memory writes
export { evaluateWriteGate, formatGateResult } from './memory/write-gate.js';
// Daily Log - staging area for memory writes
export { DailyLog, ensureDailyLogSchema } from './memory/daily-log.js';
// Correction Propagation
export { propagateCorrection, getSupersededHistory, ensureSupersededSchema, } from './memory/correction-propagator.js';
// Memory Maintenance
export { runMaintenance, getHealthSummary } from './memory/memory-maintenance.js';
// Agent-scoped memory removed — was export-only with zero internal consumers
// String similarity utilities
export { jaccardSimilarity, contentHash, cosineSimilarity, estimateTokensAccurate, simpleStem, fuzzyKeywordMatch, textSimilarity, } from './utils/string-similarity.js';
// Worktree guard utilities
export { isPathInsideWorktree, isExemptFromWorktree } from './cli/worktree.js';
// Model router with feedback loop (memory-layer)
export { routeTask as routeTaskToModel, recordTaskOutcome, explainRouting, getFailureHandler as getModelFailureHandler, getModelFingerprint, getAllModelFingerprints, updateModelFingerprint, ModelRouter as MemoryModelRouter, } from './memory/model-router.js';
// Adaptive context system (OPTIMIZATION 7 + v1.9.0 10 Optimizations)
export { HybridAdaptiveContext, decideContextLevel, generateContext, assessTimePressure, getHistoricalBenefit, recordOutcome as recordAdaptiveOutcome, selectRelevantSections, getProgressiveContextLevels, exportConfigForPython, 
// OPT 9: Multi-category classification
classifyTaskMultiCategory, 
// OPT 7: Error-to-section mapping
getSectionsForError, 
// OPT 6: Task-type patterns
getRelevantPatterns, 
// OPT 10: Semantic caching
lookupSemanticCache, storeSemanticCache, 
// OPT 8: Model fingerprint integration
getModelFingerprintForTask, 
// Cleanup
closeHistoricalDb, } from './memory/adaptive-context.js';
// Terminal-Bench domain knowledge
export { getRelevantKnowledge, formatKnowledgeForContext, recordKnowledgeOutcome, TERMINAL_BENCH_KNOWLEDGE, } from './memory/terminal-bench-knowledge.js';
// MCP Router - Lightweight hierarchical router for 98%+ token reduction
export { McpRouter, runStdioServer, loadConfigFromPaths, loadConfigFromFile, mergeConfigs, ToolSearchIndex, McpClient, McpClientPool, DISCOVER_TOOLS_DEFINITION, EXECUTE_TOOL_DEFINITION, handleDiscoverTools, handleExecuteTool, estimateDiscoverToolsTokens, estimateExecuteToolTokens, } from './mcp-router/index.js';
// Telemetry
export * from './telemetry/index.js';
// Policy Enforcement
export * from './policies/index.js';
// Browser automation (CloakBrowser wrapper)
export { WebBrowser, createWebBrowser } from './browser/index.js';
// Dashboard (data service + server)
export { getDashboardData, startDashboardServer } from './dashboard/index.js';
// Predictive Memory (prefetch + learning)
export { PredictiveMemoryService, getPredictiveMemoryService } from './memory/predictive-memory.js';
// Context Pruner (token-budget-aware pruning)
export { ContextPruner } from './memory/context-pruner.js';
// Ambiguity Detector (P37 pattern)
export { detectAmbiguity, formatAmbiguityForContext } from './memory/ambiguity-detector.js';
// Models - additional exports not in selective re-export above
export { PlanValidator, createPlanValidator, createUnifiedRouter, getExecutionProfile, detectExecutionProfile, getExecutionConfig, listExecutionProfiles, ModelAnalytics, getModelAnalytics, } from './models/index.js';
// Task Event Bus
export { TaskEventBus, getTaskEventBus } from './tasks/event-bus.js';
// Utility exports (previously dead code, now wired up)
export { AdaptiveCache, createPatternCache } from './utils/adaptive-cache.js';
export { RateLimiter } from './utils/rate-limiter.js';
export { PerformanceMonitor, getPerformanceMonitor, monitorFunction, } from './utils/performance-monitor.js';
export { retry, withTimeout, parallelWithFallback } from './utils/concurrency.js';
export { concurrentMap, concurrentMapSettled } from './utils/concurrency-pool.js';
// Knowledge Graph (L4 memory)
export { KnowledgeGraph } from './memory/knowledge-graph.js';
// Structured Logger
export { createLogger, logger, setLogLevel, getLogLevel } from './utils/logger.js';
// Memory Consolidation (auto-start)
export { autoStartConsolidation } from './memory/memory-consolidator.js';
// Execution Profiles (with config loading)
export { loadAgentExecutionOverrides, getExecutionConfigWithProjectOverrides, } from './models/execution-profiles.js';
// Task feedback loop
export { recordTaskFeedback } from './memory/dynamic-retrieval.js';
//# sourceMappingURL=index.js.map