oracular / EventRecord
Interface: EventRecord
Defined in: types.ts:439
One line of a recorder log: an event the app observed and what the engine decided right after it. The event (name and at, never props) is what replay recomputes from; the decisions are kept apart so they can never be mistaken for inputs.
Example
ts
state = observe(state, event);
log.append(JSON.stringify(createRecord(state, event, recording)));Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
decisions | Record<string, RecordedDecision> | One entry per declared intent. | types.ts:446 |
event | object | - | types.ts:444 |
event.at | number | - | types.ts:444 |
event.name | string | - | types.ts:444 |
installId | string | - | types.ts:442 |
kind | "event" | - | types.ts:441 |
mode | RecordMode | - | types.ts:443 |
v | 1 | - | types.ts:440 |