zames_pro 2.82.128 → 2.82.129

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.82.129] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **tui:** a compact token count never renders 1000k or 1000.0M
15
+
10
16
  ## [2.82.128] - 2026-10-24
11
17
 
12
18
  ### Fixed
@@ -508,7 +508,20 @@ export function formatCompactTokens(tokens) {
508
508
  if (typeof tokens !== 'number' || !Number.isFinite(tokens) || tokens < 0) {
509
509
  return '';
510
510
  }
511
- const n = Math.round(tokens);
511
+ let n = Math.round(tokens);
512
+ // Promote BEFORE rendering when the ROUNDED value would read as a full next
513
+ // unit: 999 949 -> '1000k' (nonsense kilo) while the percentage beside it
514
+ // already says 100%, and 999 950 000 -> '1000.0M'. Same rule as
515
+ // attachments.formatSize.
516
+ if (Math.round(n / 1000) >= 1000 && n < 1_000_000)
517
+ n = 1_000_000;
518
+ if (Math.round((n / 1_000_000) * 10) / 10 >= 1000 && n < 1_000_000_000) {
519
+ n = 1_000_000_000;
520
+ }
521
+ if (n >= 1_000_000_000) {
522
+ const b = n / 1_000_000_000;
523
+ return (Number.isInteger(b) ? String(b) : b.toFixed(1)) + 'B';
524
+ }
512
525
  if (n >= 1_000_000) {
513
526
  const m = n / 1_000_000;
514
527
  return (Number.isInteger(m) ? String(m) : m.toFixed(1)) + 'M';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.128",
3
+ "version": "2.82.129",
4
4
  "description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen and other web LLMs — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
5
5
  "type": "module",
6
6
  "bin": {