/** * Migration tool: reads all data from one or more SQLite databases and writes * to PostgreSQL, including raw embedding vectors (no re-embedding required). * * Supports merging multiple SQLite DBs into a single Postgres instance * for multi-desktop consolidation. */ import type { PostgresBackendConfig } from "../config"; export interface MigrationOptions { /** One or more SQLite DB paths to migrate from. */ sqlitePaths: string[]; /** Postgres config (reads from code-session-memory config if not provided). */ pgConfig?: PostgresBackendConfig; /** Label for this source machine (default: os.hostname()). */ originHost?: string; /** Preview without writing. */ dryRun?: boolean; /** Rows per INSERT batch (default 100). */ batchSize?: number; /** Progress callback. */ onProgress?: (event: MigrationProgress) => void; } export interface MigrationProgress { phase: "sessions" | "chunks" | "messages" | "tool_calls"; sqlitePath: string; processed: number; total: number; } export interface MigrationReport { sqlitePaths: string[]; sessions: number; chunks: number; messages: number; toolCalls: number; dryRun: boolean; } export declare function discoverSqliteDbPaths(): string[]; export declare function migrateSqliteToPg(options: MigrationOptions): Promise; //# sourceMappingURL=sqlite-to-pg.d.ts.map