Agent output
FreeReview a file change line by line, read what a tool returned, and watch a reply arrive.
+7 −5
| import { useState } from "react"; | |||
| Removed: export function Counter({ start = 0 }: { start?: number }) { | |||
| Added: export function Counter({ start = 0, step = 1 }: { start?: number; step?: number }) { | |||
| const [count, setCount] = useState(start); | |||
| Removed: const label = "Count: " + count; | |||
| Added: const label = `Count: ${count}`; | |||
| function increment() { | |||
| Removed: setCount(count + 1); | |||
| Added: setCount((current) => Math.min(current + step, maxCount)); | |||
| } | |||
| return ( | |||
| <div className="counter"> | |||
| Removed: <p>{label}</p> | |||
| Removed: <button onClick={increment}>Add</button> | |||
| Added: <p aria-live="polite">{label}</p> | |||
| Added: <button onClick={increment} disabled={count >= maxCount}> | |||
| Added: Add | |||
| Added: </button> | |||
| </div> | |||
| ); | |||
| } | |||
> caliper@0.4.0 test> vitest run
✓ src/counter.test.tsx (4 tests) 38ms ✓ src/table.test.tsx (12 tests) 91ms ✓ src/tree.test.tsx (9 tests) 64ms ✗ src/thread.test.tsx (6 tests | 1 failed) 120ms → expected "Not sent" but received "Sending…"
Test Files 1 failed | 3 passed (4) Tests 1 failed | 30 passed (31) Duration 1.02s| file | line | match |
|---|---|---|
| src/table.tsx | 42 | sortValue |
| src/sortable-table.tsx | 18 | sortValue |
| docs/DESIGN.md | 311 | sortValue |
getDeployment output
- { 5 keys }
- id"dep_81"
- state"ready"
- region"lhr1"
- url"https://example.com"
- checks{ 2 keys }
$Page appearance
Components #
Each component has its own page with a focused preview, installation, usage and API.