UNPKG

@wildcard-ai/deepcodex

Version:

Advanced codebase indexing and semantic search MCP server

61 lines 1.77 kB
/** * FileUtils - File system operations and discovery */ export declare class FileUtils { private readonly SUPPORTED_EXTENSIONS; private readonly IGNORE_DIRECTORIES; private readonly IGNORE_FILES; /** * Discover all supported files in a codebase directory */ discoverFiles(codebasePath: string, supportedLanguages?: string[]): Promise<string[]>; /** * Recursively traverse directory structure */ private traverseDirectory; /** * Check if a file should be included based on extension and name */ private shouldIncludeFile; /** * Get file extensions for specified languages */ private getExtensionsForLanguages; /** * Get file statistics */ getFileStats(filePath: string): Promise<{ size: number; modified: Date; created: Date; } | null>; /** * Check if file has been modified since a given timestamp */ isFileModifiedSince(filePath: string, timestamp: Date): Promise<boolean>; /** * Get relative path with normalized separators */ getRelativePath(filePath: string, basePath: string): string; /** * Ensure directory exists */ ensureDirectory(dirPath: string): Promise<void>; /** * Read file with error handling */ readFileContent(filePath: string): Promise<string | null>; /** * Write file with directory creation */ writeFileContent(filePath: string, content: string): Promise<boolean>; /** * Get supported languages for a file extension */ getLanguageForExtension(extension: string): string | null; /** * Get all supported languages */ getSupportedLanguages(): string[]; } //# sourceMappingURL=FileUtils.d.ts.map