🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js

This commit is contained in:
rUv committed 2025-08-04 19:19:38 +00:00
1 parent 777bf8bca6
commit 232bd1dca4
3 files changed
+38

No files matched your search

+1
View File
@@ -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"}
+1
View File
@@ -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(-) "}
@@ -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
*/