Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions scripts/ci/check-pages-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,35 @@ fail() {
[[ -f "$page_dir/index.html" ]] || fail "missing index.html in $page_dir"
[[ -f "$page_dir/demo-report.html" ]] || fail "missing demo-report.html in $page_dir"

demo_report="$page_dir/demo-report.html"
version="$(sed -nE 's/^const Version = "([^"]+)"/\1/p' "$repo_root/internal/engine/engine.go")"
[[ -n "$version" ]] || fail "could not read internal/engine Version"

if ! grep -q "<div class=\"meta\">v$version" "$page_dir/demo-report.html" &&
! grep -qi "static sample data" "$page_dir/demo-report.html"; then
if ! grep -q "<div class=\"meta\">v$version" "$demo_report" &&
! grep -qi "static sample data" "$demo_report"; then
fail "demo-report.html must use current version metadata or clearly identify static sample data"
fi

has_static_sample=false
if grep -qi "static sample data" "$demo_report"; then
has_static_sample=true
fi

has_current_evidence=false
if grep -qi "Incident timeline" "$demo_report" &&
grep -Eqi "tool authority|authority categories" "$demo_report"; then
has_current_evidence=true
fi

if [[ "$has_static_sample" == false && "$has_current_evidence" == false ]]; then
fail "demo-report.html must include current report evidence markers or clearly identify static sample data"
fi

if [[ "$has_static_sample" == true ]] &&
! grep -Eqi "local-first|local coding-agent traces|No hosted tracing|No prompt upload|uploaded logs" "$demo_report"; then
fail "static demo-report.html sample must keep local-first/no-upload wording"
fi

for asset in \
assets/agenttrace-demo.gif \
assets/hero-banner.png \
Expand Down
3 changes: 1 addition & 2 deletions site/demo-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<body>
<main>
<header>
<div><div class="brand">agenttrace</div><h1>AI agent session overview</h1><p>Static report generated from local coding-agent traces.</p></div>
<div><div class="brand">agenttrace</div><h1>AI agent session overview</h1><p>Static report generated from local coding-agent traces.</p><p>Static sample data: this local-first snapshot is a representative public artifact, not a full current generated report; current demo output may include incident timelines, baseline comparison fields, and tool authority summaries. No hosted tracing or uploaded logs.</p></div>
<div class="meta">v0.4.6<br>1761 Sessions<br><code>agenttrace --overview -f html</code></div>
</header>
<div class="grid" aria-label="summary metrics">
Expand Down Expand Up @@ -98,4 +98,3 @@
</main>
</body>
</html>