/** * Workspace Manager * * Single source of truth for project registration and indexing status. * Persists all state to the `workspaces` table in the symbol PostgreSQL DB * (replacing the zero-embedding _metadata docs in the vector store). * * Subscribes to EventBus to auto-update status on indexing lifecycle events. */ import type { WorkspaceRow, WorkspaceStatus } from "../../data/symbol/symbol-repository-pg.js"; export type { WorkspaceRow, WorkspaceStatus }; export declare class WorkspaceManager { private static instance; private constructor(); static getInstance(): WorkspaceManager; /** * Register a workspace as "indexing" (called at the start of ETL). * Creates the row if it doesn't exist yet. */ markIndexing(projectId: string, projectPath: string): Promise; /** * Called after a successful ETL run. * Triggers centrality recomputation in the background. */ markIndexed(projectId: string, stats: { filesCount: number; chunksCount: number; symbolsCount: number; }): Promise; /** * Called on ETL failure. */ markError(projectId: string, error: string): Promise; listWorkspaces(statusFilter?: WorkspaceStatus | "all"): Promise; getWorkspace(projectId: string): Promise; /** * Remove a project: deletes workspace row + all symbol data (CASCADE). * Does NOT clear the vector store — caller is responsible for that. */ removeWorkspace(projectId: string): Promise; private subscribeToEvents; } export declare const workspaceManager: WorkspaceManager; //# sourceMappingURL=workspace-manager.d.ts.map