mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js
This commit is contained in:
1 parent
76a2660ab5
commit
783fd28422
3 files changed
+3
-28
No files matched your search
@@ -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"}
|
||||
@@ -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(-) "}
|
||||
@@ -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}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user