package com.correx.apps.server.registry

import com.correx.core.transitions.graph.WorkflowGraph
import kotlinx.serialization.Serializable

interface WorkflowRegistry {
    fun listAll(): List<WorkflowSummary>
    fun find(workflowId: String): WorkflowGraph?
}

@Serializable
data class WorkflowSummary(
    val workflowId: String,
    val description: String,
    val stageIds: List<String> = emptyList(),
)
