mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js
This commit is contained in:
1 parent
528995890c
commit
9cd6945e01
3 files changed
+20
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250805-025841", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-05T02:58:41Z", "type": "pre-edit", "original_branch": "alpha-85"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250805-025843", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-05T02:58:43Z", "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 | 6 ++--- .claude/checkpoints/1754362701.json | 1 + .claude/checkpoints/1754362702.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation-executor.js | 19 +++++++++++++- 7 files changed, 60 insertions(+), 5 deletions(-) "}
|
||||
@@ -1221,8 +1221,25 @@ COORDINATION KEY POINTS:
|
||||
const agent = claudeInstance.agent;
|
||||
const taskPrompt = this.createTaskPrompt(task, agent, workflow);
|
||||
|
||||
// Check if we should chain from a previous task
|
||||
let chainOptions = {};
|
||||
if (this.enableChaining && this.options.outputFormat === 'stream-json' && task.depends?.length > 0) {
|
||||
// Get the output stream from the last dependency
|
||||
const lastDependency = task.depends[task.depends.length - 1];
|
||||
const dependencyStream = this.taskOutputStreams.get(lastDependency);
|
||||
if (dependencyStream) {
|
||||
console.log(` 🔗 Enabling stream chaining from ${lastDependency} to ${task.id}`);
|
||||
chainOptions.inputStream = dependencyStream;
|
||||
}
|
||||
}
|
||||
|
||||
// For now, spawn a new instance for each task
|
||||
const taskClaudeProcess = await this.spawnClaudeInstance(agent, taskPrompt);
|
||||
const taskClaudeProcess = await this.spawnClaudeInstance(agent, taskPrompt, chainOptions);
|
||||
|
||||
// Store the output stream for potential chaining
|
||||
if (this.enableChaining && this.options.outputFormat === 'stream-json' && taskClaudeProcess.stdout) {
|
||||
this.taskOutputStreams.set(task.id, taskClaudeProcess.stdout);
|
||||
}
|
||||
|
||||
// Wait for completion
|
||||
// Use longer timeout for ML tasks
|
||||
|
||||
Reference in new issue
Block a user