/** * Database migrations for Phase 1 intelligence features. * SQL is embedded here so the module resolves identically in vitest (ESM source mode) * and in the compiled dist/ output — no __dirname / import.meta.url path gymnastics needed. */ import type { MCPClient } from '../core/database.js'; declare const EXPECTED_TABLES: readonly ["knowledge_objects", "canon_items", "canon_conflicts", "narrative_promises", "promise_payoffs", "narrative_nodes", "narrative_edges", "context_contracts", "sync_state", "research_notes", "research_usage", "character_scene_states", "beta_readers", "beta_feedback", "agent_queries", "foreshadowing_notes", "series", "series_books", "series_bible"]; export type MigrationTable = (typeof EXPECTED_TABLES)[number]; /** * Run all Phase 1 migrations against the given MCPClient. * Every statement uses CREATE TABLE/INDEX IF NOT EXISTS, so this is safe to call * on an already-migrated database — it is a no-op after the first run. */ export declare function runMigrations(client: MCPClient): Promise; /** * Returns the list of Phase 1 tables that runMigrations() is responsible for. * Useful in tests to verify the schema was applied. */ export declare function getMigrationTables(): readonly string[]; export {}; //# sourceMappingURL=migrations.d.ts.map