zames_pro 2.82.4 → 2.82.5
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 +6 -0
- package/dist/commands.js +5 -1
- package/package.json +1 -1
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.5] - 2026-10-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **cost:** a non-finite duration renders as zero, not NaNs
|
|
15
|
+
|
|
10
16
|
## [2.82.4] - 2026-10-22
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/commands.js
CHANGED
|
@@ -158,7 +158,11 @@ export const EN_DURATION_UNITS = { h: 'h', m: 'm', s: 's' };
|
|
|
158
158
|
// Human-readable duration: "8s", "5m 12s", "1h 01m 01s". Seconds are padded
|
|
159
159
|
// only when a larger unit is present, so a lone "45s" is not "45s" padded.
|
|
160
160
|
export function formatDuration(ms, units = EN_DURATION_UNITS) {
|
|
161
|
-
|
|
161
|
+
// A non-finite input (NaN/Infinity from a clock jump or a subtraction of an
|
|
162
|
+
// absent timestamp) must not leak into the text: `Math.round(NaN)` stayed
|
|
163
|
+
// NaN and /cost printed "длительность: NaNs". Render it as zero.
|
|
164
|
+
const safeMs = typeof ms === 'number' && Number.isFinite(ms) ? ms : 0;
|
|
165
|
+
const total = Math.max(0, Math.round(safeMs / 1000));
|
|
162
166
|
const h = Math.floor(total / 3600);
|
|
163
167
|
const m = Math.floor((total % 3600) / 60);
|
|
164
168
|
const s = total % 60;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.5",
|
|
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": {
|