export interface MemoryConfig { memoryDir: string; projectMemoryDir: string; ontologyPath: string; /** * Cache directory for the embedding model downloaded by * @huggingface/transformers. Defaults to /models. Without it the * library caches under its own node_modules folder, which is wiped by every * update and unwritable for a global (sudo) npm install. */ modelCacheDir?: string; } export interface SearchResult { file: string; line: number; content: string; score: number; } export interface VectorSearchResult { file: string; chunkIndex: number; content: string; score: number; } /** Entity types suggested to the model; the store accepts any non-empty type string. */ export type KnownOntologyEntityType = "Person" | "Project" | "Device" | "Account" | "Document" | "Service" | "Concept" | "Library" | "Module" | "Tool"; export type OntologyEntityType = KnownOntologyEntityType | (string & {}); export interface OntologyEntity { id: string; type: OntologyEntityType; name: string; properties: Record; createdAt: string; updatedAt: string; } export interface OntologyRelation { id: string; from: string; to: string; type: string; properties: Record; createdAt: string; } export interface Note { file: string; date: string; content: string; } export interface UnifiedSearchResult { source: "notes" | "ontology" | "vectors"; type?: "entity" | "relation" | "note" | "file"; score: number; data: any; } export interface MemoryStatus { notes: { count: number; totalSize: number; lastModified: string | null; }; ontology: { entities: number; relations: number; entitiesByType: Record; relationsByType: Record; }; vectors: { documentCount: number; chunkCount: number; lastUpdate: string; }; } export interface OntologyEntityEntry { kind: "entity"; id: string; type: OntologyEntityType; name: string; properties: Record; createdAt: string; updatedAt: string; } export interface OntologyRelationEntry { kind: "relation"; id: string; from: string; to: string; type: string; properties: Record; createdAt: string; } export interface OntologyDeleteEntry { kind: "delete"; targetId: string; deletedAt: string; } export type OntologyJSONLEntry = OntologyEntityEntry | OntologyRelationEntry | OntologyDeleteEntry; //# sourceMappingURL=types.d.ts.map