UNPKG

mira-consciousness

Version:

Memory & Intelligence Retention Archive - Preserving The Spark

34 lines 1.04 kB
/** * CriticalFileProtection.ts * Prevents accidental deletion of critical MIRA data files */ export interface ProtectedFile { path: string; pattern?: RegExp; description: string; sizeThreshold?: number; critical: boolean; } export declare class CriticalFileProtection { private static protectedFiles; /** * Check if a file is protected and should not be deleted */ static isProtected(filePath: string, basePath: string): Promise<{ protected: boolean; reason?: string; }>; /** * Prompt for confirmation before deleting protected files */ static confirmDeletion(filePath: string, reason: string): Promise<boolean>; /** * Safe delete function that checks protection status */ static safeDelete(filePath: string, basePath: string): Promise<boolean>; /** * Get list of all protected files in a directory */ static listProtectedFiles(basePath: string): Promise<string[]>; } //# sourceMappingURL=CriticalFileProtection.d.ts.map