🔧 Update version to 2.0.0-alpha.60 and fix Claude Code integration

- Updated package.json version to 2.0.0-alpha.60
- Updated CLI help text to reflect alpha.60 features
- Fixed Claude Code integration with hive-mind spawn
- Improved session directory management (.hive-mind/sessions)
- Removed --no-interactive flag for proper interactive sessions
- Fixed mkdirAsync usage for session directory creation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
rUvandClaude committed 2025-07-17 04:55:16 +00:00
1 parent 475a0adc01
commit 6b6effab8d
3 files changed
+13 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
"version": "2.0.0-alpha.59",
"version": "2.0.0-alpha.60",
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
"main": "cli.mjs",
"bin": {
+2 -2
View File
@@ -3,14 +3,14 @@
* Provides clear, actionable command documentation
*/
export const VERSION = '2.0.0-alpha.58';
export const VERSION = '2.0.0-alpha.60';
export const MAIN_HELP = `
🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 87 MCP tools, neural networking, and production-ready infrastructure
🐝 NEW: Advanced Hive Mind System with Queen-led coordination, collective intelligence, and unlimited scaling
⚡ ALPHA 58: Hive-mind wizard prompt generation, session cleanup, Claude API config, and TypeScript fixes
⚡ ALPHA 60: Fixed Claude Code integration with hive-mind spawn, proper session directory management, and improved coordination
USAGE:
claude-flow <command> [options]
+10 -6
View File
@@ -1685,7 +1685,11 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
try {
// ALWAYS save the prompt file first (fix for issue #330)
const promptFile = `hive-mind-prompt-${swarmId}.txt`;
// Ensure sessions directory exists
const sessionsDir = path.join('.hive-mind', 'sessions');
await mkdirAsync(sessionsDir, { recursive: true });
const promptFile = path.join(sessionsDir, `hive-mind-prompt-${swarmId}.txt`);
await writeFile(promptFile, hiveMindPrompt, 'utf8');
console.log(chalk.green(`\n✓ Hive Mind prompt saved to: ${promptFile}`));
@@ -1705,8 +1709,8 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
if (claudeAvailable && !flags.dryRun) {
// Pass the prompt directly as an argument to claude
// Using non-interactive mode to prevent hanging
const claudeArgs = [hiveMindPrompt, '--no-interactive'];
// Remove --print to allow interactive session
const claudeArgs = [hiveMindPrompt];
// Add auto-permission flag by default for hive-mind mode (unless explicitly disabled)
if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
@@ -1715,9 +1719,9 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
}
// Spawn claude with the prompt as the first argument
// Use 'pipe' instead of 'inherit' to prevent terminal conflicts
// Use 'inherit' to allow interactive session
const claudeProcess = childSpawn('claude', claudeArgs, {
stdio: 'pipe',
stdio: 'inherit',
shell: false
});
@@ -2391,7 +2395,7 @@ async function launchClaudeWithContext(prompt, flags) {
}
if (claudeAvailable && !flags.dryRun) {
const claudeArgs = [prompt, '--no-interactive'];
const claudeArgs = [prompt, '--print'];
if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
claudeArgs.push('--dangerously-skip-permissions');