UNPKG

memory-engineering-mcp

Version:

🧠 AI Memory System powered by MongoDB Atlas & Voyage AI - Autonomous memory management with zero manual work

53 lines • 1.45 kB
/** * Session Context Management v13 - Persistent project binding * SOLVES THE #1 PROBLEM: Context drift and confusion! */ import { type FrameworkConfig } from './frameworkDetection.js'; interface SessionContext { activeProject: { name: string; path: string; framework: FrameworkConfig; lastAccessed: Date; } | null; history: Array<{ name: string; path: string; lastAccessed: Date; }>; settings: { verbose: boolean; autoSync: boolean; showContext: boolean; }; } /** * Load the current session context */ export declare function loadSessionContext(): SessionContext; /** * Save the session context */ export declare function saveSessionContext(context: SessionContext): void; /** * Set the active project context */ export declare function setActiveProject(projectPath: string, projectName?: string): SessionContext; /** * Get the active project or throw an error */ export declare function getActiveProject(): SessionContext['activeProject']; /** * Clear the active project */ export declare function clearActiveProject(): void; /** * Get a formatted context header for all responses */ export declare function getContextHeader(): string; /** * Get or infer project path with smart fallbacks */ export declare function resolveProjectPath(explicitPath?: string): string; export {}; //# sourceMappingURL=sessionContext.d.ts.map