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

Checkpoint: File edits

rUv0141973fcb03
diff --git a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
index ed2a998291..761469c98b 100644
--- a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
+++ b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
@@ -208,6 +208,23 @@ const handlers = {
},
};
+// Execute the handler
+if (command && handlers[command]) {
+ try {
+ handlers[command]();
+ } catch (e) {
+ // Hooks should never crash Claude Code - fail silently
+ console.log(`[WARN] Hook ${command} encountered an error: ${e.message}`);
+ }
+ 'stats': () => {
+ if (intelligence && intelligence.stats) {
+ intelligence.stats(args.includes('--json'));
+ } else {
+ console.log('[WARN] Intelligence module not available. Run session-restore first.');
+ }
+ },
+};
+
// Execute the handler
if (command && handlers[command]) {
try {
@@ -220,5 +237,5 @@ if (command && handlers[command]) {
// Unknown command - pass through without error
console.log(`[OK] Hook: ${command}`);
} else {
- console.log('Usage: hook-handler.cjs <route|pre-bash|post-edit|session-restore|session-end|pre-task|post-task>');
+ console.log('Usage: hook-handler.cjs <route|pre-bash|post-edit|session-restore|session-end|pre-task|post-task|stats>');
}