doctool
Version:
AI-powered documentation validation and management system
30 lines (29 loc) • 1.03 kB
TypeScript
interface DirectoryAnalysis {
name: string;
path: string;
files: string[];
subdirectories: string[];
codeFiles: string[];
currentKnowledgeContent?: string;
}
/**
* Analyzes a directory and gathers information needed for content generation
*/
export declare function analyzeDirectoryForContent(dirPath: string): DirectoryAnalysis;
/**
* Reads code files from a directory for analysis
*/
export declare function getCodeContent(dirPath: string, codeFiles: string[]): Record<string, string>;
/**
* Creates a prompt for the content generator agent
*/
export declare function createContentGenerationPrompt(analysis: DirectoryAnalysis, codeContent: Record<string, string>): string;
/**
* Generates enhanced knowledge file content for a directory using AI
*/
export declare function generateKnowledgeContent(dirPath: string): Promise<string | null>;
/**
* Updates a knowledge file with new content
*/
export declare function updateKnowledgeFile(dirPath: string, content: string): boolean;
export {};