/** * Migration utilities for upgrading old threads to support new features. */ export interface MigrationResult { threadName: string; messagesTotal: number; embeddingsGenerated: number; sessionCreated: boolean; sessionExchanges: number; errors: string[]; } export interface MigrationProgress { phase: 'loading' | 'embeddings' | 'sessions' | 'done'; current: number; total: number; message: string; } export type ProgressCallback = (progress: MigrationProgress) => void; /** * Migrate a thread to support RAG features. * - Generates embeddings for all messages * - Creates a legacy session document from old conversations */ export declare function migrateThread(threadPath: string, onProgress?: ProgressCallback): Promise; /** * Check if a thread needs migration. * Returns true if embeddings or sessions are missing. */ export declare function needsMigration(threadPath: string): Promise<{ needsEmbeddings: boolean; needsSessions: boolean; messageCount: number; embeddingCount: number; }>; //# sourceMappingURL=migrate.d.ts.map