Kanshō

Docs / Sandbox and code /

RunSummaryCard

Post-run summary card: duration, exit code, stdout preview, and resource usage.

Preview

run_01hwfp3n9xj7tz4

Today at 10:22:43

All passed
Duration1m 42s
Spend$0.28
Tests9/9
Receiptrcpt_7x2k9q

Variants

Passed

run_01hwfp3n9xj7tz4

Today at 10:22:43

All passed
Duration1m 42s
Spend$0.28
Tests9/9
Receiptrcpt_7x2k9q

Failed

run_01hwfp4m2ab8kz1

Today at 10:25:07

Failed
Duration2m 07s
Spend$0.31
Tests7/9(2 failed)
Receiptrcpt_9r4m2p

Running

run_01hwfp5q7cd9lx3

Running
Duration0m 34s

Props

PropTypeDescription
runId*stringShort run identifier shown in the header (e.g. 'run_01hwf...').
outcome*"passed" | "failed" | "warning" | "running"Overall result — controls the background tint and status pill.
duration*stringTotal wall-clock time as a formatted string (e.g. '1m 42s').
spendstringFormatted LLM spend (e.g. '$0.28').
totalTestsnumberTotal test count.
passedTestsnumberPassed test count.
failedTestsnumberFailed test count — shown in red when > 0.
receiptIdstringVerification receipt ID. When onViewReceipt is also provided, renders as a clickable link.
onViewReceipt(receiptId: string) => voidClick handler for the receipt link.
completedAtstringHuman-readable completion timestamp.
classNamestringAdditional class names for the root element.

* required.

Usage

import { RunSummaryCard } from "@/components/sandbox/run-summary-card";

<RunSummaryCard
  runId="run_01hwfp3n9xj7tz4"
  outcome="passed"
  duration="1m 42s"
  spend="$0.28"
  totalTests={9}
  passedTests={9}
  receiptId="rcpt_7x2k9q"
  completedAt="Today at 10:22:43"
/>