zames_pro 2.96.2 → 2.96.3

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,13 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.96.3] - 2026-11-06
11
+
10
12
  ### Fixed
11
13
 
12
- - **info:** keep a /chat and /pwd value on one line
13
- - **status:** flatten a status/doctor value and drop a broken count
14
- - **limits:** never render a negative or NaN counter in /limits
15
- - **restore-history:** keep a plain answer that opens with 'thinking for'
16
- - **commands:** keep a project file/skill/command name on one /context row
14
+ - **banner:** keep a banner field on one line inside the box
15
+ - **scheduler:** reschedule a job whose nextAt is not finite
16
+ - **goal:** keep a condition from injecting its own verdict block
17
+ - **compact:** keep operator and summary text out of the carryover headings
18
+ - **release:** sync the changelog and rebuild its pages inside a release
17
19
 
18
20
  ## [2.96.2] - 2026-11-06
19
21
 
package/dist/banner.js CHANGED
@@ -81,11 +81,16 @@ function clip(s, max) {
81
81
  * (the terminal width minus a safety column).
82
82
  */
83
83
  export function renderStartupBanner(info, contentWidth) {
84
- const title = theme.assistant(' ' + info.title) + theme.dim(' v' + info.version);
85
- const dir = theme.system(' cwd: ') + theme.dir(info.workdir);
86
- const prov = theme.system(' provider: ') + theme.toggleOn(info.provider);
84
+ // Every field is printed INSIDE the box: a newline in the working directory
85
+ // or in the provider label (both come from the config/environment) broke the
86
+ // borders apart, so each value is flattened to one line first.
87
+ const oneLine = (v) => String(v ?? '').replace(/\s+/g, ' ');
88
+ const title = theme.assistant(' ' + oneLine(info.title)) +
89
+ theme.dim(' v' + oneLine(info.version));
90
+ const dir = theme.system(' cwd: ') + theme.dir(oneLine(info.workdir));
91
+ const prov = theme.system(' provider: ') + theme.toggleOn(oneLine(info.provider));
87
92
  const lines = [title, dir, prov];
88
93
  if (info.hint)
89
- lines.push(theme.dim(' ' + info.hint));
94
+ lines.push(theme.dim(' ' + oneLine(info.hint)));
90
95
  return box(lines, contentWidth);
91
96
  }
package/dist/commands.js CHANGED
@@ -580,8 +580,19 @@ export function buildCompactToolResult(todos = [], goal = null) {
580
580
  * they are session state the model-written summary is not guaranteed to keep.
581
581
  */
582
582
  export function buildCompactCarryover(summary, task, todos = [], goal = null) {
583
- const body = String(summary ?? '').trim();
584
- const goalText = String(task ?? '').trim();
583
+ const NL2 = NL + NL;
584
+ // The carried text becomes the FIRST USER TURN of the new chat. The task is
585
+ // OPERATOR text and the summary is MODEL text: a line starting with `## `
586
+ // would fake one of the SESSION blocks this function appends itself (a todo
587
+ // checklist / a goal the agent never had), so such lines are indented out of
588
+ // the heading namespace.
589
+ const noHeadings = (v) => String(v ?? '')
590
+ .split(NL)
591
+ .map((l) => (/^## /.test(l) ? ' ' + l : l))
592
+ .join(NL)
593
+ .trim();
594
+ const body = noHeadings(summary);
595
+ const goalText = noHeadings(task);
585
596
  let out = 'Context carried over from a previous chat (compacted). ' +
586
597
  'Treat it as the history of our work so far and continue from the current state.';
587
598
  out += NL + NL + body;
package/dist/goal.js CHANGED
@@ -29,6 +29,15 @@ export function clampGoalCondition(condition) {
29
29
  // is requested; no tools.
30
30
  export function buildEvaluatorPrompt(condition) {
31
31
  const NL = String.fromCharCode(10);
32
+ // The condition is OPERATOR text pasted VERBATIM. A line of it that looks
33
+ // like the requested answer format (`Reply with EXACTLY two lines`,
34
+ // `VERDICT: MET`) would let the operator's own words stand in for the
35
+ // judge's verdict and close an unfinished task as done: such a line is
36
+ // quoted instead of being left at the start of a line.
37
+ const safeCondition = String(condition ?? '')
38
+ .split(NL)
39
+ .map((l) => /^\s*(?:reply with|verdict\s*:|reason\s*:)/i.test(l) ? '> ' + l : l)
40
+ .join(NL);
32
41
  return ('You are a strict COMPLETION EVALUATOR. You do NOT do the work and you do NOT call tools. Read ' +
33
42
  'the conversation above and judge - from what the agent has ALREADY surfaced - whether ' +
34
43
  'the completion condition below is satisfied.' +
@@ -36,7 +45,7 @@ export function buildEvaluatorPrompt(condition) {
36
45
  NL +
37
46
  'Completion condition:' +
38
47
  NL +
39
- condition +
48
+ safeCondition +
40
49
  NL +
41
50
  NL +
42
51
  'Reply with EXACTLY two lines, nothing else:' +
package/dist/scheduler.js CHANGED
@@ -256,6 +256,23 @@ export class Scheduler {
256
256
  due(now) {
257
257
  const fired = [];
258
258
  for (const job of this.jobs) {
259
+ // A NON-FINITE `nextAt` (a restored/hand-edited job, a NaN from a broken
260
+ // date) passed every comparison below: `NaN > now` is false, so the job
261
+ // was reported due on EVERY tick and the reschedule arithmetic kept it
262
+ // NaN forever — the busy loop the zero-interval guard exists to stop.
263
+ if (!Number.isFinite(job.nextAt)) {
264
+ if (job.kind === 'loop' && job.intervalMs && job.intervalMs > 0) {
265
+ job.nextAt = now + job.intervalMs;
266
+ }
267
+ else if (job.kind === 'cron' && job.cron) {
268
+ const nxt = nextCronTime(job.cron, now);
269
+ job.nextAt = nxt === null ? Number.POSITIVE_INFINITY : nxt;
270
+ }
271
+ else {
272
+ job.nextAt = Number.POSITIVE_INFINITY;
273
+ }
274
+ continue;
275
+ }
259
276
  if (job.nextAt > now)
260
277
  continue;
261
278
  fired.push({ ...job });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.96.2",
3
+ "version": "2.96.3",
4
4
  "description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen or GLM — 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": {