doctool
Version:
AI-powered documentation validation and management system
30 lines (29 loc) • 959 B
TypeScript
interface DirectoryInfo {
name: string;
path: string;
hasKnowledgeFile: boolean;
knowledgeFilePath?: string;
files: string[];
subdirectories: string[];
}
/**
* Scans a directory and returns information about its contents
*/
export declare function scanDirectory(dirPath: string): DirectoryInfo;
/**
* Gets all directories recursively that should have knowledge files
*/
export declare function getDirectoriesForKnowledgeFiles(basePath?: string): DirectoryInfo[];
/**
* Creates a knowledge file template for a directory
*/
export declare function createKnowledgeFileTemplate(dirInfo: DirectoryInfo): string;
/**
* Creates a knowledge file for a directory if one doesn't exist
*/
export declare function createKnowledgeFile(dirInfo: DirectoryInfo): boolean;
/**
* Main function to scan directories and create knowledge files where needed
*/
export declare function initializeKnowledgeFiles(basePath?: string): void;
export {};