* fix(cli): capture checks the page's token result before using it
extractTokens cast the page's evaluate result straight to DesignTokens.
The page can redefine the built-ins its script uses, so headings or ctas
could come back as objects whose length is text, and buildPrompt wrote
that text into AGENTS.md, CLAUDE.md and .cursorrules as a count.
normalizeDesignTokens rebuilds every field to its declared type and
bounds each list and text before anything reads the tokens, and
buildPrompt counts only real lists.
* fix(cli): keep the token fields in the script's order and drop URLs a cut would break
The agent-file count helper is named for what it reads instead of carrying
a comment. ogImage, section asset URLs, background images and CTA links over
their limit are dropped whole rather than cut to a different address, and
the normalised tokens keep the extract script's key order so tokens.json is
unchanged for a normal page. The existing agent-file test now also covers
headings and CTAs whose length is text.
* test(cli): cover each value the token check drops whole