mcp-codesentry
Version:
CodeSentry MCP - AI-powered code review assistant with 5 specialized review tools for security, best practices, and comprehensive code analysis
25 lines • 926 B
TypeScript
/**
* Storage Manager for handling code snapshots and task contexts
*/
import type { StorageConfig, TaskContext } from '../types/index.js';
export declare class StorageManager {
private basePath;
private config;
private encryptionKey?;
constructor(config: StorageConfig);
initialize(): Promise<void>;
storeSnapshot(taskId: string, content: string, type: 'pre' | 'post'): Promise<string>;
retrieveSnapshot(snapshotId: string): Promise<string>;
storeTaskContext(taskId: string, context: TaskContext): Promise<void>;
retrieveTaskContext(taskId: string): Promise<TaskContext | null>;
private encrypt;
private decrypt;
cleanup(olderThanDays?: number): Promise<void>;
getStorageStats(): Promise<{
totalSnapshots: number;
totalTasks: number;
totalSizeMB: number;
}>;
sanitizePath(inputPath: string): string;
}
//# sourceMappingURL=manager.d.ts.map