claude-flow 3.5.38 → 3.5.39

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.5.38",
3
+ "version": "3.5.39",
4
4
  "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -97,9 +97,12 @@ const startCommand = {
97
97
  output.writeln();
98
98
  output.printInfo('Starting MCP Server...');
99
99
  output.writeln();
100
- // Check if already running
100
+ // Check if already running (skip self-detection for stdio — getStatus()
101
+ // reports the current process as "running" when transport=stdio and no
102
+ // PID file exists, which would cause us to SIGKILL ourselves)
101
103
  const existingStatus = await getMCPServerStatus();
102
- if (existingStatus.running) {
104
+ const isSelfDetected = existingStatus.pid === process.pid;
105
+ if (existingStatus.running && !isSelfDetected) {
103
106
  // For stdio transport, always force restart since we can't health check it
104
107
  // For other transports, check health unless --force is specified
105
108
  const shouldForceRestart = force || transport === 'stdio';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.5.38",
3
+ "version": "3.5.39",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",