zames_pro 2.82.85 → 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 +12 -0
- package/dist/commands.js +17 -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.87] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **export:** do not split a surrogate pair when clipping a tool result
|
|
15
|
+
|
|
16
|
+
## [2.82.86] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **review:** collapse whitespace in the review focus text
|
|
21
|
+
|
|
10
22
|
## [2.82.85] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### 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 ?? '')
|
|
290
|
+
clipExportText(String(e.result ?? ''), 500));
|
|
291
291
|
}
|
|
292
292
|
else if (type === 'assistant_final') {
|
|
293
293
|
out.push('## Answer');
|
|
@@ -1111,7 +1111,12 @@ export function isDevOnlyCommand(text) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
export function buildReviewPrompt(focus, hasStaged = false) {
|
|
1113
1113
|
const scope = hasStaged ? 'staged' : 'uncommitted';
|
|
1114
|
-
|
|
1114
|
+
// Collapse ALL whitespace: a NEWLINE in the focus started a new line of the
|
|
1115
|
+
// prompt, so the operator's text could inject an extra instruction instead
|
|
1116
|
+
// of being the "Extra focus" of one sentence.
|
|
1117
|
+
const f = String(focus ?? '')
|
|
1118
|
+
.trim()
|
|
1119
|
+
.replace(/\s+/g, ' ');
|
|
1115
1120
|
let s = 'Review the ' +
|
|
1116
1121
|
scope +
|
|
1117
1122
|
' changes in this repository (use GitDiff). ' +
|
|
@@ -1216,3 +1221,13 @@ export function buildSlashCommandHints(opts) {
|
|
|
1216
1221
|
}
|
|
1217
1222
|
return base;
|
|
1218
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.
|
|
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": {
|