/** * CLI Scanner - Runtime Discovery * Discovers CLI tools from curated catalog that are installed on the system * Fast and reliable - checks existence of known useful tools */ export interface ScannedTool { name: string; path: string; description?: string; category: string; capabilities: string[]; } /** * CLI Scanner - discovers tools at runtime */ export declare class CLIScanner { private scanCache; private lastScanTime; private readonly CACHE_TTL; private readonly EXCLUDED_PATTERNS; private readonly USEFUL_KEYWORDS; constructor(); /** * Scan system for available CLI tools using curated catalog */ scanSystem(forceRefresh?: boolean): Promise; /** * Get all available commands using compgen */ private getAvailableCommands; /** * Fallback: scan PATH directories */ private scanPathDirectories; /** * Filter candidates to likely useful tools */ private filterCandidates; /** * Get command path (cross-platform) */ private getCommandPath; /** * Get help output with multiple attempts */ private getHelpOutput; /** * Extract description from help output */ private extractDescription; /** * Extract capabilities from help output */ private extractCapabilities; /** * Categorize tool based on name and capabilities */ private categorize; /** * Check if scan cache is fresh */ private isCacheFresh; /** * Search scanned tools by query */ searchTools(query: string): Promise; /** * Get tools by category */ getToolsByCategory(category: string): Promise; /** * Get all categories */ getCategories(): Promise; } //# sourceMappingURL=cli-scanner.d.ts.map