Files
ruflo/v2/benchmark/patches/fix-hive-mind-non-interactive.patch
T
rUvandClaude Opus 4.5 1b6a1971f7 feat(v3): add comprehensive v3 implementation plans and swarm architecture
- Reorganize v3/ into implementation/ subfolders:
  - planning/, architecture/, migration/, integration/
  - security/, adrs/, research/, swarm-plans/

- Add 15-agent concurrent swarm implementation plans:
  - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases
  - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities
  - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology
  - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x)
  - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback
  - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies

- Update .claude/settings.json with proper hooks format
- Add bash aliases for claude --dangerously-skip-permissions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 15:40:51 +00:00

32 lines
1.4 KiB
Diff

--- 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);