zames_pro 2.82.94 → 2.82.96
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/mcp.js +6 -0
- package/dist/send-telemetry.js +9 -2
- 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.96] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **telemetry:** keep the average block duration finite in /limits
|
|
15
|
+
|
|
16
|
+
## [2.82.95] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **mcp:** use toolResult when content carries nothing usable
|
|
21
|
+
|
|
10
22
|
## [2.82.94] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/mcp.js
CHANGED
|
@@ -298,6 +298,12 @@ export function renderMcpResult(result, limit = MCP_RESULT_LIMIT) {
|
|
|
298
298
|
.filter((p) => p !== '')
|
|
299
299
|
.join(String.fromCharCode(10) + String.fromCharCode(10))
|
|
300
300
|
.trim();
|
|
301
|
+
// A result may carry BOTH a (blank/empty) `content` list AND the real payload
|
|
302
|
+
// in `toolResult` (an SDK server that attaches it there). Preferring content
|
|
303
|
+
// unconditionally reported "(no content)" and DROPPED the real output.
|
|
304
|
+
if (!text && r.toolResult !== undefined) {
|
|
305
|
+
return truncateMcpResult(formatResultString(r.toolResult, r.isError), limit);
|
|
306
|
+
}
|
|
301
307
|
return truncateMcpResult(formatResultString(text || '(MCP tool returned no content)', r.isError), limit);
|
|
302
308
|
}
|
|
303
309
|
function formatResultString(result, isError) {
|
package/dist/send-telemetry.js
CHANGED
|
@@ -60,9 +60,16 @@ export function summarizeSends(events, now = Date.now()) {
|
|
|
60
60
|
// rate-limit event only records `blockedAt`) was averaged as a ZERO-length
|
|
61
61
|
// block, halving the reported average. Only a REAL value counts.
|
|
62
62
|
.map((e) => e.blockMs === null || e.blockMs === undefined ? NaN : Number(e.blockMs))
|
|
63
|
-
|
|
63
|
+
// A finite value is not enough: the SUM of many large durations overflows
|
|
64
|
+
// a JS number (two `Number.MAX_VALUE` entries add up to Infinity), so the
|
|
65
|
+
// average became Infinity / an out-of-safe-range number and `/limits`
|
|
66
|
+
// printed "average block: Infinitys". A duration is a millisecond count,
|
|
67
|
+
// so anything beyond the safe-integer range is corrupt data, not a block.
|
|
68
|
+
.filter((n) => Number.isFinite(n) && n >= 0 && n <= Number.MAX_SAFE_INTEGER);
|
|
69
|
+
// Dividing BEFORE summing keeps the total in range for any number of entries
|
|
70
|
+
// (the largest accepted value alone is already near the overflow point).
|
|
64
71
|
const avgBlockMs = blocks.length
|
|
65
|
-
? Math.round(blocks.reduce((a, b) => a + b
|
|
72
|
+
? Math.min(Number.MAX_SAFE_INTEGER, Math.round(blocks.reduce((a, b) => a + b / blocks.length, 0)))
|
|
66
73
|
: 0;
|
|
67
74
|
return {
|
|
68
75
|
last10m: within(10 * 60_000),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.96",
|
|
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": {
|