#149

fix(cli): round token metrics to prevent table layout breakage

OpenYoucef3939wants to merge intofrom

What changed

rounded token values before rendering the metrics table and updated formatTokens() to render numbers under 1K as whole integers added a unit test to assert float to integer behavior

Why

some projects produced fractional token counts (e.g. 12.7) which became string values in table cells and broke the fixed-width table borders. rounding ensures token counts are whole numbers and preserves table layout

Verification

  • pnpm test passes
  • pnpm lint passes
  • pnpm knip passes
  • If this adds a matcher: ran it against at least one real repo and confirmed the candidate count is sane

Notes for reviewer

nothing worth mentioning!

Activity

3
vercel[bot]3mo ago

@Youcef3939 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot]reviewed3mo ago