Skip to main content

Module builder

Module builder 

Source
Expand description

Builds a ContextSnapshotV1 from the live context stores (GL #1024).

The builder is split into pure projections (*_from_* / *_slice), which map a loaded store into a bounded snapshot slice and are unit-tested with in-memory fixtures, and impure anchors (git_anchor, project_slice), which read git / the filesystem. build orchestrates them and finalizes the id (signing it when requested); create additionally persists the snapshot and appends it to the append-only timeline.

Structs§

SnapshotOptions
Inputs for building a snapshot.

Functions§

build
Build an in-memory snapshot from the current store state, finalizing its id (and signing it when opts.sign). Does not persist anything.
create
Build, persist, and append the snapshot to the project’s timeline.