zames_pro 2.82.86 → 2.82.87

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.87] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **export:** do not split a surrogate pair when clipping a tool result
15
+
10
16
  ## [2.82.86] - 2026-10-24
11
17
 
12
18
  ### Fixed
package/dist/commands.js CHANGED
@@ -287,7 +287,7 @@ export function formatExport(entries, meta = {}) {
287
287
  out.push(' -> ' +
288
288
  String(e.tool ?? '?') +
289
289
  ': ' +
290
- String(e.result ?? '').slice(0, 500));
290
+ clipExportText(String(e.result ?? ''), 500));
291
291
  }
292
292
  else if (type === 'assistant_final') {
293
293
  out.push('## Answer');
@@ -1221,3 +1221,13 @@ export function buildSlashCommandHints(opts) {
1221
1221
  }
1222
1222
  return base;
1223
1223
  }
1224
+ /** Cut an exported string WITHOUT splitting a surrogate pair. */
1225
+ function clipExportText(s, max) {
1226
+ if (s.length <= max)
1227
+ return s;
1228
+ let cut = max;
1229
+ const last = s.charCodeAt(cut - 1);
1230
+ if (last >= 0xd800 && last <= 0xdbff)
1231
+ cut--;
1232
+ return s.slice(0, cut);
1233
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.86",
3
+ "version": "2.82.87",
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": {