diff --git a/package-lock.json b/package-lock.json index 417ce925..1d2f39ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claude-mem", - "version": "5.0.3", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claude-mem", - "version": "5.0.3", + "version": "5.1.0", "license": "AGPL-3.0", "dependencies": { "@anthropic-ai/claude-agent-sdk": "^0.1.27", @@ -1473,7 +1473,6 @@ "integrity": "sha512-RFA/bURkcKzx/X9oumPG9Vp3D3JUgus/d0b67KB0t5S/raciymilkOa66olh78MUI92QLbEJevO7rvqU/kjwKA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -2327,7 +2326,6 @@ "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", "license": "MIT", - "peer": true, "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", @@ -3840,7 +3838,6 @@ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", - "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -4842,7 +4839,6 @@ "node_modules/zod": { "version": "3.25.76", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/scripts/smart-install.js b/scripts/smart-install.js index e21de6a3..3e18123b 100644 --- a/scripts/smart-install.js +++ b/scripts/smart-install.js @@ -211,13 +211,14 @@ function runNpmInstall() { function startWorker() { const ECOSYSTEM_CONFIG = join(PLUGIN_ROOT, 'ecosystem.config.cjs'); + const PM2_PATH = join(PLUGIN_ROOT, 'node_modules', '.bin', 'pm2'); log('🚀 Starting worker service...', colors.dim); try { - // Use pm2 start which works whether worker is running or not + // Use the full path to PM2 to avoid PATH issues on Windows // PM2 will either start it or report it's already running (both are success cases) - execSync(`pm2 start "${ECOSYSTEM_CONFIG}"`, { + execSync(`"${PM2_PATH}" start "${ECOSYSTEM_CONFIG}"`, { cwd: PLUGIN_ROOT, stdio: 'pipe', // Capture output to avoid clutter encoding: 'utf-8',