UNPKG

fastv0

Version:

Fast File System Operations and AI Integration for Node.js - Like Cursor's token management

71 lines 2.55 kB
/** * FastV0 - Main class that combines all functionality */ import { FileManager } from './file-manager'; import { DesktopScanner } from './desktop-scanner'; import { TokenManager } from './token-manager'; import { AIIntegration } from './ai-integration'; import { FastV0Config } from './types'; export declare class FastV0 { fileManager: FileManager; desktopScanner: DesktopScanner; tokenManager: TokenManager; aiIntegration: AIIntegration; constructor(config?: FastV0Config); /** * Quick file analysis with AI */ analyzeFile(filePath: string, provider?: string): Promise<import("./types").FileOperationResult | { success: boolean; filePath: string; fileInfo: import("./types").FileInfo | undefined; analysis: import("./types").AIAnalysisResult; }>; /** * Scan desktop and analyze files */ scanAndAnalyzeDesktop(provider?: string): Promise<import("./types").DesktopScanResult | { success: boolean; desktopScan: import("./types").DesktopScanResult; analyses: (import("./types").FileOperationResult | { success: boolean; filePath: string; fileInfo: import("./types").FileInfo | undefined; analysis: import("./types").AIAnalysisResult; })[]; }>; /** * Optimize context and save to cache */ optimizeAndCache(context: any, maxTokens?: number): Promise<import("./types").TokenOperationResult | { success: boolean; optimized: import("./types").TokenOperationResult; cached: import("./types").TokenOperationResult; }>; /** * Complete workflow: scan, analyze, and cache */ completeWorkflow(provider?: string): Promise<{ success: boolean; desktopScan: import("./types").DesktopScanResult; analyses: (import("./types").FileOperationResult | { success: boolean; filePath: string; fileInfo: import("./types").FileInfo | undefined; analysis: import("./types").AIAnalysisResult; })[]; cacheResult: import("./types").TokenOperationResult | { success: boolean; optimized: import("./types").TokenOperationResult; cached: import("./types").TokenOperationResult; }; error?: undefined; } | { success: boolean; error: string; desktopScan?: undefined; analyses?: undefined; cacheResult?: undefined; }>; } //# sourceMappingURL=fastv0.d.ts.map