Skip to main content

Module observer

Module observer 

Source
Expand description

The IndexObserver the client registers on the vault, and the dirty-set it feeds. The dirty-set is deliberately best-effort in-memory: a lost entry costs a reconciliation pass, not a lost update.

Structs§

DirtySet
Set of notes changed since the last drain, keyed by path (latest op per path).
RagObserver
Registered on the vault; folds every note change into the shared DirtySet.

Enums§

DirtyOp
The pending change for a note. The latest event wins, so an Upsert followed by a Delete on the same path collapses to Delete (and vice-versa). Upsert carries the note’s content hash from the (post-commit) change event, which matches the chunks the index holds for it at drain time.