zames_pro 2.82.103 → 2.82.105
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/fsutil.js +20 -1
- package/dist/input/layout.js +6 -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.82.105] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **tui:** keep a colour reset when truncating styled text
|
|
15
|
+
|
|
16
|
+
## [2.82.104] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **fsutil:** write through a dangling symlink instead of replacing it
|
|
21
|
+
|
|
10
22
|
## [2.82.103] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/fsutil.js
CHANGED
|
@@ -25,7 +25,26 @@ export function writeFileAtomic(file, data) {
|
|
|
25
25
|
target = fs.realpathSync(file);
|
|
26
26
|
}
|
|
27
27
|
catch {
|
|
28
|
-
// Missing (first write) or
|
|
28
|
+
// Missing (first write) or a BROKEN link. A broken link must still be
|
|
29
|
+
// written THROUGH: resolve its own target lexically (readlink + dirname)
|
|
30
|
+
// and create it, otherwise `rename` replaces the LINK with a regular file
|
|
31
|
+
// and the real target (a dotfiles repo checkout that does not exist yet)
|
|
32
|
+
// is never created.
|
|
33
|
+
try {
|
|
34
|
+
if (fs.lstatSync(file).isSymbolicLink()) {
|
|
35
|
+
const raw = fs.readlinkSync(file);
|
|
36
|
+
target = path.resolve(path.dirname(file), raw);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
// Not a link: write to the path itself.
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
fs.mkdirSync(path.dirname(target), { recursive: true });
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
// Best-effort: a failed mkdir surfaces as the write error below.
|
|
29
48
|
}
|
|
30
49
|
const tmp = target + '.tmp-' + process.pid;
|
|
31
50
|
// fsync the file BEFORE rename: without it a power loss can leave the
|
package/dist/input/layout.js
CHANGED
|
@@ -346,7 +346,12 @@ export function truncateToWidth(s, maxCols) {
|
|
|
346
346
|
used += w;
|
|
347
347
|
i += ch.length;
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
// The visible text was cut BEFORE any trailing RESET, so the ellipsis and
|
|
350
|
+
// everything printed after it on the row would inherit the last colour.
|
|
351
|
+
// Close any style the kept prefix opened (the text may still be plain, in
|
|
352
|
+
// which case the reset is harmless).
|
|
353
|
+
const reset = out.includes(ESC + '[') ? ESC + '[0m' : '';
|
|
354
|
+
return out + reset + '…';
|
|
350
355
|
}
|
|
351
356
|
// Inner content width of the framed input box: the rounded border takes 1
|
|
352
357
|
// column on each side and the box adds 1 column of padding on each side, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.105",
|
|
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": {
|