import Link from "next/link"; import AppShell from "@/components/shell/AppShell"; import { EmptyState } from "@/components/ui/empty-state"; import { LitList } from "@/components/ui/lit-list"; import { LitLine } from "@/components/ui/lit-line"; import { researchHref } from "@/lib/research/hrefs"; import { listRuns } from "@/lib/research/runs"; import { runHref } from "@/lib/research/runs-hrefs"; export const dynamic = "force-dynamic"; // EVERY SWEEP RUN (plans/umtool-redesign.md, R3): the article store's sweep // iterations, newest first, each linking its run page. Read only. export default async function RunsPage() { const rows = await listRuns().catch(() => []); const live = rows.filter((r) => r.status === "running" || r.status === "queued").length; return (
{rows.length === 0 ? ( ) : ( {rows.map((r) => ( {r.article} i{r.n} {r.question ?? "—"} {r.model} {r.status} {r.from === "turns" ? " · turns" : r.from === "none" ? " · no record" : ""} ${r.usd.toFixed(2)} ))} )}
); }