package com.correx.core.kernel.orchestration

import com.correx.core.events.orchestration.OrchestrationState
import com.correx.core.events.types.SessionId
import com.correx.core.sessions.projections.replay.EventReplayer

class OrchestrationRepository(
    private val replayer: EventReplayer<OrchestrationState>,
) {
    fun getState(sessionId: SessionId): OrchestrationState = replayer.rebuild(sessionId)
}
