/* The history summary line: how it groups, and how it wraps. * * The line packs several categories into one strip -- a count, tok/s, prefill, ttft -- and each * category carries its own figures. Two rules the page must keep: * * a category is ATOMIC. If it does not fit on the line it moves whole to the next line. It * must never break mid-figure: "810" at the end of one line and "ms" on the next is worse * than the wrap it replaced. * the category break is a DOT and the break between figures inside one category is a PIPE. * * Both rules are structural, not string-level: HTML collapses runs of spaces, so the width of a * category break cannot come from spaces in the joined string. It comes from a padded element. * That is why these checks inspect the DOM the shipped code builds rather than the string it * used to build -- a string assertion here would have passed while the page rendered wrong. */ const fs = require("fs"); const path = require("path"); const src = require("./page.js"); // the page's