import { ToolRegistration } from '../../core/types.js';
import { setupErrorAnalysisTools } from './tools.js';

/**
 * Error Analysis Module - 12-Factor MCP Implementation
 * 
 * This module replaces the legacy error-analysis implementation
 * with a 12-factor compliant version that uses:
 * 
 * - Standardized tool interface
 * - SQLite-based data storage
 * - Schema validation
 * - Structured outputs
 * - Stateless execution
 * - Comprehensive error tracking and analysis
 */

/**
 * Setup the error analysis module
 */
export async function setupErrorAnalysis(): Promise<ToolRegistration> {
  return await setupErrorAnalysisTools();
}

// Export for backward compatibility
export { setupErrorAnalysisTools } from './tools.js';