/** Tables we own — used by the migration drop step. */ export interface ProjectRow { id: string; name: string; path: string; created_at: number; updated_at: number; studio_project_id: string | null; studio_project_name: string | null; studio_team_id: string | null; } export interface ProjectRowWithCount extends ProjectRow { session_count: number; } export interface SessionRow { id: string; project_id: string; title: string; created_at: number; updated_at: number; } export interface SessionRowWithCount extends SessionRow { message_count: number; } export interface MessageRow { id: string; session_id: string; role: "user" | "assistant" | "system"; content: string; events_jsonl: string; images_json: string; credits_used: number | null; output_tokens: number | null; duration_ms: number | null; tokens_per_second: number | null; ttft_ms: number | null; seq: number; created_at: number; } export interface CountRow { count: number; } export interface SessionMemorySnapshotRow { session_id: string; summary: string; details_json: string; covered_source_count: number; updated_at: number; } export interface ProjectObservationRow { id: string; project_id: string; session_id: string; content: string; relevance: string; created_at: number; } /** Candidate row returned by the FTS5 trigram search over observations. */ export interface ProjectObsFtsRow { id: string; session_id: string; content: string; relevance: string; created_at: number; /** SQLite bm25() rank — negative, lower (more negative) = better match. */ bm25_score: number; } /** Internal search candidate: an observation row plus its normalized text-match score. */ export type ObservationCandidate = ProjectObservationRow & { textScore: number; }; export interface ProjectRecallSourceRow { project_id: string; memory_id: string; entries_json: string; updated_at: number; } export interface QueueRow { id: string; session_id: string; content: string; images_json: string; position: number; created_at: string; } export interface InterAgentMessageRow { id: string; project_id: string; channel: string; sender_session_id: string; sender_name: string | null; recipient_session_id: string | null; kind: string; payload: string; created_at: number; delivered_at: number | null; expires_at: number | null; } export interface DevProcessDefinitionRow { id: string; project_id: string | null; label: string; command: string; cwd: string; created_at: number; updated_at: number; } //# sourceMappingURL=rows.d.ts.map