pub fn migrate_basic_memory_note(
m: &mut DejaDB,
ns: &str,
rel_path: &str,
markdown: &str,
mtime_ms: Option<i64>,
rep: &mut MigrateReport,
) -> Result<()>Expand description
Import one Basic Memory note (a markdown file with optional YAML
frontmatter). Notes become memory_file chains under
/memories/<permalink|path> — the exact shape the Anthropic memory-tool
backend serves, so an imported vault is immediately editable by an agent.
The caller walks the vault directory and supplies each file’s relative
path and mtime (used only when the frontmatter has no date).