Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

πŸ› Fix: Hooks pre-task command not exiting properly

rUv18e4554baab9
diff --git a/bin/claude-flow b/bin/claude-flow
index 7978cc9b28..5fa0a04e77 100755
--- a/bin/claude-flow
+++ b/bin/claude-flow
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
-VERSION="2.0.0-alpha.75"
+VERSION="2.0.0-alpha.76"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/bin/claude-flow.js b/bin/claude-flow.js
index 9066234c9d..7246b5d252 100644
--- a/bin/claude-flow.js
+++ b/bin/claude-flow.js
@@ -11,7 +11,7 @@ import { existsSync } from 'fs';
import { spawn } from 'child_process';
import process from 'process';
-const VERSION = "2.0.0-alpha.75";
+const VERSION = "2.0.0-alpha.76";
// Get script directory and root directory
const __filename = fileURLToPath(import.meta.url);
diff --git a/package.json b/package.json
index 2ffc445aa7..ee4177ba79 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "2.0.0-alpha.75",
+ "version": "2.0.0-alpha.76",
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
"main": "cli.mjs",
"bin": {
diff --git a/src/cli/help-text.js b/src/cli/help-text.js
index 28ba338afa..4f7d7bae1f 100644
--- a/src/cli/help-text.js
+++ b/src/cli/help-text.js
@@ -5,14 +5,14 @@
import { HelpFormatter } from './help-formatter.js';
-export const VERSION = '2.0.0-alpha.75';
+export const VERSION = '2.0.0-alpha.76';
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 75: Windows compatibility overhaul with cross-platform Node.js dispatcher
+⚑ ALPHA 76: Fixed hooks pre-task command not exiting properly
USAGE:
claude-flow <command> [options]
diff --git a/src/cli/simple-commands/hooks.js b/src/cli/simple-commands/hooks.js
index 5b2a9e6316..3276b6ef67 100644
--- a/src/cli/simple-commands/hooks.js
+++ b/src/cli/simple-commands/hooks.js
@@ -163,8 +163,23 @@ async function preTaskCommand(subArgs, flags) {
}
console.log(`\n🎯 TASK PREPARATION COMPLETE`);
+
+ // Close the memory store to prevent hanging
+ if (memoryStore && memoryStore.close) {
+ memoryStore.close();
+ }
+
+ // Ensure the process exits cleanly
+ process.exit(0);
} catch (err) {
printError(`Pre-task hook failed: ${err.message}`);
+
+ // Close the memory store on error too
+ if (memoryStore && memoryStore.close) {
+ memoryStore.close();
+ }
+
+ process.exit(1);
}
}