/** * A lightweight knowledge graph derived from the indexed sessions — no LLM * extraction, just the entities that already live in the data (projects, * tools, models, providers, git repos) and their links to sessions. */ export type EntityType = "project" | "tool" | "model" | "provider" | "repo"; export interface Entity { type: EntityType; name: string; session_count: number; } /** List entities of a given type (or all types) with how many sessions reference each. */ export declare function listEntities(type?: EntityType): Entity[]; export interface RelatedSession { session_id: string; source: string; title: string | null; project_name: string | null; started_at: string | null; } /** Find sessions linked to a specific entity (e.g. all sessions that used tool "Bash"). */ export declare function relatedSessions(type: EntityType, name: string, limit?: number): RelatedSession[]; export interface SessionGraph { session_id: string; project: string | null; model: string | null; provider: string | null; repo: string | null; tools: string[]; } /** The entities a single session touches — its neighborhood in the graph. */ export declare function sessionGraph(sessionId: string): SessionGraph | null; //# sourceMappingURL=graph.d.ts.map