mirror of
https://github.com/vercel-labs/json-render.git
synced 2026-09-14 13:41:32 +08:00
e2d00faeaa
* Add harness-chat example: json-render as the UI for agent harnesses A Claude Code agent runs in a Vercel Sandbox via AI SDK 7's experimental HarnessAgent and reports its work (steps, file changes, terminal output, test results) as a streamed json-render spec. Because HarnessAgent.stream() returns a standard StreamTextResult, the existing pipeJsonRender -> useJsonRenderMessage pipeline works unchanged. The example pins matching AI SDK 7 canary packages so the harness adapter, React hooks, and Vercel sandbox transport resolve together. * harness-chat: fix dev-runtime issues found in live run - allowedDevOrigins for the portless proxy origin (Next 16 silently fails to hydrate on non-allowlisted cross-origin dev requests) - serverExternalPackages for the harness adapter, which loads its sandbox bridge via new URL(..., import.meta.url) and cannot be bundled - README: document CLI-login (TTY) vs OIDC sandbox auth paths * harness-chat: agent picker, charts, and design polish - Add a UI agent selector (Claude Code / Codex / Pi) with per-agent harness sessions and monochrome brand marks - Add monochrome bar/line chart components to the catalog and registry - Polish the chat shell: minimalist Geist/Geist-Mono design, tool-call icons + containers, inline-code shading, and a working text shimmer * harness-chat: add mermaid diagrams to README - Replace the ASCII data-flow sketch with a mermaid flowchart and a sequence diagram of a turn - Update prose/setup to reflect the three-agent selector (Claude Code / Codex / Pi) * Fix harness chat reset and signed charts