UNPKG

supa-seed

Version:

A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support

110 lines 3.13 kB
/** * Main Domain Detection Engine for Epic 2: Smart Platform Detection Engine * Multi-domain detection with confidence scoring and evidence collection * Part of Task 2.2.3: Implement main domain detector with multi-domain support */ import { DomainDetectionResult, DomainDetectionConfig, DomainAnalysisContext } from './detection-types'; /** * Main Domain Detection Engine * Orchestrates comprehensive domain detection with multi-domain support */ export declare class DomainDetectionEngine { private patternOrchestrator; private detectionCache; constructor(); /** * Detect content domain from database schema analysis */ detectDomain(context: DomainAnalysisContext, config?: Partial<DomainDetectionConfig>): Promise<DomainDetectionResult>; /** * Execute detection based on configured strategy */ private executeDetectionStrategy; /** * Comprehensive detection strategy - thorough analysis of all domains */ private comprehensiveDetection; /** * Fast detection strategy - quick analysis focusing on distinctive patterns */ private fastDetection; /** * Conservative detection strategy - high precision, may default to generic */ private conservativeDetection; /** * Aggressive detection strategy - favor definitive classifications with boosted confidence */ private aggressiveDetection; /** * Determine secondary domains with confidence thresholds */ private determineSecondaryDomains; /** * Collect all evidence from analysis results */ private collectAllEvidence; /** * Collect only high-confidence evidence */ private collectHighConfidenceEvidence; /** * Detect hybrid domain capabilities */ private detectHybridCapabilities; /** * Generate comprehensive reasoning */ private generateComprehensiveReasoning; /** * Generate warnings based on analysis */ private generateWarnings; /** * Handle manual domain override */ private handleManualOverride; /** * Create fallback result when detection fails */ private createFallbackResult; /** * Get confidence level from confidence score */ private getConfidenceLevel; /** * Merge config with defaults */ private mergeWithDefaults; /** * Cache management methods */ private getCachedResult; private cacheResult; private generateCacheKey; private generateSchemaHash; /** * Clear detection cache */ clearCache(): void; /** * Get cache statistics */ getCacheStats(): { size: number; entries: string[]; }; /** * Extract detected features from domain evidence */ private extractDomainFeatures; /** * Generate domain-specific recommendations */ private generateDomainRecommendations; } /** * Default domain detection configuration */ export declare const DEFAULT_DOMAIN_DETECTION_CONFIG: DomainDetectionConfig; //# sourceMappingURL=domain-detector.d.ts.map