zames_pro 2.81.16 → 2.81.18
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/tools.js +17 -1
- 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.81.18] - 2026-10-21
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **tools:** Write without content no longer truncates a file
|
|
15
|
+
|
|
16
|
+
## [2.81.17] - 2026-10-21
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **tools:** Read past EOF explains the empty window
|
|
21
|
+
|
|
10
22
|
## [2.81.16] - 2026-10-21
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/tools.js
CHANGED
|
@@ -41,7 +41,15 @@ export function createTools(workdir, { undo, todos, readOnly = false, subagents
|
|
|
41
41
|
}
|
|
42
42
|
return Buffer.from(compact, 'base64').toString('utf-8');
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
// NEITHER field present (the model omitted both, e.g. a truncated call):
|
|
45
|
+
// `String(undefined)` is '' and silently TRUNCATED an existing file to
|
|
46
|
+
// zero bytes while reporting success. An EXPLICIT empty string is still
|
|
47
|
+
// a legitimate request to create an empty file.
|
|
48
|
+
if (content === undefined || content === null) {
|
|
49
|
+
throw new Error('Missing required argument: content (or content_base64). Add the ' +
|
|
50
|
+
'file text to the tool call and retry.');
|
|
51
|
+
}
|
|
52
|
+
return String(content);
|
|
45
53
|
};
|
|
46
54
|
// Guard against missing/placeholder required args. Without this, a tool call
|
|
47
55
|
// that omits `path` (or sends it as null) becomes String(undefined) ===
|
|
@@ -127,6 +135,14 @@ export function createTools(workdir, { undo, todos, readOnly = false, subagents
|
|
|
127
135
|
const start = off - 1;
|
|
128
136
|
const lim = Math.floor(Number(limit));
|
|
129
137
|
const end = Number.isFinite(lim) && lim > 0 ? start + lim : lines.length;
|
|
138
|
+
// An offset PAST the end returned an empty string, which the model
|
|
139
|
+
// reads as "the file is empty" instead of "your window does not
|
|
140
|
+
// exist" - it then re-read from the start or gave up. Say so, with
|
|
141
|
+
// the real line count.
|
|
142
|
+
if (start >= lines.length) {
|
|
143
|
+
return (`(offset ${off} is past the end of ${p}: the file has ` +
|
|
144
|
+
`${lines.length} line${lines.length === 1 ? '' : 's'})`);
|
|
145
|
+
}
|
|
130
146
|
const slice = lines.slice(start, end);
|
|
131
147
|
const clip = (l) => l.length > 2000 ? clipLine(l, 2000) + ' …[line truncated]' : l;
|
|
132
148
|
if (!numbered)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.81.
|
|
3
|
+
"version": "2.81.18",
|
|
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": {
|