mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-19 16:43:24 +02: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;
|
return newMemoryPath;
|
||||||
} catch {
|
} catch {
|
||||||
// Old file exists, new file doesn't - migrate
|
// 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);
|
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;
|
return newMemoryPath;
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user