claude-flow 2.0.0-alpha.59 → 2.0.0-alpha.60

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/bin/claude-flow CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
3
3
 
4
- VERSION="2.0.0-alpha.59"
4
+ VERSION="2.0.0-alpha.60"
5
5
 
6
6
  # Determine the correct path based on how the script is invoked
7
7
  if [ -L "$0" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "2.0.0-alpha.59",
3
+ "version": "2.0.0-alpha.60",
4
4
  "description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
5
5
  "main": "cli.mjs",
6
6
  "bin": {
@@ -3,14 +3,14 @@
3
3
  * Provides clear, actionable command documentation
4
4
  */
5
5
 
6
- export const VERSION = '2.0.0-alpha.58';
6
+ export const VERSION = '2.0.0-alpha.60';
7
7
 
8
8
  export const MAIN_HELP = `
9
9
  🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
10
10
 
11
11
  šŸŽÆ ENTERPRISE FEATURES: Complete ruv-swarm integration with 87 MCP tools, neural networking, and production-ready infrastructure
12
12
  šŸ NEW: Advanced Hive Mind System with Queen-led coordination, collective intelligence, and unlimited scaling
13
- ⚔ ALPHA 58: Hive-mind wizard prompt generation, session cleanup, Claude API config, and TypeScript fixes
13
+ ⚔ ALPHA 60: Fixed Claude Code integration with hive-mind spawn, proper session directory management, and improved coordination
14
14
 
15
15
  USAGE:
16
16
  claude-flow <command> [options]
@@ -1685,7 +1685,11 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
1685
1685
 
1686
1686
  try {
1687
1687
  // ALWAYS save the prompt file first (fix for issue #330)
1688
- const promptFile = `hive-mind-prompt-${swarmId}.txt`;
1688
+ // Ensure sessions directory exists
1689
+ const sessionsDir = path.join('.hive-mind', 'sessions');
1690
+ await mkdirAsync(sessionsDir, { recursive: true });
1691
+
1692
+ const promptFile = path.join(sessionsDir, `hive-mind-prompt-${swarmId}.txt`);
1689
1693
  await writeFile(promptFile, hiveMindPrompt, 'utf8');
1690
1694
  console.log(chalk.green(`\nāœ“ Hive Mind prompt saved to: ${promptFile}`));
1691
1695
 
@@ -1705,8 +1709,8 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
1705
1709
 
1706
1710
  if (claudeAvailable && !flags.dryRun) {
1707
1711
  // Pass the prompt directly as an argument to claude
1708
- // Using non-interactive mode to prevent hanging
1709
- const claudeArgs = [hiveMindPrompt, '--no-interactive'];
1712
+ // Remove --print to allow interactive session
1713
+ const claudeArgs = [hiveMindPrompt];
1710
1714
 
1711
1715
  // Add auto-permission flag by default for hive-mind mode (unless explicitly disabled)
1712
1716
  if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
@@ -1715,9 +1719,9 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
1715
1719
  }
1716
1720
 
1717
1721
  // Spawn claude with the prompt as the first argument
1718
- // Use 'pipe' instead of 'inherit' to prevent terminal conflicts
1722
+ // Use 'inherit' to allow interactive session
1719
1723
  const claudeProcess = childSpawn('claude', claudeArgs, {
1720
- stdio: 'pipe',
1724
+ stdio: 'inherit',
1721
1725
  shell: false
1722
1726
  });
1723
1727
 
@@ -2391,7 +2395,7 @@ async function launchClaudeWithContext(prompt, flags) {
2391
2395
  }
2392
2396
 
2393
2397
  if (claudeAvailable && !flags.dryRun) {
2394
- const claudeArgs = [prompt, '--no-interactive'];
2398
+ const claudeArgs = [prompt, '--print'];
2395
2399
 
2396
2400
  if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
2397
2401
  claudeArgs.push('--dangerously-skip-permissions');