d5e392ea69
Fixes: - Fixed worker startup reliability with async health checks - Added proper error handling to PM2 process spawning - Worker now verifies health before proceeding with hook operations - Improved handling of PM2 failures when not yet installed Technical changes: - Added isWorkerHealthy() and waitForWorkerHealth() functions to src/shared/worker-utils.ts - Changed ensureWorkerRunning() from synchronous to async with proper await - All hooks now await ensureWorkerRunning for reliable worker communication - Rebuilt all plugin executables with version 5.0.2 - Updated version to 5.0.2 in all metadata files Root cause: ensureWorkerRunning was synchronous and didn't verify worker was actually responsive before proceeding, causing race conditions and startup failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
65 lines
2.1 KiB
JSON
65 lines
2.1 KiB
JSON
{
|
|
"name": "claude-mem",
|
|
"version": "5.0.2",
|
|
"description": "Memory compression system for Claude Code - persist context across sessions",
|
|
"keywords": [
|
|
"claude",
|
|
"claude-code",
|
|
"claude-agent-sdk",
|
|
"mcp",
|
|
"plugin",
|
|
"memory",
|
|
"compression",
|
|
"knowledge-graph",
|
|
"transcript",
|
|
"typescript",
|
|
"nodejs"
|
|
],
|
|
"author": "Alex Newman",
|
|
"license": "AGPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/thedotmack/claude-mem.git"
|
|
},
|
|
"homepage": "https://github.com/thedotmack/claude-mem#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/thedotmack/claude-mem/issues"
|
|
},
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/build-hooks.js",
|
|
"test": "node --test tests/",
|
|
"test:parser": "npx tsx src/sdk/parser.test.ts",
|
|
"test:context": "echo '{\"session_id\":\"test-'$(date +%s)'\",\"cwd\":\"'$(pwd)'\",\"source\":\"startup\"}' | node plugin/scripts/context-hook.js 2>/dev/null",
|
|
"test:context:verbose": "echo '{\"session_id\":\"test-'$(date +%s)'\",\"cwd\":\"'$(pwd)'\",\"source\":\"startup\"}' | node plugin/scripts/context-hook.js",
|
|
"sync-marketplace": "rsync -av --delete plugin/ ~/.claude/plugins/marketplaces/thedotmack/plugin/ # --delete flag removes orphaned files from destination only",
|
|
"worker:start": "pm2 start ecosystem.config.cjs",
|
|
"worker:stop": "pm2 stop claude-mem-worker",
|
|
"worker:restart": "pm2 restart claude-mem-worker",
|
|
"worker:logs": "pm2 logs claude-mem-worker",
|
|
"usage:analyze": "node scripts/analyze-usage.js",
|
|
"usage:today": "node scripts/analyze-usage.js $(date +%Y-%m-%d)"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.1.27",
|
|
"@modelcontextprotocol/sdk": "^1.20.1",
|
|
"better-sqlite3": "^11.0.0",
|
|
"express": "^4.18.2",
|
|
"glob": "^11.0.3",
|
|
"handlebars": "^4.7.8",
|
|
"pm2": "^6.0.13",
|
|
"zod-to-json-schema": "^3.24.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.8",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.0.0",
|
|
"esbuild": "^0.25.12",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "^5.3.0"
|
|
}
|
|
}
|