mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/swarm.js
This commit is contained in:
1 parent
458e3cc9bd
commit
c2986c7a6b
3 files changed
+22
-7
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250803-122307", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:23:07Z", "type": "pre-edit", "original_branch": "alpha-84b"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250803-122309", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:23:09Z", "type": "post-edit", "branch": "alpha-84b", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 120 +++++++++ .claude-flow/metrics/task-metrics.json | 8 +- .claude/checkpoints/1754223564.json | 1 + .claude/checkpoints/1754223566.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/swarm.js | 437 +++++++++++++++++++++++++++++-- 7 files changed, 545 insertions(+), 24 deletions(-) "}
|
||||
@@ -777,13 +777,11 @@ The swarm should be self-documenting - use memory_store to save all important in
|
||||
claudeAvailable = false;
|
||||
}
|
||||
|
||||
if (claudeAvailable) {
|
||||
// Claude is available, spawn it directly
|
||||
console.log('🐝 Launching Claude Flow Swarm System...');
|
||||
console.log(`📋 Objective: ${objective}`);
|
||||
console.log(`🎯 Strategy: ${strategy}`);
|
||||
console.log(`🏗️ Mode: ${mode}`);
|
||||
console.log(`🤖 Max Agents: ${maxAgents}\n`);
|
||||
console.log('🐝 Launching Claude Flow Swarm System...');
|
||||
console.log(`📋 Objective: ${objective}`);
|
||||
console.log(`🎯 Strategy: ${strategy}`);
|
||||
console.log(`🏗️ Mode: ${mode}`);
|
||||
console.log(`🤖 Max Agents: ${maxAgents}\n`);
|
||||
|
||||
console.log('🚀 Launching Claude Code with Swarm Coordination');
|
||||
console.log('─'.repeat(60));
|
||||
@@ -843,6 +841,21 @@ The swarm should be self-documenting - use memory_store to save all important in
|
||||
process.exit(code || 0);
|
||||
});
|
||||
|
||||
return;
|
||||
} else {
|
||||
// Claude CLI not available, provide instructions
|
||||
console.log('⚠️ Claude CLI not found. Please install Claude Code:');
|
||||
console.log(' https://claude.ai/download');
|
||||
console.log('\n📋 Once installed, copy this prompt into Claude Code:\n');
|
||||
console.log('═'.repeat(80));
|
||||
console.log(swarmPrompt);
|
||||
console.log('═'.repeat(80));
|
||||
|
||||
// Save prompt to file for easy access
|
||||
const promptFile = path.join(process.cwd(), '.claude-flow', `swarm-prompt-${Date.now()}.txt`);
|
||||
await mkdirAsync(path.dirname(promptFile));
|
||||
await writeTextFile(promptFile, swarmPrompt);
|
||||
console.log(`\n💾 Prompt saved to: ${promptFile}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user