/** * Module-level singleton that bridges the server's SessionStore into the * memory extension so the `read_project_observations` tool can query * cross-session observations. * * Storage is per-machine + per-cwd: observations are keyed by the local * project resolved from the absolute working directory and persisted in the * same-machine SQLite store. They are shared across sessions on this machine * but are NOT synced across machines or teams. * * Set once by the SessionStreamManager at startup. Read by tools at runtime. */ import type { Entry } from "./branch.js"; export interface ProjectObservationsStore { insertProjectObservations(projectId: string, sessionId: string, observations: Array<{ id: string; content: string; relevance: string; }>, createdAt: number): void; searchProjectObservations(projectId: string, query: string, limit?: number): Array<{ content: string; relevance: string; createdAt: number; sessionId: string; }>; getProjectObservationById(projectId: string, observationId: string): { id: string; content: string; relevance: string; createdAt: number; sessionId: string; } | null; getProjectByCwd(cwd: string): string | null; upsertProjectRecallSource?(projectId: string, memoryId: string, entries: Entry[]): void; getProjectRecallSource?(projectId: string, memoryId: string): Entry[] | null; } export declare function setProjectObsStore(store: ProjectObservationsStore): void; export declare function getProjectObsStore(): ProjectObservationsStore | null; //# sourceMappingURL=project-observations-store.d.ts.map