42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
/**
|
|
* @claude-flow/codex - Validators
|
|
*
|
|
* Comprehensive validation functions for AGENTS.md, SKILL.md, and config.toml
|
|
* Provides detailed error messages and suggestions for fixes.
|
|
*/
|
|
import type { ValidationResult } from '../types.js';
|
|
/**
|
|
* Validate an AGENTS.md file
|
|
*/
|
|
export declare function validateAgentsMd(content: string): Promise<ValidationResult>;
|
|
/**
|
|
* Validate a SKILL.md file
|
|
*/
|
|
export declare function validateSkillMd(content: string): Promise<ValidationResult>;
|
|
/**
|
|
* Validate a config.toml file
|
|
*/
|
|
export declare function validateConfigToml(content: string): Promise<ValidationResult>;
|
|
/**
|
|
* Validate all files in a project
|
|
*/
|
|
export declare function validateProject(files: {
|
|
agentsMd?: string;
|
|
skillMds?: Array<{
|
|
name: string;
|
|
content: string;
|
|
}>;
|
|
configToml?: string;
|
|
}): Promise<{
|
|
valid: boolean;
|
|
results: Record<string, ValidationResult>;
|
|
summary: {
|
|
errors: number;
|
|
warnings: number;
|
|
};
|
|
}>;
|
|
/**
|
|
* Generate a validation report
|
|
*/
|
|
export declare function generateValidationReport(results: Record<string, ValidationResult>): string;
|
|
//# sourceMappingURL=index.d.ts.map
|