mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-02-19 11:54:58 -05:00
Add clearer console error messages for memory file migration detection
- Added DETECTED message when legacy memory.json file is found - Added COMPLETED message when migration finishes successfully - Improves visibility of backward compatibility migration process Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
This commit is contained in:
@@ -35,8 +35,9 @@ async function ensureMemoryFilePath(): Promise<string> {
|
||||
return newMemoryPath;
|
||||
} catch {
|
||||
// Old file exists, new file doesn't - migrate
|
||||
console.error('DETECTED: Found legacy memory.json file, migrating to memory.jsonl for JSONL format compatibility');
|
||||
await fs.rename(oldMemoryPath, newMemoryPath);
|
||||
console.error('Migrated memory.json to memory.jsonl for JSONL format compatibility');
|
||||
console.error('COMPLETED: Successfully migrated memory.json to memory.jsonl');
|
||||
return newMemoryPath;
|
||||
}
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user