Expand description
Per-commit wire envelope and entity-change variants.
Engine-owned value types in the memstead-base::ops family
(sibling to Diff,
ChangeEnvelope,
MemChangedEvent).
Mirrors the browser-sync JSON shapes one-to-one: the commit envelope and the SSE event.
Two producers exist today:
- Native embedders — walk a git-branch tree-diff to build envelopes from native repos for thin-client consumers.
- WASM clients — receive envelopes over the bridge wire and pass
them to
crate::Engine::apply_external_committo materialize the new state in their in-memory store.
Field order matches the spec; field names are the canonical wire identifiers — do not rename or reshape without bumping the wire-format version.
Structs§
- Commit
Envelope - One commit’s wire envelope. JSON example from the spec:
Enums§
- Entity
Change - One entity-level change carried by a
CommitEnvelope. Tagged via theopdiscriminator so the wire shape matches the spec’s{ "op": "...", ... }envelope.