From 783fd284229d4efead722c27b331b06797bc91c5 Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 4 Aug 2025 19:59:22 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/simple-commands/automation-executor.j?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1754337541.json | 1 + .claude/checkpoints/1754337543.json | 1 + .../simple-commands/automation-executor.js | 29 +------------------ 3 files changed, 3 insertions(+), 28 deletions(-) create mode 100644 .claude/checkpoints/1754337541.json create mode 100644 .claude/checkpoints/1754337543.json 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}`); - } } });