zames_pro 2.82.60 → 2.82.61

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.61] - 2026-10-23
11
+
12
+ ### Fixed
13
+
14
+ - **tools:** Glob cannot report files outside the project root
15
+
10
16
  ## [2.82.60] - 2026-10-23
11
17
 
12
18
  ### Fixed
package/dist/tools.js CHANGED
@@ -300,12 +300,23 @@ export function createTools(workdir, { undo, todos, readOnly = false, subagents
300
300
  const cwd = searchPath ? safe(String(searchPath)) : workdir;
301
301
  const results = [];
302
302
  for await (const f of glob(req(pattern, 'pattern'), { cwd })) {
303
- // Sandbox: ignore anything that goes outside root.
304
- const abs = path.resolve(cwd, f);
305
- const rel = path.relative(root, abs);
306
- if (rel.startsWith('..') || path.isAbsolute(rel))
303
+ // Sandbox: ignore anything that goes outside root. safePath() does
304
+ // the LEXICAL and the symlink-REAL check; a plain `rel.startsWith`
305
+ // here passed a pattern carrying `..` (`../**/*.ts` listed a SIBLING
306
+ // directory, and the printed path started with `..`).
307
+ let inside = true;
308
+ try {
309
+ safePath(root, path.resolve(root, f));
310
+ }
311
+ catch {
312
+ inside = false;
313
+ }
314
+ if (!inside)
307
315
  continue;
308
- results.push(f);
316
+ // Print a path relative to the PROJECT, never one that starts with
317
+ // `..`: the pattern may carry `..` (`../**/*.ts`) and node's glob
318
+ // then prefixes every result with it, which looked like an escape.
319
+ results.push(path.relative(root, path.resolve(root, f)) || '.');
309
320
  }
310
321
  return results.length ? results.join('\n') : 'No matches found.';
311
322
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.82.60",
3
+ "version": "2.82.61",
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": {