Commit ·
5efa8c1
1
Parent(s): fcb9a19
SANITY_CHECK: Removed suspicious dependencies & OS-specific logic (v100.2)
Browse filesFiles changed (2)
- package.json+1-3
- server.js-17
10 unmodified lines111213141516171810 unmodified lines"cors": "^2.8.6","dotenv": "^17.4.2","express": "^4.22.1","http-proxy-middleware": "^3.0.5","libsodium-wrappers": "^0.8.4","localtunnel": "^2.0.2"}}10 unmodified lines11121314151610 unmodified lines"cors": "^2.8.6","dotenv": "^17.4.2","express": "^4.22.1","http-proxy-middleware": "^3.0.5"}}
6 unmodified lines7891011121314151617181920212223242526272829306 unmodified linesconst path = require('path');dotenv.config();/*** [TACTICAL] PORT STABILIZATION LAYER* Automatically terminates any existing process on the target port to prevent EADDRINUSE.*/const port = process.env.PORT || 7860;if (process.platform === 'win32') {const { execSync } = require('child_process');try {const stdout = execSync(`netstat -aon | findstr :${port} | findstr LISTENING`).toString();const pid = stdout.split(/\s+/).filter(Boolean).pop();if (pid && pid !== process.pid.toString()) {console.log(`[SYSTEM] Port ${port} conflict detected (PID: ${pid}). Reclaiming...`);execSync(`taskkill /F /PID ${pid}`);}} catch (e) {// No process found on port, proceed}}const app = express();const kimi = new KimiNeuralBridge();6 unmodified lines789101112136 unmodified linesconst path = require('path');dotenv.config();const port = process.env.PORT || 7860;const app = express();const kimi = new KimiNeuralBridge();
package.json+1-3
server.js-17