#149
fix(cli): round token metrics to prevent table layout breakage
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 testpasses -
pnpm lintpasses -
pnpm knippasses - 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!
@Youcef3939 is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.