zames_pro 2.82.104 → 2.82.106
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/goal.js +33 -1
- package/dist/input/layout.js +6 -1
- 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.106] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **goal:** a tool call mentioning VERDICT: MET does not clear the goal
|
|
15
|
+
|
|
16
|
+
## [2.82.105] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **tui:** keep a colour reset when truncating styled text
|
|
21
|
+
|
|
10
22
|
## [2.82.104] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/goal.js
CHANGED
|
@@ -76,12 +76,44 @@ export function buildContinuationDirective(reason) {
|
|
|
76
76
|
function argumentReason(reason) {
|
|
77
77
|
return String(reason ?? '').trim().length > 0;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* The text a verdict may be read from. A plain answer is returned as-is; a
|
|
81
|
+
* TOOL CALL (JSON or DSML/XML) yields only its `respond` message, because the
|
|
82
|
+
* call's ARGUMENTS are data, not a judgement — a Bash/Write argument that
|
|
83
|
+
* happens to contain `VERDICT: MET` must not clear the goal. Any other call
|
|
84
|
+
* yields '' (fail closed: the caller treats it as "continue").
|
|
85
|
+
*/
|
|
86
|
+
function toolCallVerdictText(raw) {
|
|
87
|
+
const hasCallMarkers = /"tool"\s*:/.test(raw) ||
|
|
88
|
+
/<[^>]*\b(?:invoke|parameter)\b/i.test(raw) ||
|
|
89
|
+
/DSML/i.test(raw);
|
|
90
|
+
if (!hasCallMarkers)
|
|
91
|
+
return raw;
|
|
92
|
+
// `respond` carries the operator-facing text; unwrap its message only.
|
|
93
|
+
const respond = /"tool"\s*:\s*"respond"[\s\S]*?"message"\s*:\s*"([\s\S]*?)"\s*\}\s*\}/i.exec(raw);
|
|
94
|
+
if (respond)
|
|
95
|
+
return respond[1];
|
|
96
|
+
const dsml = /invoke[^>]*name\s*=\s*"respond"[^>]*>([\s\S]*?)(?:<\/[^>]*invoke|$)/i.exec(raw);
|
|
97
|
+
if (dsml) {
|
|
98
|
+
const msg = /parameter[^>]*name\s*=\s*"message"[^>]*>([\s\S]*?)</i.exec(dsml[1]);
|
|
99
|
+
if (msg)
|
|
100
|
+
return msg[1];
|
|
101
|
+
}
|
|
102
|
+
return '';
|
|
103
|
+
}
|
|
79
104
|
// Parse the evaluator's reply into a verdict. Tolerant of markdown emphasis
|
|
80
105
|
// and casing (```VErdict: MET``). Returns null when the verdict line is
|
|
81
106
|
// missing, so the caller can fail closed (treat an unparsable answer as
|
|
82
107
|
// "continue", never as "done").
|
|
83
108
|
export function parseGoalVerdict(text) {
|
|
84
|
-
const
|
|
109
|
+
const rawText = String(text ?? '');
|
|
110
|
+
// A TOOL CALL is not a verdict. The evaluator runs as a normal agent turn,
|
|
111
|
+
// so in reasoning mode it sometimes answers with a tool-call JSON/DSML whose
|
|
112
|
+
// ARGUMENTS merely MENTION `VERDICT: MET` (a Bash grep, a Write of a summary,
|
|
113
|
+
// a `respond` echo). Reading that as the verdict CLEARS the goal — an
|
|
114
|
+
// unfinished task was silently accepted as done. A call is recognized by its
|
|
115
|
+
// own markers, and the verdict is taken from its `respond` message only.
|
|
116
|
+
const t = toolCallVerdictText(rawText);
|
|
85
117
|
// The label may be bolded/italicised and the colon may carry surrounding
|
|
86
118
|
// spaces (`**VERDICT:** MET`) — a markdown-model answer did exactly that and
|
|
87
119
|
// the strict `VERDICT:` matcher returned null, so the goal never parsed and
|
package/dist/input/layout.js
CHANGED
|
@@ -346,7 +346,12 @@ export function truncateToWidth(s, maxCols) {
|
|
|
346
346
|
used += w;
|
|
347
347
|
i += ch.length;
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
// The visible text was cut BEFORE any trailing RESET, so the ellipsis and
|
|
350
|
+
// everything printed after it on the row would inherit the last colour.
|
|
351
|
+
// Close any style the kept prefix opened (the text may still be plain, in
|
|
352
|
+
// which case the reset is harmless).
|
|
353
|
+
const reset = out.includes(ESC + '[') ? ESC + '[0m' : '';
|
|
354
|
+
return out + reset + '…';
|
|
350
355
|
}
|
|
351
356
|
// Inner content width of the framed input box: the rounded border takes 1
|
|
352
357
|
// column on each side and the box adds 1 column of padding on each side, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.106",
|
|
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": {
|