UNPKG

datapilot-cli

Version:

Enterprise-grade streaming multi-format data analysis with comprehensive statistical insights and intelligent relationship detection - supports CSV, JSON, Excel, TSV, Parquet - memory-efficient, cross-platform

204 lines 5.56 kB
#!/usr/bin/env node /** * DataPilot CLI - Main entry point * A lightweight CLI statistical computation engine for comprehensive CSV data analysis */ import { ArgumentParser } from './argument-parser'; import { ProgressReporter } from './progress-reporter'; import { OutputManager } from './output-manager'; import type { CLIResult } from './types'; export declare class DataPilotCLI { private argumentParser; private progressReporter; private outputManager?; private dependencyResolver?; private performanceManager?; private dependencyCache; private errorContext; private sectionErrors; private isInitialized; constructor(); /** * Set progress callback for test purposes */ setProgressCallback(callback: (progress: { message: string; progress: number; }) => void): void; /** * Register section resolvers for dependency injection */ private registerSectionResolvers; /** * Comprehensive input validation with actionable feedback */ private validateInputs; /** * Initialize comprehensive error handling systems */ private initializeErrorHandling; /** * Main CLI execution entry point */ run(argv?: string[]): Promise<CLIResult>; /** * Generic analysis execution method with comprehensive error handling */ private executeGenericAnalysis; /** * Determine if universal analyzer should be used based on file extension */ private shouldUseUniversalAnalyzer; /** * Execute command using universal analyzer for multi-format support */ private executeUniversalCommand; /** * Generate output files for universal analysis results */ private generateUniversalOutput; /** * Format universal analysis report */ private formatUniversalReport; /** * Execute join analysis for multiple files (used by engineering command) */ private executeJoinAnalysisOriginal; /** * Enhanced Engineering Analysis - naturally handles single or multiple files * Single file: Normal Section 5 engineering analysis * Multiple files: Section 5 analysis + simple relationship analysis */ private executeEnhancedEngineering; /** * Extract simple column schemas from multiple files */ private extractSimpleSchemas; /** * Simple relationship detection between files */ private detectSimpleRelationships; /** * Simple column similarity calculation */ private calculateColumnSimilarity; /** * Format simple relationship analysis for output */ private formatSimpleRelationships; /** * Execute dependency analysis and cache results */ private executeDependency; /** * Execute specific CLI command */ private executeCommand; /** * Complete performance monitoring and generate report */ private completePerformanceMonitoring; /** * Format performance report for console output */ private formatPerformanceReport; /** * Execute performance dashboard command */ private executePerformanceDashboard; /** * Execute clear cache command */ private executeClearCache; /** * Execute Section 1 (Overview) analysis */ private executeSection1Analysis; /** * Execute Section 2 (Data Quality) analysis */ private executeSection2Analysis; /** * Execute Section 3 (EDA) analysis */ private executeSection3Analysis; /** * Execute Section 4 (Visualization Intelligence) analysis */ private executeSection4Analysis; /** * Execute full analysis (ALL 6 sections: Section 1 + 2 + 3 + 4 + 5 + 6) */ private executeFullAnalysis; /** * Generate comprehensive JSON structure combining all sections */ private generateComprehensiveJson; /** * Generate comprehensive report combining all sections */ private generateComprehensiveReport; /** * Write content to file with directory creation */ private writeToFile; /** * Format time duration helper */ private formatTime; /** * Execute CSV validation */ private executeValidation; /** * Execute file info display */ private executeInfo; /** * Execute Section 5 (Engineering) analysis */ private executeSection5Analysis; /** * Execute Section 6 (Modeling) analysis */ private executeSection6Analysis; /** * Handle errors with comprehensive reporting and recovery suggestions */ private handleError; /** * Enhanced error propagation between analysis sections */ private executeWithErrorPropagation; /** * Check for errors in dependency results */ private checkDependencyErrors; /** * Execute join analysis command */ private executeJoinAnalysis; /** * Execute discover analysis command */ private executeDiscoverAnalysis; /** * Execute join wizard command */ private executeJoinWizard; /** * Execute join optimization command */ private executeJoinOptimization; /** * Generate optimization report */ private generateOptimizationReport; /** * Create a safe execution wrapper for analysis operations */ private safeExecuteAnalysis; } export { ArgumentParser, ProgressReporter, OutputManager }; //# sourceMappingURL=index.d.ts.map