From a718f87f028854a67d186283f62d81e796de470e Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 4 Aug 2025 19:24:44 +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/1754335317.json | 1 + .claude/checkpoints/1754335319.json | 1 + src/cli/simple-commands/automation-executor.js | 11 ++++++----- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .claude/checkpoints/1754335317.json create mode 100644 .claude/checkpoints/1754335319.json diff --git a/.claude/checkpoints/1754335317.json b/.claude/checkpoints/1754335317.json new file mode 100644 index 0000000000..fb01d3c1b7 --- /dev/null +++ b/.claude/checkpoints/1754335317.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250804-192157", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T19:21:57Z", "type": "pre-edit", "original_branch": "alpha-85"} diff --git a/.claude/checkpoints/1754335319.json b/.claude/checkpoints/1754335319.json new file mode 100644 index 0000000000..e7d7a702ce --- /dev/null +++ b/.claude/checkpoints/1754335319.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250804-192159", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T19:21:59Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 84 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +-- .claude/checkpoints/1754335295.json | 1 + .claude/checkpoints/1754335296.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation.js | 2 +- 7 files changed, 91 insertions(+), 5 deletions(-) "} diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js index afb326fd63..c2bd84a943 100644 --- a/src/cli/simple-commands/automation-executor.js +++ b/src/cli/simple-commands/automation-executor.js @@ -190,17 +190,18 @@ export class WorkflowExecutor { // Add non-interactive flags if needed if (this.options.nonInteractive) { - // Use non-interactive mode with stream-json output - claudeArgs.push(prompt); - claudeArgs.push('--non-interactive'); + // Use print mode with stream-json output for non-interactive execution + claudeArgs.push('--print'); claudeArgs.push('--output-format', 'stream-json'); + claudeArgs.push(prompt); } else { // Interactive mode claudeArgs.push(prompt); } - // Log the command being executed - console.log(` 🤖 Spawning Claude for ${agent.name}:`, `claude ${claudeArgs.join(' ')}`); + // Log the command being executed (truncate long prompts) + const displayPrompt = prompt.length > 100 ? prompt.substring(0, 100) + '...' : prompt; + console.log(` 🤖 Spawning Claude for ${agent.name}: claude ${this.options.nonInteractive ? '--print --output-format stream-json' : ''} "${displayPrompt}"`); // Spawn Claude process const claudeProcess = spawn('claude', claudeArgs, {