UNPKG

@dollhousemcp/mcp-server

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.

44 lines 1.19 kB
/** * Migration Manager - Handles migration from legacy structure to portfolio structure */ import { PortfolioManager } from './PortfolioManager.js'; import { ElementType } from './types.js'; export interface MigrationResult { success: boolean; migratedCount: number; errors: string[]; backedUp: boolean; backupPath?: string; } export declare class MigrationManager { private portfolioManager; constructor(portfolioManager: PortfolioManager); /** * Check if migration is needed */ needsMigration(): Promise<boolean>; /** * Perform migration from legacy to portfolio structure */ migrate(options?: { backup?: boolean; }): Promise<MigrationResult>; /** * Migrate a single persona file */ private migratePersona; /** * Create backup of legacy personas */ private createBackup; /** * Get migration status report */ getMigrationStatus(): Promise<{ hasLegacyPersonas: boolean; legacyPersonaCount: number; portfolioExists: boolean; portfolioStats: Record<ElementType, number>; }>; } //# sourceMappingURL=MigrationManager.d.ts.map