wolverine-ai 2.6.1 → 2.6.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/README.md +11 -3
- package/package.json +1 -1
- package/src/brain/brain.js +1 -1
package/README.md
CHANGED
|
@@ -535,14 +535,22 @@ All demos use the `server/` directory pattern. Each demo:
|
|
|
535
535
|
|
|
536
536
|
## Backup System
|
|
537
537
|
|
|
538
|
-
|
|
538
|
+
All backups stored in **`~/.wolverine-safe-backups/`** — outside the project directory. Survives `git pull`, `npm install`, `rm -rf .wolverine`, even deleting the project entirely.
|
|
539
539
|
|
|
540
|
-
|
|
540
|
+
```
|
|
541
|
+
~/.wolverine-safe-backups/
|
|
542
|
+
manifest.json ← backup registry
|
|
543
|
+
snapshots/ ← heal snapshots (per fix attempt)
|
|
544
|
+
updates/ ← pre-update snapshots (before framework upgrades)
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
- Created before every repair attempt and every framework update (with reason string)
|
|
541
548
|
- Created on graceful shutdown (`createShutdownBackup()`)
|
|
542
549
|
- Includes all files: `.js`, `.json`, `.sql`, `.db`, `.yaml`, configs
|
|
550
|
+
- Old `.wolverine/backups/` auto-migrated to safe location on first run
|
|
543
551
|
- **Status lifecycle**: UNSTABLE → VERIFIED (fix passed) → STABLE (30min+ uptime)
|
|
544
552
|
- **Retention**: unstable/verified pruned after 7 days, stable keeps 1/day after 7 days
|
|
545
|
-
-
|
|
553
|
+
- Protected files never overwritten during rollback: `settings.json`, `db.js`, `.env.local`
|
|
546
554
|
|
|
547
555
|
**Rollback & Recovery:**
|
|
548
556
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wolverine-ai",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.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": {
|
package/src/brain/brain.js
CHANGED
|
@@ -38,7 +38,7 @@ const SEED_DOCS = [
|
|
|
38
38
|
metadata: { topic: "heal-pipeline" },
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
text: "Wolverine backup system:
|
|
41
|
+
text: "Wolverine backup system: ALL backups stored in ~/.wolverine-safe-backups/ (OUTSIDE project, survives git pull/npm install/rm -rf). Structure: snapshots/ (heal backups per fix attempt), updates/ (pre-update snapshots), manifest.json (backup registry). Old .wolverine/backups/ auto-migrated on first run. Full server/ directory snapshots with lifecycle management. Every fix creates a backup with a reason string before patching. Status lifecycle: UNSTABLE (just created) → VERIFIED (fix passed boot probe) → STABLE (server ran 30min+ without crash). Features: rollbackTo(backupId) creates pre-rollback backup then restores files and restarts server. undoRollback() restores pre-rollback state. Hot-load: admin can load any backup as current server state from dashboard. Shutdown backup on graceful exit. Retention: unstable/verified pruned after 7 days. Stable backups older than 7 days keep 1 per day. Rollback log tracks all rollback/undo operations with timestamps and success status. Dashboard endpoints: POST /api/backups/:id/rollback, POST /api/backups/undo, POST /api/backups/:id/hotload (all require admin auth).",
|
|
42
42
|
metadata: { topic: "backup-system" },
|
|
43
43
|
},
|
|
44
44
|
{
|