from fastapi import APIRouter

from api.schemas.ops_run import OpsRunProjection
from api.services.ops_run_projection import get_ops_run_projection


router = APIRouter(prefix="/ops-runs", tags=["ops-runs"])


@router.get("/summary", response_model=OpsRunProjection)
async def get_ops_runs_summary(refresh: bool = False) -> OpsRunProjection:
    """Project activity-core queue health; State Hub never claims ops runs."""
    return await get_ops_run_projection(refresh=refresh)
