UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

42 lines 1.03 kB
interface ScanResult { files: string[]; directories: string[]; totalFiles: number; scannedFiles: number; } export declare class FileScanner { private rootPath; private ignoreInstance; private maxFiles; private maxDepth; constructor(rootPath: string); /** * Check if a file/directory should be ignored based on .gitignore */ private shouldIgnore; /** * Recursively scan directory for files */ scan(): ScanResult; /** * Recursively scan a directory */ private scanDirectory; /** * Convert a simple glob-like pattern (using '*' as wildcard) to a RegExp. * Escapes regex metacharacters before expanding '*' to '.*'. */ private globToRegExp; /** * Get files matching specific patterns */ getFilesByPattern(patterns: string[]): string[]; /** * Get key project files */ getProjectFiles(): { [key: string]: string[]; }; } export {}; //# sourceMappingURL=file-scanner.d.ts.map