wolverine-ai 3.8.3 → 3.8.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wolverine-ai",
3
- "version": "3.8.3",
3
+ "version": "3.8.4",
4
4
  "description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -282,6 +282,9 @@ class WolverineRunner {
282
282
  resetConfig();
283
283
  this.healthMonitor.stop();
284
284
  this._clearStabilityTimer();
285
+ // Clear any pending heals — restart is a clean slate
286
+ this._pendingErrorHeal = null;
287
+ this._healInProgress = false;
285
288
 
286
289
  if (this.child) {
287
290
  const oldChild = this.child;
@@ -574,8 +577,9 @@ class WolverineRunner {
574
577
 
575
578
  this._healInProgress = false;
576
579
  this._healStatus = null;
580
+ // Clear pending errors — the heal fixed the root cause, stale errors are irrelevant
581
+ this._pendingErrorHeal = null;
577
582
  this._spawn();
578
- this._processPendingErrorHeal();
579
583
  } else {
580
584
  console.log(chalk.red(`\n🐺 Wolverine could not heal: ${result.explanation}`));
581
585