zames_pro 2.82.26 → 2.82.27
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 +7 -4
- 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.27] - 2026-10-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **attachments:** reject a data URL with an empty payload
|
|
15
|
+
|
|
10
16
|
## [2.82.26] - 2026-10-22
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/dist/attachments.js
CHANGED
|
@@ -90,10 +90,13 @@ export function parseDataUrl(text) {
|
|
|
90
90
|
if (!m)
|
|
91
91
|
return null;
|
|
92
92
|
try {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
const data = Buffer.from(m[2].replace(/\s+/g, ''), 'base64');
|
|
94
|
+
// An EMPTY or unparsable payload decodes to a zero-length Buffer, which is
|
|
95
|
+
// still a truthy object: the paste handler then showed an `[image#N]`
|
|
96
|
+
// marker for a zero-byte file and submitted a broken attachment.
|
|
97
|
+
if (!data.length)
|
|
98
|
+
return null;
|
|
99
|
+
return { mime: m[1] || 'application/octet-stream', data };
|
|
97
100
|
}
|
|
98
101
|
catch {
|
|
99
102
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.27",
|
|
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": {
|