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 edit:

rUv656ae12270b1
diff --git a/v3/@claude-flow/cli/src/index.ts b/v3/@claude-flow/cli/src/index.ts
index 2477673d4b..edd4a51a95 100644
--- a/v3/@claude-flow/cli/src/index.ts
+++ b/v3/@claude-flow/cli/src/index.ts
@@ -142,6 +142,11 @@ export class CLI {
this.showCommandHelp(commandName);
}
} catch (error) {
+ // Don't re-handle if this is a process.exit error (from mocked tests)
+ const errorMessage = (error as Error).message;
+ if (errorMessage && errorMessage.startsWith('process.exit:')) {
+ throw error; // Re-throw so tests can capture the exit code
+ }
this.handleError(error as Error);
}
}