Refactor worker startup logic to use PM2 with improved error handling

- Updated `new-hook.js` to streamline logging and session management.
- Enhanced database schema initialization and migration processes.
- Improved error handling for worker startup in `worker-utils.ts`, ensuring PM2 binary and ecosystem config existence before spawning.
- Added detailed error messages for missing dependencies and spawn failures.
This commit is contained in:
Alex Newman
2025-10-19 01:13:20 -04:00
parent 7ff611feb5
commit be0ab12789
5 changed files with 61 additions and 57 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ Claude-Mem is a **Claude Code plugin** that provides persistent memory across se
- **Node.js**: 18.0.0 or higher
- **Claude Code**: Latest version with plugin support
- **PM2**: Process manager (installed as dev dependency)
- **PM2**: Process manager (bundled with plugin - no global install required)
- **SQLite 3**: For persistent storage (bundled)
---