Skip to main content

load_auto_memory

Function load_auto_memory 

Source
pub fn load_auto_memory(
    cwd: &Path,
    warnings: &mut Vec<String>,
) -> Option<String>
Expand description

Load every *.md file in the project’s memory directory in lexicographic order. Returns None when the directory doesn’t exist or has no markdown files (so the caller can omit the ## Auto-memory heading entirely instead of emitting an empty section).

Per-file read errors emit a warning and are skipped; one bad file doesn’t take down the whole load.