Skip to content

Interface: MutatorOrigin

Defined in: core/src/mutators.ts:62

Runtime origin information available to a mutator body — the per-tab clientID and the mutation’s monotonic id. Optional on the type so both client-side optimistic invocation and server-side canonical replay can pass compatible params (server-side wiring lands in Phase 4). CRDT primitives that need a stable “who incremented?” identifier (e.g. G-Counter / PN-Counter) read this off the mutator params instead of forcing users to plumb clientID from outside — Alpha (dogfood) called out the missing exposure as a hard blocker for building any CRDT-backed feature.

readonly optional clientID?: string

Defined in: core/src/mutators.ts:63


readonly optional mutationID?: number

Defined in: core/src/mutators.ts:64