mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js
This commit is contained in:
1 parent
2878ae2a4f
commit
a718f87f02
3 files changed
+8
-5
No files matched your search
@@ -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"}
|
||||
@@ -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(-) "}
|
||||
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user