mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
Merge pull request #1027 from ruvnet/fix/cli-help-categories
fix: CLI help categorization (v3.0.0-alpha.184)
This commit is contained in:
commit
4faf459a76
6 files changed
+108
-8
No files matched your search
Generated
+2
-2
@@ -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",
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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} <command> [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}`);
|
||||
|
||||
Generated
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user