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

rUvc1f0800ed032
diff --git a/.claude/checkpoints/1754338777.json b/.claude/checkpoints/1754338777.json
new file mode 100644
index 0000000000..1e86e401ba
--- /dev/null
+++ b/.claude/checkpoints/1754338777.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250804-201937", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T20:19:37Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754338779.json b/.claude/checkpoints/1754338779.json
new file mode 100644
index 0000000000..a12ab032f8
--- /dev/null
+++ b/.claude/checkpoints/1754338779.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250804-201939", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T20:19:39Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 9006 +++++++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 14 +- .claude/checkpoints/1754338746.json | 1 + .claude/checkpoints/1754338748.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation.js | 8 + 7 files changed, 8995 insertions(+), 41 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index ff29bb85b0..84ce7b79f2 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -321,26 +321,26 @@ export class WorkflowExecutor {
*/
handleClaudeStreamEvent(agent, event) {
if (this.options.outputFormat === 'stream-json') {
- // Create formatted JSON with summary
- const formattedEvent = {
- timestamp: new Date().toISOString(),
- agent: {
- id: agent.id,
- name: agent.name,
- type: agent.type
- },
- workflow: {
- id: this.executionId,
- phase: this.currentPhase || 'unknown'
- },
- event: {
- type: event.type,
- summary: this.getEventSummary(event),
- ...event
- }
+ // Create concise formatted JSON with summary
+ const summary = this.getEventSummary(event);
+ const icon = this.getEventIcon(event.type);
+
+ // Simplified output for better readability
+ const output = {
+ t: new Date().toISOString().split('T')[1].split('.')[0], // HH:MM:SS
+ agent: `${this.getAgentIcon(agent.id)} ${agent.name}`,
+ phase: this.currentPhase,
+ event: `${icon} ${summary}`
};
- console.log(JSON.stringify(formattedEvent, null, 2));
+ // Add relevant details based on event type
+ if (event.type === 'tool_use' && event.name) {
+ output.tool = event.name;
+ } else if (event.type === 'error' && event.error) {
+ output.error = event.error;
+ }
+
+ console.log(JSON.stringify(output));
} else {
// Format output for text mode
switch (event.type) {