superaugment
Version:
Enterprise-grade MCP server with world-class C++ analysis, robust error handling, and production-ready architecture for VS Code Augment
95 lines • 2.36 kB
TypeScript
/**
* SuperAugment Configuration Validator
*
* Provides comprehensive validation for all configuration files with
* detailed error reporting, dependency checking, and runtime validation.
*/
/**
* Validation result interface
*/
export interface ValidationResult {
isValid: boolean;
errors: ValidationError[];
warnings: ValidationWarning[];
metadata: {
validatedAt: Date;
configVersion?: string;
validationDuration: number;
};
}
/**
* Validation error details
*/
export interface ValidationError {
code: string;
message: string;
path: string;
severity: 'error' | 'warning';
context?: Record<string, any>;
suggestion?: string;
}
/**
* Validation warning details
*/
export interface ValidationWarning {
code: string;
message: string;
path: string;
suggestion: string;
context?: Record<string, any>;
}
/**
* Configuration validator class
*/
export declare class ConfigValidator {
private validationCache;
private cacheTimeout;
/**
* Validate all configuration files
*/
validateAll(configPath: string): Promise<ValidationResult>;
/**
* Validate personas configuration
*/
validatePersonas(configPath: string): Promise<ValidationResult>;
/**
* Validate tools configuration
*/
validateTools(configPath: string): Promise<ValidationResult>;
/**
* Validate settings configuration
*/
validateSettings(configPath: string): Promise<ValidationResult>;
/**
* Validate patterns configuration
*/
validatePatterns(configPath: string): Promise<ValidationResult>;
/**
* Perform cross-validation between configuration files
*/
performCrossValidation(configPath: string): Promise<{
errors: ValidationError[];
warnings: ValidationWarning[];
}>;
/**
* Load and parse YAML file
*/
private loadYamlFile;
/**
* Get suggestion for schema validation error
*/
private getSuggestionForSchemaError;
/**
* Cache validation result
*/
private cacheValidationResult;
/**
* Get cached validation result
*/
getCachedValidationResult(key: string): ValidationResult | null;
/**
* Clear validation cache
*/
clearCache(): void;
}
//# sourceMappingURL=ConfigValidator.d.ts.map