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.19 kB
TypeScript
/**
* Dependency Manager for VineGuard
* Handles automatic installation and configuration of testing dependencies
*/
export interface DependencyInfo {
name: string;
version?: string;
devDependency: boolean;
configFiles?: string[];
framework: 'jest' | 'playwright' | 'cypress' | 'vitest';
}
export interface InstallationResult {
success: boolean;
installed: string[];
failed: string[];
configurations: string[];
errors: string[];
}
export declare class DependencyManager {
private projectRoot;
private packageManager;
constructor(projectRoot: string);
/**
* Detect which package manager is being used
*/
private detectPackageManager;
/**
* Get recommended testing dependencies for different frameworks
*/
static getRecommendedDependencies(): Record<string, DependencyInfo[]>;
/**
* Analyze current project dependencies
*/
analyzeDependencies(): Promise<{
installed: Record<string, {
version: string;
isDev: boolean;
}>;
missing: string[];
projectType: string;
}>;
/**
* Install missing testing dependencies
*/
installMissingDependencies(dependencies: string[], projectType?: string): Promise<InstallationResult>;
/**
* Validate existing configurations
*/
validateConfigurations(): Promise<{
valid: string[];
invalid: string[];
missing: string[];
recommendations: string[];
}>;
/**
* Generate optimal configuration for testing frameworks
*/
private generateConfig;
/**
* Validate configuration file content
*/
private validateConfigContent;
/**
* Detect project type from package.json
*/
private detectProjectType;
/**
* Get framework name from config file
*/
private getFrameworkFromConfigFile;
/**
* Check if framework dependency exists
*/
private hasFrameworkDependency;
/**
* Check if file exists
*/
private fileExists;
/**
* Execute shell command
*/
private executeCommand;
}
//# sourceMappingURL=dependency-manager.d.ts.map