zames_pro 2.82.40 → 2.82.41

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.41] - 2026-10-22
11
+
12
+ ### Fixed
13
+
14
+ - **telemetry:** accept a stringified blockMs in the average
15
+
10
16
  ## [2.82.40] - 2026-10-22
11
17
 
12
18
  ### Fixed
@@ -45,12 +45,12 @@ export function summarizeSends(events, now = Date.now()) {
45
45
  const t = Date.parse(e.at);
46
46
  return Number.isFinite(t) && now - t <= ms;
47
47
  }).length;
48
+ // `blockMs` may arrive as a NUMBER (the writer) or a string (an older
49
+ // build, a hand-edited file): a numeric string is accepted so the average
50
+ // is not silently 0 for a file that records the block.
48
51
  const blocks = events
49
- .filter((e) => e.outcome === 'rate_limit' &&
50
- typeof e.blockMs === 'number' &&
51
- Number.isFinite(e.blockMs) &&
52
- e.blockMs >= 0)
53
- .map((e) => e.blockMs);
52
+ .map((e) => Number(e.blockMs))
53
+ .filter((n) => Number.isFinite(n) && n >= 0);
54
54
  const avgBlockMs = blocks.length
55
55
  ? Math.round(blocks.reduce((a, b) => a + b, 0) / blocks.length)
56
56
  : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.40",
3
+ "version": "2.82.41",
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": {