zames_pro 2.80.3 → 2.80.5

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.80.5] - 2026-10-20
11
+
12
+ ### Fixed
13
+
14
+ - a JSON array line in a transcript is not an event
15
+
16
+ ## [2.80.4] - 2026-10-20
17
+
18
+ ### Fixed
19
+
20
+ - parse a bare id-keyed Qwen chat list map
21
+
10
22
  ## [2.80.3] - 2026-10-20
11
23
 
12
24
  ### Fixed
package/dist/commands.js CHANGED
@@ -143,7 +143,9 @@ export function parseTranscript(body) {
143
143
  continue;
144
144
  try {
145
145
  const v = JSON.parse(t);
146
- if (v && typeof v === 'object')
146
+ // Only a plain OBJECT is an event: an ARRAY (a stray JSON array line in
147
+ // a hand-edited/merged transcript) must not be treated as one.
148
+ if (v && typeof v === 'object' && !Array.isArray(v))
147
149
  out.push(v);
148
150
  }
149
151
  catch {
@@ -97,14 +97,14 @@ export function parseQwenChatList(json) {
97
97
  const arr = Array.isArray(data)
98
98
  ? data
99
99
  : data && typeof data === 'object'
100
- ? (data.chats ??
101
- data.list ??
102
- data.items)
100
+ ? // A bare map keyed by chat id (the same convention as the history
101
+ // shape) has no `chats`/`list`/`items` wrapper: without this fallback
102
+ // a legitimate list was rejected and /chats printed "(none)".
103
+ (data.chats ??
104
+ data.list ??
105
+ data.items ??
106
+ data)
103
107
  : null;
104
- // The payload has also been seen as a MAP keyed by chat id (the same
105
- // convention as the history shape); the key then IS the id. Without this a
106
- // legitimate list was rejected by the array guard and /chats printed
107
- // "(none)" with no error.
108
108
  const keyed = Array.isArray(arr)
109
109
  ? null
110
110
  : arr && typeof arr === 'object'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.80.3",
3
+ "version": "2.80.5",
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": {