list_memory_bank

Function list_memory_bank 

Source
pub async fn list_memory_bank(
    workspace_dir: &Path,
) -> Result<Vec<MemoryBankEntry>, MemoryBankError>
Expand description

List all memory bank entries in a workspace

Scans the .gestura/memory/ directory for all markdown files and loads them. Invalid or corrupted files are logged as warnings and skipped.

§Arguments

  • workspace_dir - The workspace directory containing .gestura/memory/

§Returns

Vector of all memory bank entries, sorted by timestamp (newest first)

§Errors

Returns MemoryBankError::Io if directory read fails. Individual file parse errors are logged but don’t fail the entire operation.

§Examples

use gestura_core::memory_bank::list_memory_bank;
use std::path::Path;

let workspace = Path::new("/home/user/project");
let entries = list_memory_bank(workspace).await?;

for entry in entries {
    println!("{}: {}", entry.timestamp, entry.summary);
}