zames_pro 2.82.82 → 2.82.84
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/commands.js +4 -0
- package/dist/diagnostics.js +13 -6
- package/dist/status-command.js +4 -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.84] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **cost:** never print a negative context token count
|
|
15
|
+
|
|
16
|
+
## [2.82.83] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **diagnostics:** a zero banner no longer hides a real error line
|
|
21
|
+
|
|
10
22
|
## [2.82.82] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/commands.js
CHANGED
|
@@ -209,6 +209,10 @@ export function formatRelativeTime(iso, t = translate('en'), now = Date.now()) {
|
|
|
209
209
|
export function renderCost(stats, transcriptFile, tokenUsage = null, t = translate('en')) {
|
|
210
210
|
const lines = [];
|
|
211
211
|
lines.push(t('cost.title'));
|
|
212
|
+
// A NEGATIVE count is nonsense (a proxy build wrapping an int, a hand-edited
|
|
213
|
+
// history): printing `~-5 tokens` reads like a real measurement.
|
|
214
|
+
if (typeof tokenUsage === 'number' && tokenUsage < 0)
|
|
215
|
+
tokenUsage = null;
|
|
212
216
|
if (typeof tokenUsage === 'number') {
|
|
213
217
|
lines.push(t('cost.context_known', { n: String(tokenUsage) }));
|
|
214
218
|
}
|
package/dist/diagnostics.js
CHANGED
|
@@ -34,12 +34,19 @@ export function summarizeDiagnostics(raw, maxChars) {
|
|
|
34
34
|
// appended a pointless diagnostics block.
|
|
35
35
|
const plain = text.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, '');
|
|
36
36
|
const cleanCheck = plain.replace(/^\[[^\]]*\]\s*/, '');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
// The banner is only CLEAN when the output carries NO error-looking line:
|
|
38
|
+
// a webpack/build log prints `ERROR in …` AND its own `Found 0 errors`
|
|
39
|
+
// summary, and the old whole-text check reported that run as clean — the
|
|
40
|
+
// real error never reached the model.
|
|
41
|
+
const hasErrorLine = /(^|\n)\s*(?:error\b|ERROR\b|✖|✗|TS\d{4}\b)/m.test(cleanCheck);
|
|
42
|
+
if (!hasErrorLine) {
|
|
43
|
+
if (/^(?:found\s+)?0\s+errors?\b/im.test(cleanCheck))
|
|
44
|
+
return null;
|
|
45
|
+
if (/^no errors?(?: found)?\.?$/im.test(cleanCheck))
|
|
46
|
+
return null;
|
|
47
|
+
if (/^0 problems?\b/im.test(cleanCheck))
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
43
50
|
// Keep only error-looking lines when we can recognise them, so a long build
|
|
44
51
|
// log collapses to the actual problems. Fall back to the whole output.
|
|
45
52
|
const lines = text.split(/\r?\n/);
|
package/dist/status-command.js
CHANGED
|
@@ -30,8 +30,11 @@ export function formatStatus(s, t = translate('en')) {
|
|
|
30
30
|
lines.push(t('status.goal', { v: s.goal || none }));
|
|
31
31
|
lines.push(t('status.locale', { v: s.localeName }));
|
|
32
32
|
lines.push(t('status.mcp', { v: s.mcpToolCount === null ? none : s.mcpToolCount }));
|
|
33
|
+
// A NEGATIVE count is nonsense (a broken provider counter): show "unknown"
|
|
34
|
+
// rather than a number that reads like a real measurement.
|
|
35
|
+
const tokens = s.tokenUsage === null || s.tokenUsage < 0 ? null : s.tokenUsage;
|
|
33
36
|
lines.push(t('status.tokens', {
|
|
34
|
-
v:
|
|
37
|
+
v: tokens === null ? t('common.unknown') : tokens,
|
|
35
38
|
}));
|
|
36
39
|
return lines;
|
|
37
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.84",
|
|
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": {
|