zames_pro 2.82.110 → 2.82.111

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.111] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **cost:** a tool name with a newline cannot break the /cost report
15
+
10
16
  ## [2.82.110] - 2026-10-24
11
17
 
12
18
  ### Fixed
package/dist/commands.js CHANGED
@@ -229,10 +229,14 @@ export function renderCost(stats, transcriptFile, tokenUsage = null, t = transla
229
229
  lines.push(t('cost.auto_compacts', { n: String(stats.autoCompacts) }));
230
230
  }
231
231
  const top = Object.entries(stats.toolCounts).sort((a, b) => b[1] - a[1]);
232
+ // A tool NAME is arbitrary text (the model invents it, an MCP server
233
+ // declares it): a newline would start a new line of the report and could
234
+ // spoof an `[OK]` doctor row. Collapse it to one line.
235
+ const nameLine = (v) => v.replace(/\s+/g, ' ');
232
236
  if (top.length) {
233
237
  lines.push(t('cost.by_tool'));
234
238
  for (const [name, n] of top)
235
- lines.push(' ' + name + ': ' + n);
239
+ lines.push(' ' + nameLine(name) + ': ' + n);
236
240
  }
237
241
  // T-D3: where the time went. Sort by total ms, show the top tools with the
238
242
  // count and a human duration, so Read→Edit cycles and slow Bash calls are
@@ -244,7 +248,7 @@ export function renderCost(stats, transcriptFile, tokenUsage = null, t = transla
244
248
  lines.push(t('cost.by_time', { dur: formatDuration(stats.toolMs) }));
245
249
  for (const [name, ms] of byTime.slice(0, 8)) {
246
250
  const count = stats.toolCounts[name] ?? 0;
247
- lines.push(' ' + name + ': ' + formatDuration(ms) + ' ×' + count);
251
+ lines.push(' ' + nameLine(name) + ': ' + formatDuration(ms) + ' ×' + count);
248
252
  }
249
253
  }
250
254
  lines.push(t('cost.duration', { dur: formatDuration(stats.durationMs) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.110",
3
+ "version": "2.82.111",
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": {