import { Link } from "@tanstack/react-router"; import { CheckCircleIcon, GitBranchIcon, GitPullRequestIcon } from "@phosphor-icons/react"; import { formatRelativeTime } from "@/lib/agents/api"; import type { AgentThread } from "@/lib/agents/types"; import { cn } from "@/lib/utils"; interface AgentRunCardProps { thread: AgentThread; } export function AgentRunCard({ thread }: AgentRunCardProps) { const stats = thread.diffStats; const hasPr = Boolean(thread.pr); return (