zames_pro 2.82.74 → 2.82.76
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/browser-pure.js +8 -1
- package/dist/xml-toolcall.js +15 -2
- 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.76] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **login:** askPassword Backspace deletes a whole code point
|
|
15
|
+
|
|
16
|
+
## [2.82.75] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **xml:** keep an escaped quote inside an invoke attribute value
|
|
21
|
+
|
|
10
22
|
## [2.82.74] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/browser-pure.js
CHANGED
|
@@ -68,9 +68,16 @@ export function askPassword(question) {
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
// Backspace (0x7f or 0x08): remove the last char and one star.
|
|
71
|
+
// Delete a WHOLE code point: an emoji is two UTF-16 units, and
|
|
72
|
+
// removing one left a LONE surrogate in the password — a broken code
|
|
73
|
+
// point that never matches the real one.
|
|
71
74
|
if (code === 127 || code === 8) {
|
|
72
75
|
if (value.length > 0) {
|
|
73
|
-
|
|
76
|
+
const prev = value.charCodeAt(value.length - 1);
|
|
77
|
+
const low = prev >= 0xdc00 && prev <= 0xdfff;
|
|
78
|
+
const hi = value.length >= 2 ? value.charCodeAt(value.length - 2) : 0;
|
|
79
|
+
const pair = low && hi >= 0xd800 && hi <= 0xdbff;
|
|
80
|
+
value = value.slice(0, pair ? -2 : -1);
|
|
74
81
|
process.stdout.write('\b \b');
|
|
75
82
|
}
|
|
76
83
|
continue;
|
package/dist/xml-toolcall.js
CHANGED
|
@@ -30,17 +30,30 @@ function readAttr(attrs, name) {
|
|
|
30
30
|
function readAllAttrs(attrs) {
|
|
31
31
|
const Q = String.fromCharCode(34);
|
|
32
32
|
const out = {};
|
|
33
|
-
|
|
33
|
+
// The VALUE may contain an ESCAPED quote (`todos="[{\"content\":\"x\"}]"`):
|
|
34
|
+
// `[^"]*` stopped at the first one and truncated the argument. Accept a
|
|
35
|
+
// backslash-escaped quote inside the value, then unescape it.
|
|
36
|
+
const re = new RegExp('([A-Za-z_][A-Za-z0-9_]*)[ ]*=[ ]*[' +
|
|
37
|
+
Q +
|
|
38
|
+
']((?:[^' +
|
|
39
|
+
Q +
|
|
40
|
+
'\\\\]|\\\\.)*)[' +
|
|
41
|
+
Q +
|
|
42
|
+
']', 'g');
|
|
34
43
|
let m;
|
|
35
44
|
while ((m = re.exec(attrs)) !== null) {
|
|
36
45
|
const key = m[1];
|
|
37
46
|
if (key === 'name')
|
|
38
47
|
continue;
|
|
39
48
|
if (!(key in out))
|
|
40
|
-
out[key] = unescapeXml(m[2]);
|
|
49
|
+
out[key] = unescapeXml(decodeAttrEscapes(m[2]));
|
|
41
50
|
}
|
|
42
51
|
return out;
|
|
43
52
|
}
|
|
53
|
+
/** Decode the backslash escapes inside an attribute VALUE. */
|
|
54
|
+
function decodeAttrEscapes(s) {
|
|
55
|
+
return String(s).replace(/\\(.)/g, '$1');
|
|
56
|
+
}
|
|
44
57
|
// The model sometimes produces a "hybrid" call: the tool name is an attribute
|
|
45
58
|
// AND the arguments are inline JSON in the SAME opening tag, without any
|
|
46
59
|
// <parameter> children. A real case from the transcript:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.76",
|
|
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": {
|