reconstructAtIndex

fun reconstructAtIndex(initialStateJson: String, actions: List<CapturedAction>, index: Int): String

Reconstructs the full state at a given action index by applying all deltas from index 0 through the given index onto the initial state.

Return

The reconstructed full state JSON string at the given index

Parameters

initialStateJson

The initial full state captured at session start

actions

The list of captured actions with module-level deltas

index

The index (inclusive) up to which to apply deltas