UNPKG

memory-engineering

Version:

Advanced Memory-Aware Code Context System with claude-flow-inspired architecture, showcasing MongoDB + Voyage AI strategic positioning

56 lines 1.64 kB
/** * Memory Backend Interface * Following claude-flow-main proven patterns for robust memory storage */ export interface MemoryEntry { id: string; projectPath: string; memoryType: string; content: any; context: Record<string, unknown>; timestamp: Date; tags: string[]; version: number; metadata?: Record<string, unknown>; searchableText?: string; embedding?: number[]; } export interface MemoryQuery { projectPath?: string; memoryType?: string; tags?: string[]; startTime?: Date; endTime?: Date; search?: string; limit?: number; offset?: number; } export interface IMemoryBackend { initialize(): Promise<void>; shutdown(): Promise<void>; store(entry: MemoryEntry): Promise<void>; retrieve(id: string): Promise<MemoryEntry | undefined>; update(id: string, entry: MemoryEntry): Promise<void>; delete(id: string): Promise<void>; query(query: MemoryQuery): Promise<MemoryEntry[]>; getAllEntries(): Promise<MemoryEntry[]>; getHealthStatus(): Promise<{ healthy: boolean; error?: string; metrics?: Record<string, number>; }>; performMaintenance?(): Promise<void>; } export interface MemoryBackendConfig { provider: 'mongodb-atlas' | 'mongodb-community'; connectionString: string; databaseName?: string; collectionName?: string; enableIndexes?: boolean; enableMetrics?: boolean; } export declare class MemoryBackendError extends Error { details?: any | undefined; constructor(message: string, details?: any | undefined); } //# sourceMappingURL=backend-interface.d.ts.map