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

rUv232bd1dca461
diff --git a/.claude/checkpoints/1754335162.json b/.claude/checkpoints/1754335162.json
new file mode 100644
index 0000000000..2c1e00b920
--- /dev/null
+++ b/.claude/checkpoints/1754335162.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250804-191922", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T19:19:22Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754335163.json b/.claude/checkpoints/1754335163.json
new file mode 100644
index 0000000000..8550105a12
--- /dev/null
+++ b/.claude/checkpoints/1754335163.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250804-191923", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T19:19:23Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 +++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1754335123.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation-executor.js | 95 ++++++++++++++++++++++++-- 6 files changed, 118 insertions(+), 10 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index e62d803b73..31b76130da 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -310,6 +310,42 @@ export class WorkflowExecutor {
return claudeProcess;
}
+ /**
+ * Handle Claude stream events
+ */
+ handleClaudeStreamEvent(agent, event) {
+ if (this.options.outputFormat === 'stream-json') {
+ // Forward the event with agent context
+ console.log(JSON.stringify({
+ ...event,
+ agent: agent.id,
+ agentName: agent.name,
+ workflowId: this.executionId
+ }));
+ } else {
+ // Format output for text mode
+ switch (event.type) {
+ case 'tool_use':
+ console.log(` [${agent.name}] πŸ”§ Using tool: ${event.name}`);
+ break;
+ case 'message':
+ console.log(` [${agent.name}] πŸ’¬ ${event.content}`);
+ break;
+ case 'completion':
+ console.log(` [${agent.name}] βœ… Task completed`);
+ break;
+ case 'error':
+ console.error(` [${agent.name}] ❌ Error: ${event.error}`);
+ break;
+ default:
+ // Log other events in debug mode
+ if (this.options.logLevel === 'debug') {
+ console.log(` [${agent.name}] ${event.type}: ${JSON.stringify(event)}`);
+ }
+ }
+ }
+ }
+
/**
* Create agent-specific Claude prompt
*/