free-coding-models 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -430,10 +430,13 @@ function renderTable(results, pendingPings, frame, cursor = null, sortColumn = '
|
|
|
430
430
|
const uptimeH = sortColumn === 'uptime' ? dir + ' Up%' : 'Up%'
|
|
431
431
|
|
|
432
432
|
// 📖 Helper to colorize first letter for keyboard shortcuts
|
|
433
|
+
// 📖 IMPORTANT: Pad PLAIN TEXT first, then apply colors to avoid alignment issues
|
|
433
434
|
const colorFirst = (text, width, colorFn = chalk.yellow) => {
|
|
434
435
|
const first = text[0]
|
|
435
436
|
const rest = text.slice(1)
|
|
436
|
-
|
|
437
|
+
const plainText = first + rest
|
|
438
|
+
const padding = ' '.repeat(Math.max(0, width - plainText.length))
|
|
439
|
+
return colorFn(first) + chalk.dim(rest + padding)
|
|
437
440
|
}
|
|
438
441
|
|
|
439
442
|
// 📖 Now colorize after padding is calculated on plain text
|
|
@@ -441,7 +444,7 @@ function renderTable(results, pendingPings, frame, cursor = null, sortColumn = '
|
|
|
441
444
|
const tierH_c = colorFirst('Tier', W_TIER)
|
|
442
445
|
const originH_c = sortColumn === 'origin' ? chalk.bold.cyan(originH.padEnd(W_SOURCE)) : colorFirst(originH, W_SOURCE)
|
|
443
446
|
const modelH_c = colorFirst(modelH, W_MODEL)
|
|
444
|
-
const sweH_c = sortColumn === 'swe' ? chalk.bold.cyan(sweH.padEnd(W_SWE)) : colorFirst(
|
|
447
|
+
const sweH_c = sortColumn === 'swe' ? chalk.bold.cyan(sweH.padEnd(W_SWE)) : colorFirst(sweH, W_SWE)
|
|
445
448
|
const pingH_c = sortColumn === 'ping' ? chalk.bold.cyan(pingH.padEnd(W_PING)) : colorFirst('Latest Ping', W_PING)
|
|
446
449
|
const avgH_c = sortColumn === 'avg' ? chalk.bold.cyan(avgH.padEnd(W_AVG)) : colorFirst('Avg Ping', W_AVG)
|
|
447
450
|
const conditionH_c = sortColumn === 'condition' ? chalk.bold.cyan(conditionH.padEnd(W_STATUS)) : colorFirst('Condition', W_STATUS)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "free-coding-models",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"description": "Find the fastest coding LLM models in seconds — ping free models from multiple providers, pick the best one for OpenCode, Cursor, or any AI coding assistant.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nvidia",
|