The agent's memory database is a persistent, cumulative asset that cannot be regenerated from source files. To prevent accidental data loss, a robust backup and restore mechanism is required. This ticket covers the creation of scripts to export and import the memory database.
Acceptance Criteria
- A new script is created (e.g.,
buildScripts/ai/exportMemory.mjs).
- This script connects to the memory ChromaDB.
- It exports all documents (content, metadata) into a portable, version-controllable format (e.g., a single JSON file or a directory of JSON files).
- A corresponding new script is created (e.g.,
buildScripts/ai/importMemory.mjs).
- This script reads the exported data.
- It intelligently upserts the data into the ChromaDB collection, allowing for a full restore to a new or empty database.
- The process is documented, so users understand how to back up their agent's memory.
The agent's memory database is a persistent, cumulative asset that cannot be regenerated from source files. To prevent accidental data loss, a robust backup and restore mechanism is required. This ticket covers the creation of scripts to export and import the memory database.
Acceptance Criteria
buildScripts/ai/exportMemory.mjs).buildScripts/ai/importMemory.mjs).