mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/patches/fix-hive-mind-non-interactive.patch
This commit is contained in:
1 parent
3498c127df
commit
af7402bd33
2 files changed
+33
No files matched your search
@@ -0,0 +1 @@
|
||||
{"checkpoint": "task-20250806-131204", "task": "this was previously working, try claude-flow alpha 83 with --non-interactive ", "timestamp": "2025-08-06T13:12:05Z", "commit": "3498c127df3ff1d44fc6d949d6e1bb26e9f0e22d", "github_release": "true"}
|
||||
@@ -0,0 +1,32 @@
|
||||
--- a/src/cli/simple-commands/hive-mind.js
|
||||
+++ b/src/cli/simple-commands/hive-mind.js
|
||||
@@ -426,6 +426,16 @@ async function spawnSwarmWizard() {
|
||||
async function spawnSwarm(args, flags) {
|
||||
const objective = args.join(' ').trim();
|
||||
|
||||
+ // Check for non-interactive mode FIRST
|
||||
+ if (flags['non-interactive'] || flags.nonInteractive) {
|
||||
+ if (!objective) {
|
||||
+ console.error(chalk.red('Error: Objective required in non-interactive mode'));
|
||||
+ console.log('Usage: claude-flow hive-mind spawn --non-interactive "Your objective"');
|
||||
+ return;
|
||||
+ }
|
||||
+ // Skip wizard and proceed with defaults
|
||||
+ // Continue with the spawn logic using provided parameters
|
||||
+ }
|
||||
+
|
||||
if (!objective && !flags.wizard) {
|
||||
console.error(chalk.red('Error: Please provide an objective or use --wizard flag'));
|
||||
console.log('Example: claude-flow hive-mind spawn "Build REST API"');
|
||||
@@ -1483,7 +1493,12 @@ export async function hiveMindCommand(args, flags) {
|
||||
case 'spawn':
|
||||
- if (flags.wizard || subArgs.length === 0) {
|
||||
+ // Check for non-interactive mode first
|
||||
+ if (flags['non-interactive'] || flags.nonInteractive) {
|
||||
+ // Use spawnSwarm directly with provided arguments
|
||||
+ await spawnSwarm(subArgs, flags);
|
||||
+ } else if (flags.wizard || subArgs.length === 0) {
|
||||
+ // Use wizard for interactive mode
|
||||
await spawnSwarmWizard();
|
||||
} else {
|
||||
await spawnSwarm(subArgs, flags);
|
||||
Reference in new issue
Block a user