Skip to main content

Module export_reflections

Module export_reflections 

Source
Expand description

v0.7.0 QW-1 — file-backed reflection chain export.

Ships the ai-memory export-reflections CLI subcommand so an operator can cat ~/.ai-memory/reflections/<namespace>/<id>.md and read what the substrate has synthesised without learning SQL.

§Wire shape

ai-memory export-reflections \
    --namespace team/alpha \
    --out-dir ~/.ai-memory/reflections \
    --format md \
    --since 2026-05-01T00:00:00Z \
    --quiet

The substrate is the source of truth: the SQL row is authoritative, the file on disk is a derived artefact. Operators may freely delete / regenerate the directory at any time.

Structs§

ExportReflectionsArgs
CLI args for ai-memory export-reflections.
ExportSummary
Result of one export-reflections run — returned so unit tests can assert on counts without re-parsing stdout.

Enums§

ExportFormat
Supported export formats. pub because the substrate-side hook at crate::hooks::post_reflect::auto_export carries an AutoExportConfig.format: ExportFormat field, and Rust requires the type to be at least as public as the field.

Functions§

run
Dispatch entry-point called from daemon_runtime::run.