Skip to main content

Module history

Module history 

Source
Expand description

History, snapshots, the session log, and review primitives – all as values.

Undo/redo is not a bespoke command stack: each edit is recorded as a forward operation and its inverse operation (the same set-value op pointing at the prior value), reusing event/effect ledger semantics. Undoing replays the inverse through realize; redoing replays the forward. Snapshots, the edit log, and annotations are plain SIM values, so prior states can be inspected and restored as data.

Structs§

History
An undo/redo history recorded as inverse operations in a value-backed ledger.
SessionLog
Append-only session event log, kept as a value.
Snapshots
Named snapshots of values (workspaces or objects), kept as data.

Functions§

annotate
Attach a review comment to an object, returning the object with an appended annotation. Annotations are object-review primitives kept as data.