@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.
35 lines • 1.07 kB
TypeScript
/**
* Migration utility for legacy .md memory files
*
* FIX (#1206): Migrates old-format memory files to current YAML format
*
* Legacy formats found:
* 1. YAML frontmatter + markdown content (.md files in root)
* 2. Pure YAML with wrong extension (.md should be .yaml)
*
* Target format:
* - Pure YAML files
* - In date-organized folders (YYYY-MM-DD/)
* - .yaml extension only
*/
interface MigrationResult {
file: string;
status: 'success' | 'skipped' | 'error';
reason?: string;
newPath?: string;
}
/**
* Find all legacy .md files in memories directory
*/
declare function findLegacyFiles(memoriesDir: string): Promise<string[]>;
/**
* Migrate a single legacy file
*/
declare function migrateLegacyFile(memoriesDir: string, filename: string, dryRun?: boolean): Promise<MigrationResult>;
/**
* Main migration function
*/
declare function migrateAll(memoriesDir: string, dryRun?: boolean): Promise<void>;
export { migrateAll, migrateLegacyFile, findLegacyFiles };
//# sourceMappingURL=migrate-legacy-memories.d.ts.map