/**
 * Checkpoint list item for sidebar grouping
 * The id field contains the resourceId of the human checkpoint
 */
export interface CheckpointListItem {
  /** Human checkpoint resourceId (or 'ungrouped' for tasks without checkpoint) */
  id: string
  /** Display name (same as id, or "Ungrouped" for null) */
  name: string
  /** Task count for this checkpoint */
  count: number
}

/**
 * Status counts for pie chart display
 */
export interface StatusCounts {
  pending: number
  completed: number
  expired: number
}

/**
 * Priority counts for donut chart display
 */
export interface PriorityCounts {
  critical: number
  high: number
  medium: number
  low: number
}

/**
 * Response from GET /command-queue/checkpoints endpoint
 */
export interface CheckpointListResponse {
  checkpoints: CheckpointListItem[]
  /** Total tasks across all checkpoints */
  total: number
  /** Breakdown by status for donut chart */
  statusCounts: StatusCounts
  /** Breakdown by priority for donut chart */
  priorityCounts: PriorityCounts
}
