zames_pro 2.82.73 → 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,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.75] - 2026-10-24
11
+
12
+ ### Fixed
13
+
14
+ - **xml:** keep an escaped quote inside an invoke attribute value
15
+
16
+ ## [2.82.74] - 2026-10-24
17
+
18
+ ### Fixed
19
+
20
+ - **commands:** collapse dynamic slash hints that differ only by case
21
+
10
22
  ## [2.82.73] - 2026-10-24
11
23
 
12
24
  ### Fixed
package/dist/commands.js CHANGED
@@ -1203,6 +1203,11 @@ export function buildSlashCommandHints(opts) {
1203
1203
  for (const d of opts.dynamic ?? []) {
1204
1204
  if (known.has(d.name.toLowerCase()))
1205
1205
  continue;
1206
+ // Remember the DYNAMIC name too: two entries that differ only by case
1207
+ // (`/foo` and `/FOO`) were both added, so the operator saw the same
1208
+ // command twice and the second was unreachable (a slash command is
1209
+ // resolved case-insensitively).
1210
+ known.add(d.name.toLowerCase());
1206
1211
  base.push(d);
1207
1212
  }
1208
1213
  return base;
@@ -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.73",
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": {