@zenera/cli 1.2.7 → 1.2.8

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.
@@ -367,16 +367,19 @@ async function start(ctx, values) {
367
367
  chatUser: values.user,
368
368
  });
369
369
  }
370
- // A stopping container: runs end as interrupted and save their sessions within the grace
371
- // period, then the process ends — whatever a run's tools left open must not keep it alive.
370
+ // A stopping container: runs may finish for ZEN_SERVER_STOP_GRACE_SECONDS, the rest end
371
+ // as interrupted and save their sessions, then the process ends — whatever a run's tools
372
+ // left open must not keep it alive.
372
373
  await new Promise((done, fail) => {
373
374
  let stopping = false;
374
375
  const stop = (signal) => {
375
376
  if (stopping)
376
377
  return;
377
378
  stopping = true;
379
+ const runs = mod.activeRuns();
380
+ const grace = app.settings.stopGraceSeconds;
378
381
  note();
379
- note(` ${yellow('Stopping server')} ${dim(`(${signal} · ${mod.activeRuns()} active runs)`)}`);
382
+ note(` ${yellow('Stopping server')} ${dim(`(${signal} · ${runs} active runs${runs && grace ? `, up to ${grace}s to finish` : ''})`)}`);
380
383
  void app.stop(20_000).then(done, fail);
381
384
  };
382
385
  process.once('SIGTERM', () => stop('SIGTERM'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/cli",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
5
5
  "keywords": [
6
6
  "agents",
@@ -56,11 +56,11 @@
56
56
  "@google/genai": "^2.30.0",
57
57
  "@inkjs/ui": "^2.0.0",
58
58
  "@openrouter/sdk": "^1.4.25",
59
- "@zenera/engine": "^1.2.7",
60
- "@zenera/neo": "^1.2.7",
61
- "@zenera/sandbox": "^1.2.7",
62
- "@zenera/server": "^1.2.7",
63
- "@zenera/view": "^1.2.7",
59
+ "@zenera/engine": "^1.2.8",
60
+ "@zenera/neo": "^1.2.8",
61
+ "@zenera/sandbox": "^1.2.8",
62
+ "@zenera/server": "^1.2.8",
63
+ "@zenera/view": "^1.2.8",
64
64
  "google-auth-library": "^10.0.0",
65
65
  "ink": "^7.1.1",
66
66
  "openai": "^6.0.0",