feat: add inline token count etc and fix venv

This commit is contained in:
Brooklyn Nicholson
2026-04-15 10:20:56 -05:00
parent 561cea0d4a
commit 33c615504d
21 changed files with 984 additions and 459 deletions

View File

@@ -211,7 +211,7 @@ const COMPACT_NUMBER = new Intl.NumberFormat('en-US', {
notation: 'compact'
})
export const fmtK = (n: number) => COMPACT_NUMBER.format(n)
export const fmtK = (n: number) => COMPACT_NUMBER.format(n).replace(/[KMBT]$/, s => s.toLowerCase())
export const hasInterpolation = (s: string) => {
INTERPOLATION_RE.lastIndex = 0