zames_pro 2.82.63 → 2.82.65
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 +12 -0
- package/dist/attachments.js +19 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.82.65] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **attachments:** show gigabytes and never a non-finite size
|
|
15
|
+
|
|
16
|
+
## [2.82.64] - 2026-10-23
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **attachments:** never render a size as 1024.0 KB
|
|
21
|
+
|
|
10
22
|
## [2.82.63] - 2026-10-23
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/attachments.js
CHANGED
|
@@ -75,12 +75,27 @@ export function extForMime(mime) {
|
|
|
75
75
|
return '';
|
|
76
76
|
}
|
|
77
77
|
export function formatSize(bytes) {
|
|
78
|
-
|
|
78
|
+
// A non-finite count (a size derived from a broken Content-Length or a
|
|
79
|
+
// failed stat) used to render as `Infinity MB`.
|
|
80
|
+
const raw = Number(bytes);
|
|
81
|
+
const n = Number.isFinite(raw) ? raw : 0;
|
|
79
82
|
if (n < 1024)
|
|
80
83
|
return n + ' B';
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
const units = ['KB', 'MB', 'GB', 'TB'];
|
|
85
|
+
let value = n / 1024;
|
|
86
|
+
let unit = 0;
|
|
87
|
+
// Promote while the ROUNDED value would read as a full next unit: 1023.999
|
|
88
|
+
// KB rounds to "1024.0 KB", which should be "1.0 MB" (the same for GB/TB).
|
|
89
|
+
while (value >= 1024 && unit < units.length - 1) {
|
|
90
|
+
value /= 1024;
|
|
91
|
+
unit++;
|
|
92
|
+
}
|
|
93
|
+
// Only a ROUNDED 1024.0 needs one more promotion step (1023.999 KB).
|
|
94
|
+
if (value.toFixed(1) === '1024.0' && unit < units.length - 1) {
|
|
95
|
+
value /= 1024;
|
|
96
|
+
unit++;
|
|
97
|
+
}
|
|
98
|
+
return value.toFixed(1) + ' ' + units[unit];
|
|
84
99
|
}
|
|
85
100
|
export function isImageName(name) {
|
|
86
101
|
return IMAGE_EXTS.includes(path.extname(String(name || '')).toLowerCase());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.65",
|
|
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": {
|