import { RecallResult, RecallContext } from '../types.js'; import { HierarchicalMemory } from './hierarchical-memory.js'; /** * ContextRecall — associative memory activation engine. * * Instead of requiring explicit search queries, this engine monitors the * current work context (file being edited, keywords, project type, time) * and automatically activates relevant memories. * * Activation triggers: * 1. File path pattern matching (e.g., editing auth/*.ts triggers security memories) * 2. Keyword detection (e.g., "database" triggers SQL/pattern memories) * 3. Category association (e.g., "bug-fix" context loads past fix patterns) * 4. Temporal patterns (time-of-day, day-of-week work habits) * 5. Co-occurrence (memories frequently activated together strengthen their link) */ export declare class ContextRecall { private hierarchicalMemory; private triggers; private activationLinks; private recentActivations; private storeDir; constructor(hierarchicalMemory: HierarchicalMemory, customDir?: string); /** Activate memories based on current work context */ recall(context: RecallContext, topK?: number): RecallResult[]; /** Get a summary of what the brain "knows" about the current context */ getContextSummary(context: RecallContext): string; private matchTriggers; private triggerMatchesContext; private learnTriggers; private extractFilePaths; private updateCoOccurrence; private strengthenLink; private buildActivationPath; private getAllEntries; getStats(): { triggerCount: number; linkCount: number; recentActivationCount: number; topTriggers: Array<{ pattern: string; strength: number; matches: number; }>; }; persist(): Promise; private loadFromDisk; } //# sourceMappingURL=context-recall.d.ts.map