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: Edit /workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js

rUv783fd284229d
diff --git a/.claude/checkpoints/1754337541.json b/.claude/checkpoints/1754337541.json
new file mode 100644
index 0000000000..e90831ac7b
--- /dev/null
+++ b/.claude/checkpoints/1754337541.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250804-195901", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T19:59:01Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754337543.json b/.claude/checkpoints/1754337543.json
new file mode 100644
index 0000000000..7223272642
--- /dev/null
+++ b/.claude/checkpoints/1754337543.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250804-195903", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T19:59:03Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 8 +++--- .claude/checkpoints/1754337527.json | 1 + .claude/checkpoints/1754337529.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation-executor.js | 6 +++++ 7 files changed, 49 insertions(+), 5 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index 0d87b42354..fd5c8a318b 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -283,20 +283,7 @@ export class WorkflowExecutor {
// Handle process events
claudeProcess.on('error', (error) => {
- const errorMessage = `Claude instance error for ${agent.name}: ${error.message}`;
-
- if (this.options.outputFormat === 'stream-json') {
- console.log(JSON.stringify({
- type: 'process_error',
- agent: agent.id,
- name: agent.name,
- error: error.message,
- timestamp: new Date().toISOString()
- }));
- } else {
- console.error(`❌ ${errorMessage}`);
- }
-
+ console.error(`❌ Claude instance error for ${agent.name}:`, error.message);
this.errors.push({
type: 'claude_instance_error',
agent: agent.id,
@@ -311,20 +298,6 @@ export class WorkflowExecutor {
instance.status = code === 0 ? 'completed' : 'failed';
instance.exitCode = code;
instance.endTime = Date.now();
-
- if (this.options.outputFormat === 'stream-json') {
- console.log(JSON.stringify({
- type: 'agent_complete',
- agent: agent.id,
- name: agent.name,
- status: instance.status,
- exitCode: code,
- duration: instance.endTime - instance.startTime,
- timestamp: new Date().toISOString()
- }));
- } else if (this.options.nonInteractive) {
- console.log(` ✅ [${agent.name}] Completed with exit code: ${code}`);
- }
}
});