feat: self-contained HTML dashboard for eval results#584
Merged
Conversation
Add html-writer.ts implementing OutputWriter interface that produces a single self-contained .html report file with all CSS/JS inlined. Views: - Overview: stat cards (total/passed/failed/errors/pass rate/duration/tokens/cost), multi-target comparison table, score distribution histogram - Test Cases: filterable/sortable table with per-evaluator score columns, expandable detail rows showing input/output, evaluator reasoning, expectations, and metadata Features: - Tab-based navigation between Overview and Test Cases views - Filter by status (pass/fail/error), target, and search by test ID - Sortable columns with direction indicators - Color-coded scores (green ≥90%, yellow ≥50%, red <50%) - Meta-refresh (2s) during live eval runs, removed on close - Thread-safe concurrent writes via Mutex - No external network requests, works fully offline - Zero new runtime dependencies Registration: - .html/.htm extension auto-detection in createWriterFromPath - 'html' format option in createOutputWriter - Updated CLI help text for --output and --output-format flags Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
agentv convert results.jsonl -o report.html When --out ends in .html or .htm, routes through HtmlWriter instead of the default YAML conversion. Falls back to a .html-suffixed path when no --out is given and the output extension is html. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #562 (MVP scope) — adds
html-writer.tsthat produces a self-contained.htmlreport file with all CSS/JS inlined. Zero external dependencies, works offline.Changes
apps/cli/src/commands/eval/html-writer.ts— NewHtmlWriterclass implementingOutputWriterapps/cli/src/commands/eval/output-writer.ts— Registered.html/.htmextension andhtmlformatapps/cli/src/commands/eval/commands/run.ts— Updated CLI help textDashboard Views
Overview Tab
Test Cases Tab
Technical Details
close()MutexJsonWriter,JsonlWriter)Usage
Closes #562 (MVP scope)