zames_pro 2.82.68 → 2.82.69
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/attachments.js +12 -3
- 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.69] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **attachments:** keep the extension when a temp name is capped
|
|
15
|
+
|
|
10
16
|
## [2.82.68] - 2026-10-24
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/attachments.js
CHANGED
|
@@ -23,11 +23,20 @@ export function contentHash(data) {
|
|
|
23
23
|
return createHash('sha1').update(data).digest('hex');
|
|
24
24
|
}
|
|
25
25
|
function sanitize(name) {
|
|
26
|
-
|
|
26
|
+
const clean = String(name || '')
|
|
27
27
|
.replace(/[\u0000-\u001f\u007f]/g, '')
|
|
28
28
|
.replace(/[\\/:*?"<>|]/g, '_')
|
|
29
|
-
.replace(/\s+/g, '_')
|
|
30
|
-
|
|
29
|
+
.replace(/\s+/g, '_');
|
|
30
|
+
if (!clean)
|
|
31
|
+
return 'file';
|
|
32
|
+
if (clean.length <= 80)
|
|
33
|
+
return clean;
|
|
34
|
+
// The cap must not eat the EXTENSION: a long name became a bare stem, so the
|
|
35
|
+
// temp file had no `.png` and every extension-based check (guessMime,
|
|
36
|
+
// isImageName, the upload dialog) saw a plain blob instead of an image.
|
|
37
|
+
const ext = path.extname(clean).slice(0, 16);
|
|
38
|
+
const stem = clean.slice(0, clean.length - ext.length);
|
|
39
|
+
return stem.slice(0, Math.max(1, 80 - ext.length)) + ext;
|
|
31
40
|
}
|
|
32
41
|
export function guessMime(name) {
|
|
33
42
|
const ext = path.extname(String(name || '')).toLowerCase();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.69",
|
|
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": {
|