Runs an edit. recipe mutates a draft (use the functions from ops.ts). If it throws, the
project is unchanged and the error is re-thrown. Returns the recipe's return value.
Optionaloptions: ApplyOptionsOptionalmarkers?: { id: string; label?: string; time: number }[]Markers, in time order (file version 4+).
OptionalexportRange?: { end: number; start: number }The part of the timeline to export (in / out points, flicks; end exclusive). Optional
(file version 3+); missing = the whole video. May lie past the end after edits: exports
clamp it to the video's length.
Undoes or redoes until position steps are applied (see HistoryView). Each step is
logged as its own undo / redo. Returns false if position is out of range.
The history as a list, for showing it.
Replaces the project (e.g. opening another one); clears history.
Optionalmarkers?: { id: string; label?: string; time: number }[]Markers, in time order (file version 4+).
OptionalexportRange?: { end: number; start: number }The part of the timeline to export (in / out points, flicks; end exclusive). Optional
(file version 3+); missing = the whole video. May lie past the end after edits: exports
clamp it to the video's length.
Called after every commit, undo and redo — persist the entry for autosave/crash recovery.
The editor's state container: project + undo/redo + operation log.