zames_pro 2.82.74 → 2.82.75

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.75] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **xml:** keep an escaped quote inside an invoke attribute value
15
+
10
16
  ## [2.82.74] - 2026-10-24
11
17
 
12
18
  ### Fixed
@@ -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
- const re = new RegExp('([A-Za-z_][A-Za-z0-9_]*)[ ]*=[ ]*[' + Q + ']([^' + Q + ']*)[' + Q + ']', 'g');
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.74",
3
+ "version": "2.82.75",
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": {