snow-flow 2.8.5 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -225,6 +225,10 @@ class BaseMCPServer {
|
|
|
225
225
|
const timeoutMap = {
|
|
226
226
|
'snow_create_flow': 90000, // Flow creation: 90s
|
|
227
227
|
'snow_deploy': 120000, // Deployment: 2 minutes
|
|
228
|
+
'snow_deploy_widget': 180000, // Widget deployment: 3 minutes (complex ML widgets)
|
|
229
|
+
'snow_create_widget': 120000, // Widget creation: 2 minutes
|
|
230
|
+
'ml_train_incident_classifier': 300000, // ML training: 5 minutes
|
|
231
|
+
'ml_train_change_risk': 300000, // ML training: 5 minutes
|
|
228
232
|
'snow_comprehensive_search': 45000, // Search: 45s
|
|
229
233
|
'snow_find_artifact': 30000, // Find: 30s
|
|
230
234
|
'snow_validate_live_connection': 15000, // Validation: 15s
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
const lockFile = path.join(process.env.HOME, '.claude', 'mcp-singleton.lock');
|
|
6
|
+
const pid = process.pid;
|
|
7
|
+
|
|
8
|
+
// Check if lock exists
|
|
9
|
+
if (fs.existsSync(lockFile)) {
|
|
10
|
+
const existingPid = fs.readFileSync(lockFile, 'utf8');
|
|
11
|
+
try {
|
|
12
|
+
// Check if process is still running
|
|
13
|
+
process.kill(existingPid, 0);
|
|
14
|
+
console.error('MCP servers already running with PID:', existingPid);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
// Process not running, remove stale lock
|
|
18
|
+
fs.unlinkSync(lockFile);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Create lock
|
|
23
|
+
fs.mkdirSync(path.dirname(lockFile), { recursive: true });
|
|
24
|
+
fs.writeFileSync(lockFile, pid.toString());
|
|
25
|
+
|
|
26
|
+
// Clean up on exit
|
|
27
|
+
process.on('exit', () => {
|
|
28
|
+
try {
|
|
29
|
+
fs.unlinkSync(lockFile);
|
|
30
|
+
} catch (e) {}
|
|
31
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.6",
|
|
4
4
|
"description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 100+ real MCP tools with AI-powered swarm orchestration and neural networks. Dynamic task categorization using AI. Machine learning for incident classification, change risk prediction, and anomaly detection. Zero Mock Data, 100% Real API Integration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"setup-mcp": "node scripts/setup-mcp.js",
|
|
22
22
|
"reset-mcp": "node scripts/reset-mcp-servers.js",
|
|
23
23
|
"reset-mcp:restart": "node scripts/reset-mcp-servers.js --restart",
|
|
24
|
+
"cleanup-mcp": "node scripts/cleanup-mcp-servers.js",
|
|
25
|
+
"mcp:clean": "node scripts/cleanup-mcp-servers.js && npm run build",
|
|
24
26
|
"postbuild-disabled": "npm run setup-mcp",
|
|
25
27
|
"postinstall": "node scripts/postinstall.js",
|
|
26
28
|
"version": "node scripts/update-version.js && npm run build && git add src/version.ts",
|