spool-memory 0.2.3

Local-first developer memory system — persistent, structured knowledge for AI coding tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod json;
pub mod markdown;
pub mod prompt;
pub mod wakeup;

use crate::domain::{ContextBundle, OutputFormat};

pub fn render(bundle: &ContextBundle, max_chars: usize, format: OutputFormat) -> String {
    match format {
        OutputFormat::Prompt => prompt::render(bundle, max_chars),
        OutputFormat::Markdown => markdown::render(bundle, max_chars),
        OutputFormat::Json => json::render(bundle),
    }
}

pub fn explain(bundle: &ContextBundle) -> String {
    markdown::render_explain(bundle)
}