diff --git a/package-lock.json b/package-lock.json index bc889ae005..14b085422b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claude-flow", - "version": "3.0.0-alpha.182", + "version": "3.0.0-alpha.184", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claude-flow", - "version": "3.0.0-alpha.182", + "version": "3.0.0-alpha.184", "license": "MIT", "dependencies": { "@claude-flow/plugin-gastown-bridge": "^0.1.0", diff --git a/package.json b/package.json index 3ca7936c42..87a8f6a76d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "3.0.0-alpha.183", + "version": "3.0.0-alpha.184", "description": "Enterprise AI agent orchestration for Claude Code - Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "dist/index.js", "type": "module", diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index 902ad9e91f..4787a0270d 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/cli", - "version": "3.0.0-alpha.183", + "version": "3.0.0-alpha.184", "type": "module", "description": "Claude Flow CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code", "main": "dist/src/index.js", diff --git a/v3/@claude-flow/cli/src/commands/index.ts b/v3/@claude-flow/cli/src/commands/index.ts index ea88a4cdf5..d1c0499c0f 100644 --- a/v3/@claude-flow/cli/src/commands/index.ts +++ b/v3/@claude-flow/cli/src/commands/index.ts @@ -120,6 +120,21 @@ import { performanceCommand } from './performance.js'; import { securityCommand } from './security.js'; import { ruvectorCommand } from './ruvector/index.js'; import { hiveMindCommand } from './hive-mind.js'; +// Additional commands for categorized help display +import { configCommand } from './config.js'; +import { completionsCommand } from './completions.js'; +import { migrateCommand } from './migrate.js'; +import { workflowCommand } from './workflow.js'; +import { analyzeCommand } from './analyze.js'; +import { routeCommand } from './route.js'; +import { progressCommand } from './progress.js'; +import { providersCommand } from './providers.js'; +import { pluginsCommand } from './plugins.js'; +import { deploymentCommand } from './deployment.js'; +import { claimsCommand } from './claims.js'; +import { issuesCommand } from './issues.js'; +import updateCommand from './update.js'; +import { processCommand } from './process.js'; // Pre-populate cache with core commands loadedCommands.set('init', initCommand); @@ -214,6 +229,54 @@ export const commands: Command[] = [ hiveMindCommand, ]; +/** + * Commands organized by category for help display + */ +export const commandsByCategory = { + primary: [ + initCommand, + startCommand, + statusCommand, + agentCommand, + swarmCommand, + memoryCommand, + taskCommand, + sessionCommand, + mcpCommand, + hooksCommand, + ], + advanced: [ + neuralCommand, + securityCommand, + performanceCommand, + embeddingsCommand, + hiveMindCommand, + ruvectorCommand, + ], + utility: [ + configCommand, + doctorCommand, + daemonCommand, + completionsCommand, + migrateCommand, + workflowCommand, + ], + analysis: [ + analyzeCommand, + routeCommand, + progressCommand, + ], + management: [ + providersCommand, + pluginsCommand, + deploymentCommand, + claimsCommand, + issuesCommand, + updateCommand, + processCommand, + ], +}; + /** * Command registry map for quick lookup * Supports both sync (core commands) and async (lazy-loaded) commands diff --git a/v3/@claude-flow/cli/src/index.ts b/v3/@claude-flow/cli/src/index.ts index ca2fc5e1e0..b773ea9ba9 100644 --- a/v3/@claude-flow/cli/src/index.ts +++ b/v3/@claude-flow/cli/src/index.ts @@ -11,7 +11,7 @@ import { dirname, join } from 'path'; import type { Command, CommandContext, CommandResult, V3Config, CLIError } from './types.js'; import { CommandParser, commandParser } from './parser.js'; import { OutputFormatter, output } from './output.js'; -import { commands, commandRegistry, getCommand, getCommandAsync, getCommandNames, hasCommand } from './commands/index.js'; +import { commands, commandsByCategory, commandRegistry, getCommand, getCommandAsync, getCommandNames, hasCommand } from './commands/index.js'; import { suggestCommand } from './suggest.js'; import { runStartupUpdateCheck } from './update/index.js'; @@ -268,8 +268,45 @@ export class CLI { this.output.writeln(` ${this.name} [subcommand] [options]`); this.output.writeln(); - this.output.writeln(this.output.bold('COMMANDS:')); - for (const cmd of commands) { + // Primary Commands + this.output.writeln(this.output.bold('PRIMARY COMMANDS:')); + for (const cmd of commandsByCategory.primary) { + if (cmd.hidden) continue; + const name = cmd.name.padEnd(12); + this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`); + } + this.output.writeln(); + + // Advanced Commands + this.output.writeln(this.output.bold('ADVANCED COMMANDS:')); + for (const cmd of commandsByCategory.advanced) { + if (cmd.hidden) continue; + const name = cmd.name.padEnd(12); + this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`); + } + this.output.writeln(); + + // Utility Commands + this.output.writeln(this.output.bold('UTILITY COMMANDS:')); + for (const cmd of commandsByCategory.utility) { + if (cmd.hidden) continue; + const name = cmd.name.padEnd(12); + this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`); + } + this.output.writeln(); + + // Analysis Commands + this.output.writeln(this.output.bold('ANALYSIS COMMANDS:')); + for (const cmd of commandsByCategory.analysis) { + if (cmd.hidden) continue; + const name = cmd.name.padEnd(12); + this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`); + } + this.output.writeln(); + + // Management Commands + this.output.writeln(this.output.bold('MANAGEMENT COMMANDS:')); + for (const cmd of commandsByCategory.management) { if (cmd.hidden) continue; const name = cmd.name.padEnd(12); this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`); diff --git a/v3/package-lock.json b/v3/package-lock.json index 9b8e950cbe..0eb89a173b 100644 --- a/v3/package-lock.json +++ b/v3/package-lock.json @@ -1789,7 +1789,7 @@ } }, "@claude-flow/cli": { - "version": "3.0.0-alpha.183", + "version": "3.0.0-alpha.184", "license": "MIT", "dependencies": { "@claude-flow/aidefence": "^3.0.2",