zames_pro 2.82.56 → 2.82.57
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 +6 -1
- 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.57] - 2026-10-23
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **shell:** strip every quote from a cd target before the sandbox check
|
|
15
|
+
|
|
10
16
|
## [2.82.56] - 2026-10-23
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/shell.js
CHANGED
|
@@ -33,7 +33,12 @@ export function assertCommandInsideRoot(root, command) {
|
|
|
33
33
|
const cdRe = /(?:^|[;&|(\s`])(?:cd|pushd)\s*([^;&|)]+)/gi;
|
|
34
34
|
let m;
|
|
35
35
|
while ((m = cdRe.exec(cmd))) {
|
|
36
|
-
|
|
36
|
+
// The shell removes EVERY quote in the word, wherever it sits —
|
|
37
|
+
// `cd "a"/"../../.."` is one word whose value is `a/../../..`. Stripping
|
|
38
|
+
// only a matching PAIR at the ENDS left the inner quotes in place, so the
|
|
39
|
+
// target was compared as the literal `a/"/../../..` (which normalizes to
|
|
40
|
+
// a path INSIDE the root), passed the guard, and then escaped for real.
|
|
41
|
+
const raw = m[1].trim().replace(/["']/g, '');
|
|
37
42
|
if (!raw || raw === '-')
|
|
38
43
|
continue;
|
|
39
44
|
// A `cd` target we cannot RESOLVE statically is rejected: the shell would
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.57",
|
|
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": {
|