organ-ai-zer
Version:
AI-powered file organizer CLI tool
118 lines • 3.2 kB
TypeScript
import { OrganizationSuggestion } from '../types';
import { ConfigService } from './config-service';
/**
* Conversational File Organizer
* Uses AI conversation context for natural, flexible file organization
*/
export declare class ConversationalOrganizer {
private configService;
private aiProvider;
private fileScanner;
private patternService;
constructor(configService?: ConfigService);
/**
* Start interactive organization conversation
*/
organize(directory: string, dryRun?: boolean, noCache?: boolean): Promise<OrganizationSuggestion[]>;
/**
* Initialize AI provider
*/
private initialize;
/**
* Scan files in directory
*/
private scanFiles;
/**
* Get user's organization intent conversationally
*/
private getOrganizationIntent;
/**
* Get pattern matching hints to help AI
*/
private getPatternHints;
/**
* Run the main conversation flow
*/
private runConversation;
/**
* Phase 1: AI Analysis with Project Detection
*/
private runAnalysisPhase;
/**
* Detect coding projects and related file structures with caching
*/
private detectProjects;
/**
* Infer project type from indicators and files
*/
private inferProjectType;
/**
* Show detected projects to user
*/
private showDetectedProjects;
/**
* Phase 2: Targeted Content-Type Conversations (AI-Driven)
*/
private runConversationPhase;
/**
* Handle conversations about detected projects (standard handling)
*/
private handleProjectConversations;
/**
* Handle AI-driven content-type conversations
*/
private handleAIDrivenContentConversations;
/**
* Get AI-generated conversation questions for a specific category using isolated conversation
*/
private getCategoryConversationFromAI;
/**
* Conduct the actual conversation with the user for a category
*/
private conductCategoryConversation;
/**
* Generate final suggestions with retry logic
*/
private generateFinalSuggestionsWithRetry;
/**
* Present suggestions to user and get feedback with category-grouped preview
*/
private presentSuggestions;
/**
* Group suggestions by category for enhanced preview
*/
private groupSuggestionsByCategory;
/**
* Infer category from suggested path if not explicitly set
*/
private inferCategoryFromPath;
/**
* Show category-grouped preview with samples
*/
private showCategoryGroupedPreview;
/**
* Get appropriate icon for category
*/
private getCategoryIcon;
/**
* Handle user response to preview
*/
private handlePreviewResponse;
/**
* Handle detailed view of a specific category
*/
private handleCategoryDetailView;
/**
* Handle viewing all changes
*/
private handleViewAllChanges;
/**
* Execute the organization
*/
private executeOrganization;
/**
* Show dry run summary
*/
private showDryRunSummary;
}
//# sourceMappingURL=conversational-organizer.d.ts.map