zames_pro 2.82.22 → 2.82.23
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 +6 -0
- package/dist/shell.js +9 -2
- package/package.json +1 -1
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.23] - 2026-10-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **shell:** normalize the runFile timeout instead of throwing
|
|
15
|
+
|
|
10
16
|
## [2.82.22] - 2026-10-22
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/shell.js
CHANGED
|
@@ -259,16 +259,23 @@ export function killAllBackground() {
|
|
|
259
259
|
// whenever an argument comes from the model: the shell never sees it, so
|
|
260
260
|
// $(...), backticks and quotes cannot be interpreted as commands.
|
|
261
261
|
export function runFile(workdir, file, args, timeout = 30_000, signal, okExitCodes = []) {
|
|
262
|
+
// execFile validates `timeout` SYNCHRONOUSLY (`ERR_OUT_OF_RANGE` for a
|
|
263
|
+
// negative, fractional or non-numeric value) and the throw would escape this
|
|
264
|
+
// promise, so a sloppy call crashed the tool instead of returning a result.
|
|
265
|
+
// Normalize to the unsigned-integer contract, like runShell does.
|
|
266
|
+
const safeTimeout = typeof timeout === 'number' && Number.isFinite(timeout) && timeout >= 0
|
|
267
|
+
? Math.floor(timeout)
|
|
268
|
+
: 30_000;
|
|
262
269
|
return new Promise((resolve) => {
|
|
263
270
|
execFile(file, args, {
|
|
264
271
|
cwd: workdir,
|
|
265
|
-
timeout,
|
|
272
|
+
timeout: safeTimeout,
|
|
266
273
|
maxBuffer: 1024 * 1024 * 8,
|
|
267
274
|
windowsHide: true,
|
|
268
275
|
env: { ...process.env },
|
|
269
276
|
signal,
|
|
270
277
|
}, (err, stdout, stderr) => {
|
|
271
|
-
resolve(formatExecResult(err, stdout, stderr,
|
|
278
|
+
resolve(formatExecResult(err, stdout, stderr, safeTimeout, okExitCodes));
|
|
272
279
|
});
|
|
273
280
|
});
|
|
274
281
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.23",
|
|
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": {
|