Convert State Stream to Events | Anthropic Coding Question