@mickdarling/dollhousemcp
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
46 lines • 1.14 kB
TypeScript
/**
* Manage backups during updates
*/
export interface BackupInfo {
path: string;
timestamp: string;
version?: string;
}
export declare class BackupManager {
private rootDir;
private backupsDir;
constructor(rootDir?: string);
/**
* Check if the directory contains production files
*/
private hasProductionFiles;
/**
* Check if this appears to be a safe test directory
*/
private isSafeTestDirectory;
/**
* Check if running in a Docker container
*/
private isDockerEnvironment;
/**
* Create a backup of the current installation
*/
createBackup(version?: string): Promise<BackupInfo>;
/**
* List available backups
*/
listBackups(): Promise<BackupInfo[]>;
/**
* Get the most recent backup
*/
getLatestBackup(): Promise<BackupInfo | null>;
/**
* Restore from a backup
*/
restoreBackup(backupPath: string): Promise<void>;
/**
* Clean up old backups (keep the 5 most recent)
*/
cleanupOldBackups(keepCount?: number): Promise<number>;
}
//# sourceMappingURL=BackupManager.d.ts.map