/**
 * Determines the source of an optimization based on event_type
 */
export function getTraceSource(eventType: string | null): string {
  if (!eventType) return "Unknown"

  if (eventType === "pr_created" || eventType === "pr_merged" || eventType === "pr_closed") {
    return "GitHub Action"
  }

  if (eventType === "no-pr") {
    return "CLI/VSCode"
  }

  return eventType
}