vineguard-mcp-server-standalone
Version:
VineGuard MCP Server v2.1 - Intelligent QA Workflow System with advanced test generation for Jest/RTL, Cypress, and Playwright. Features smart project analysis, progressive testing strategies, and comprehensive quality patterns for React/Vue/Angular proje
84 lines • 2.56 kB
TypeScript
/**
* Workflow detection for projects with/without tests
* Provides smart recommendations and step-by-step guidance
*/
import { ProjectStructure } from './test-organization.js';
export interface WorkflowRecommendation {
phase: 'discovery' | 'foundation' | 'coverage' | 'quality' | 'optimization';
priority: 'critical' | 'high' | 'medium' | 'low';
action: string;
description: string;
estimatedTime: string;
tools: string[];
nextSteps: string[];
}
export interface ProjectAnalysis {
projectType: 'greenfield' | 'brownfield' | 'legacy';
hasTests: boolean;
testCoverage: number;
testQuality: 'excellent' | 'good' | 'fair' | 'poor' | 'none';
frameworks: string[];
architecture: 'monolith' | 'microservices' | 'microfrontends' | 'unknown';
complexity: 'low' | 'medium' | 'high';
recommendations: WorkflowRecommendation[];
nextPhase: string;
}
export declare class WorkflowDetector {
private projectRoot;
private testOrganizer;
constructor(projectRoot: string);
/**
* Analyze project and generate workflow recommendations
*/
analyzeProject(): Promise<ProjectAnalysis>;
/**
* Generate step-by-step workflow for greenfield projects (no tests)
*/
generateGreenfieldWorkflow(): Promise<WorkflowRecommendation[]>;
/**
* Generate step-by-step workflow for brownfield projects (has some tests)
*/
generateBrownfieldWorkflow(structure: ProjectStructure): Promise<WorkflowRecommendation[]>;
/**
* Determine project type based on test structure
*/
private determineProjectType;
/**
* Estimate test coverage percentage
*/
private estimateTestCoverage;
/**
* Assess the quality of existing tests
*/
private assessTestQuality;
/**
* Detect frontend frameworks and libraries
*/
private detectFrameworks;
/**
* Detect project architecture
*/
private detectArchitecture;
/**
* Assess project complexity
*/
private assessComplexity;
/**
* Generate recommendations based on analysis
*/
private generateRecommendations;
/**
* Determine the next phase to focus on
*/
private determineNextPhase;
private countSourceFiles;
private hasTestingLibrary;
private hasFile;
private hasDirectory;
private hasPackageWorkspaces;
private hasComplexFrameworks;
private hasDatabaseIntegration;
private hasAuthentication;
private findFiles;
}
//# sourceMappingURL=workflow-detector.d.ts.map