Run Summary

An agent's run folded into "Worked for 2m 30s", opening to past-tense receipts and the actions it took in each page.

Worked for 2m 30s
  1. Opened the data room · 5 filesNavigate to URL
  2. Read Halden-usage-Q4.xlsx · 9,100 workflows in November
  3. Read #acct-halden · 12 messagesScrollTake screenshot
  4. Skipped: check the CRM · CRM isn't connected
  5. Added slide 8 to Halden-Account-Plan.pptx · in the deck's style

Done — I added an executive-ready forecast slide as slide 8, in the deck's own style.

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/run-summary

Usage

import { RunSummary } from "./ui/uicontext/components/kit/RunSummary.ts"
const Message = UiSchema.TaggedEnum({ ToggledRun: { id: Schema.String, open: Schema.Boolean } })// "Worked for 2m 30s" once done; whether it's open is yoursexport const Run = (h: Html.H<typeof Message.Type>, open: boolean) =>	RunSummary(h, {		seconds: 150,		running: false,		receipts: [{ id: "r1", kind: "browser", text: "Opened the pricing page", actions: ["Navigate to URL", "Click"] }],		open,		onToggle: (isOpen) => Message.ToggledRun({ id: "run-1", open: isOpen }),	})

Examples

While it works

Open on its own, with how long it has worked and what it's on now; receipts slide in as they land.

Working · 42s· Reading Quillstack's pricing…
  1. Opened fernway.example/pricingNavigate to URLScrollTake screenshot
  2. Opened quillstack.example/pricingNavigate to URLClick

API reference

ReceiptView function

Options

Receipt options
NameTypeDescription
idrequiredstring—
kindrequired"browser" | "computer" | "file" | "connector" | "search" | "sheet" | "document" | "slides" | "mail" | "think"—
textrequiredstringWhat it did, in the past tense: "Opened the data room"
detailstringA quieter second part: the file, the site, "3 files"
actionsstring[]What it did inside a page, in order: "Click", "Navigate to URL", "Take screenshot"
problemstringSkipped for want of access, or failed: said in place of the detail

RunSummaryView function

Options

RunSummary options
NameTypeDescription
secondsrequirednumberHow long the run has worked, or worked in all
runningrequiredboolean—
receiptsrequiredRunReceipt[]What it did, oldest first
currentstringWhat it's on now, while running: "Using the browser"
openbooleanOpen: the receipts show. Left out: open while running.
onToggle(open: boolean) => Message—
styleStyle—

Source