Skip to main content

Module previews

Module previews 

Source
Expand description

Preview-artifact records: schema and append-only JSONL log.

Each PreviewRecord captures the source, output path, and critique annotations of one rendered preview artifact. Records are written by the caller after the render completes; this module performs no clock reads or hash computation — those values arrive pre-computed on the record.

Structs§

PreviewCritique
A single critique annotation attached to a preview artifact.
PreviewRecord
A top-level preview-artifact record appended to previews.jsonl.

Functions§

append_preview
Append one preview-artifact record to the document’s previews log.
read_previews
Read all preview-artifact records for a document in append order.