// Shared types for pi-mem-cc. export type ObservationType = | "bugfix" | "feature" | "refactor" | "change" | "discovery" | "decision"; export interface Observation { id?: number; sessionId: string; project: string; type: ObservationType; title: string; subtitle: string | null; facts: string[]; narrative: string | null; concepts: string[]; filesRead: string[]; filesModified: string[]; sourceToolName: string; createdAt: number; } export interface Summary { id?: number; sessionId: string; project: string; request: string | null; investigated: string | null; learned: string | null; completed: string | null; nextSteps: string | null; notes: string | null; createdAt: number; } export interface SearchHit { id: number; type: ObservationType; title: string; subtitle: string | null; sessionId: string; project: string; createdAt: number; score: number; matchedVia: "fts" | "recency" | "both"; } export interface FullObservation extends Observation { id: number; }