zames_pro 2.82.63 → 2.82.64

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.64] - 2026-10-23
11
+
12
+ ### Fixed
13
+
14
+ - **attachments:** never render a size as 1024.0 KB
15
+
10
16
  ## [2.82.63] - 2026-10-23
11
17
 
12
18
  ### Fixed
@@ -78,8 +78,13 @@ export function formatSize(bytes) {
78
78
  const n = Number(bytes) || 0;
79
79
  if (n < 1024)
80
80
  return n + ' B';
81
- if (n < 1024 * 1024)
82
- return (n / 1024).toFixed(1) + ' KB';
81
+ if (n < 1024 * 1024) {
82
+ const kb = (n / 1024).toFixed(1);
83
+ // toFixed ROUNDS: just under a megabyte the quotient is 1023.999 KB and
84
+ // the operator saw "1024.0 KB" — a size that should be "1.0 MB".
85
+ if (kb !== '1024.0')
86
+ return kb + ' KB';
87
+ }
83
88
  return (n / (1024 * 1024)).toFixed(1) + ' MB';
84
89
  }
85
90
  export function isImageName(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.63",
3
+ "version": "2.82.64",
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": {