From 98b8d72ca842a7ad07adcadd6f21fb0cb29e10b4 Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Sat, 27 Dec 2025 17:19:42 -0500 Subject: [PATCH] fix: update worker port environment variable and shutdown API endpoint in smart-install script --- plugin/scripts/smart-install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/scripts/smart-install.js b/plugin/scripts/smart-install.js index 5bfae9e4..b71a2111 100644 --- a/plugin/scripts/smart-install.js +++ b/plugin/scripts/smart-install.js @@ -446,11 +446,11 @@ try { console.error('✅ Dependencies installed'); // Auto-restart worker to pick up new code - const port = process.env.CLAUDE_MEM_PORT || 37777; + const port = process.env.CLAUDE_MEM_WORKER_PORT || 37777; console.error(`[claude-mem] Plugin updated to v${newVersion} - restarting worker...`); try { // Graceful shutdown via HTTP (curl is cross-platform enough) - execSync(`curl -s -X POST http://127.0.0.1:${port}/api/shutdown`, { + execSync(`curl -s -X POST http://127.0.0.1:${port}/api/admin/shutdown`, { stdio: 'ignore', shell: IS_WINDOWS, timeout: 5000