/**
* The LIVE tool-input card (owner, streaming round 2026-10-01): what a
* tool call looks like while the agent writes it — Braille spinner +
* shimmered activity label in the header (the retired bottom line's
* text, one glimmer recipe), the streaming input watchable on expand.
* These pins hold the working-state grammar on the card.
*/
import assert from "node:assert/strict";
import { describe, it } from "node:test";
import { renderToStaticMarkup } from "react-dom/server";
import { LiveToolCard } from "../components/artifacts/live-tool-card.tsx";
function part(tool: string, input: unknown) {
return { type: `tool-${tool}`, toolCallId: "c1", state: "input-streaming", input };
}
describe("LiveToolCard (the working-state grammar)", () => {
it("spinner + shimmered activity label + headline arg, input on expand", () => {
const html = renderToStaticMarkup(
]*>…<\/pre>/); }); });