@zenera/cli 1.2.7 → 1.2.9
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/dist/commands/server.js +6 -3
- package/package.json +6 -6
package/dist/commands/server.js
CHANGED
|
@@ -367,16 +367,19 @@ async function start(ctx, values) {
|
|
|
367
367
|
chatUser: values.user,
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
// A stopping container: runs
|
|
371
|
-
//
|
|
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} · ${
|
|
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.
|
|
3
|
+
"version": "1.2.9",
|
|
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.
|
|
60
|
-
"@zenera/neo": "^1.2.
|
|
61
|
-
"@zenera/sandbox": "^1.2.
|
|
62
|
-
"@zenera/server": "^1.2.
|
|
63
|
-
"@zenera/view": "^1.2.
|
|
59
|
+
"@zenera/engine": "^1.2.9",
|
|
60
|
+
"@zenera/neo": "^1.2.9",
|
|
61
|
+
"@zenera/sandbox": "^1.2.9",
|
|
62
|
+
"@zenera/server": "^1.2.9",
|
|
63
|
+
"@zenera/view": "^1.2.9",
|
|
64
64
|
"google-auth-library": "^10.0.0",
|
|
65
65
|
"ink": "^7.1.1",
|
|
66
66
|
"openai": "^6.0.0",
|