@ouro.bot/cli 0.1.0-alpha.647 → 0.1.0-alpha.648

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.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.648",
6
+ "changes": [
7
+ "Daemon restart state truth: stale exits from a child intentionally replaced during restart are ignored, preventing provider refresh from reporting success while a later SIGTERM from the old worker clears the replacement pid and leaves status stuck at `starting`."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.647",
6
12
  "changes": [
@@ -396,7 +396,7 @@ class DaemonProcessManager {
396
396
  });
397
397
  /* v8 ignore stop */
398
398
  child.once("exit", (code, signal) => {
399
- this.onExit(state, code, signal);
399
+ this.onExit(state, child, code, signal);
400
400
  });
401
401
  }
402
402
  finally {
@@ -579,8 +579,8 @@ class DaemonProcessManager {
579
579
  listAgentSnapshots() {
580
580
  return [...this.agents.values()].map((state) => state.snapshot);
581
581
  }
582
- onExit(state, code, signal) {
583
- if (!state.process)
582
+ onExit(state, child, code, signal) {
583
+ if (state.process !== child)
584
584
  return;
585
585
  state.process = null;
586
586
  state.startInFlight = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.647",
3
+ "version": "0.1.0-alpha.648",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",