wolverine-ai 2.2.1 → 2.2.2

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": "2.2.1",
3
+ "version": "2.2.2",
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": {
@@ -28,7 +28,7 @@ function normalizeRoute(routePath) {
28
28
  */
29
29
 
30
30
  class ErrorMonitor {
31
- constructor({ threshold = 3, windowMs = 30000, cooldownMs = 60000, onError, logger } = {}) {
31
+ constructor({ threshold = 1, windowMs = 30000, cooldownMs = 60000, onError, logger } = {}) {
32
32
  this.threshold = threshold; // consecutive 5xx before triggering heal
33
33
  this.windowMs = windowMs; // time window for counting errors
34
34
  this.cooldownMs = cooldownMs; // cooldown after triggering (prevent heal spam)