import Database from 'better-sqlite3'; import { CortexStore, type SessionRow } from '../db/store.js'; import type { MemoryItemState } from '../memory/items.js'; export interface ScenarioMemoryItem { id?: string; kind: string; subject?: string | null; text: string; state?: MemoryItemState; importance?: number; access_count?: number; /** Age relative to the scenario clock; ignored when created_at is set. */ age_days?: number; last_accessed_days_ago?: number; created_at?: string; scope_type?: string; scope_key?: string; } export interface ScenarioAppGraph { scope_type?: string; scope_key?: string; head_oid?: string; files: string[]; } export interface ScenarioRename { old_path: string; new_path: string; } export interface EvaluationScenario { /** Scenario clock for age_days math; defaults to the real current time. */ now?: string; scope?: { type?: string; key?: string; }; focus?: string; items: ScenarioMemoryItem[]; app_graph?: ScenarioAppGraph; renames?: ScenarioRename[]; } export interface SeededStore { db: Database.Database; store: CortexStore; session: SessionRow; } /** * Seed a store from a declarative scenario so retrieval quality can be * evaluated against a deterministic memory population instead of whatever * happens to be in a live `.cortex.db`. */ export declare function seedStoreFromScenario(store: CortexStore, scenario: EvaluationScenario): SessionRow; /** * Build an in-memory store seeded from a scenario. Hermetic: never touches a * real database or the working tree. */ export declare function createSeededStore(scenario: EvaluationScenario, rootPath?: string): SeededStore; //# sourceMappingURL=seed.d.ts.map