@claude-flow/cli 3.5.50 → 3.5.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/helpers/hook-handler.cjs +43 -17
- package/.claude/helpers/intelligence.cjs +30 -4
- package/bin/preinstall.cjs +2 -0
- package/dist/src/commands/ruvector/benchmark.d.ts.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js +13 -4
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/index.d.ts +1 -1
- package/dist/src/commands/ruvector/index.js +2 -2
- package/dist/src/commands/ruvector/index.js.map +1 -1
- package/dist/src/commands/ruvector/init.d.ts.map +1 -1
- package/dist/src/commands/ruvector/init.js +62 -27
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.d.ts.map +1 -1
- package/dist/src/commands/ruvector/migrate.js +22 -6
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.d.ts.map +1 -1
- package/dist/src/commands/ruvector/optimize.js +1 -0
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/status.d.ts.map +1 -1
- package/dist/src/commands/ruvector/status.js +37 -15
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/security.d.ts.map +1 -1
- package/dist/src/commands/security.js +17 -6
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +40 -6
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +26 -1
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +3 -1
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +2 -1
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.d.ts +1 -1
- package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.js +2 -1
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
- package/dist/src/mcp-tools/daa-tools.d.ts +1 -1
- package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/daa-tools.js +2 -1
- package/dist/src/mcp-tools/daa-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.d.ts +1 -1
- package/dist/src/mcp-tools/github-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +2 -1
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.d.ts +1 -1
- package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.js +5 -4
- package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +5 -4
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +2 -1
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +2 -1
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.d.ts +1 -1
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +2 -1
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +8 -7
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +1 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +2 -1
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +4 -3
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +6 -4
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.d.ts +2 -7
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +29 -15
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/types.d.ts +6 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -1
- package/dist/src/mcp-tools/types.js +8 -1
- package/dist/src/mcp-tools/types.js.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts +1 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +2 -1
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
- package/dist/src/commands/categories.d.ts +0 -75
- package/dist/src/commands/categories.d.ts.map +0 -1
- package/dist/src/commands/categories.js +0 -178
- package/dist/src/commands/categories.js.map +0 -1
- package/dist/src/tests/ruvector-integration-benchmark.d.ts +0 -6
- package/dist/src/tests/ruvector-integration-benchmark.d.ts.map +0 -1
- package/dist/src/tests/ruvector-integration-benchmark.js +0 -385
- package/dist/src/tests/ruvector-integration-benchmark.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"startTime": 1760892801445,
|
|
3
|
-
"sessionId": "session-1760892801445",
|
|
4
|
-
"lastActivity": 1760892801445,
|
|
5
|
-
"sessionDuration": 0,
|
|
6
|
-
"totalTasks": 1,
|
|
7
|
-
"successfulTasks": 1,
|
|
8
|
-
"failedTasks": 0,
|
|
9
|
-
"totalAgents": 0,
|
|
10
|
-
"activeAgents": 0,
|
|
11
|
-
"neuralEvents": 0,
|
|
12
|
-
"memoryMode": {
|
|
13
|
-
"reasoningbankOperations": 0,
|
|
14
|
-
"basicOperations": 0,
|
|
15
|
-
"autoModeSelections": 0,
|
|
16
|
-
"modeOverrides": 0,
|
|
17
|
-
"currentMode": "auto"
|
|
18
|
-
},
|
|
19
|
-
"operations": {
|
|
20
|
-
"store": {
|
|
21
|
-
"count": 0,
|
|
22
|
-
"totalDuration": 0,
|
|
23
|
-
"errors": 0
|
|
24
|
-
},
|
|
25
|
-
"retrieve": {
|
|
26
|
-
"count": 0,
|
|
27
|
-
"totalDuration": 0,
|
|
28
|
-
"errors": 0
|
|
29
|
-
},
|
|
30
|
-
"query": {
|
|
31
|
-
"count": 0,
|
|
32
|
-
"totalDuration": 0,
|
|
33
|
-
"errors": 0
|
|
34
|
-
},
|
|
35
|
-
"list": {
|
|
36
|
-
"count": 0,
|
|
37
|
-
"totalDuration": 0,
|
|
38
|
-
"errors": 0
|
|
39
|
-
},
|
|
40
|
-
"delete": {
|
|
41
|
-
"count": 0,
|
|
42
|
-
"totalDuration": 0,
|
|
43
|
-
"errors": 0
|
|
44
|
-
},
|
|
45
|
-
"search": {
|
|
46
|
-
"count": 0,
|
|
47
|
-
"totalDuration": 0,
|
|
48
|
-
"errors": 0
|
|
49
|
-
},
|
|
50
|
-
"init": {
|
|
51
|
-
"count": 0,
|
|
52
|
-
"totalDuration": 0,
|
|
53
|
-
"errors": 0
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"performance": {
|
|
57
|
-
"avgOperationDuration": 0,
|
|
58
|
-
"minOperationDuration": null,
|
|
59
|
-
"maxOperationDuration": null,
|
|
60
|
-
"slowOperations": 0,
|
|
61
|
-
"fastOperations": 0,
|
|
62
|
-
"totalOperationTime": 0
|
|
63
|
-
},
|
|
64
|
-
"storage": {
|
|
65
|
-
"totalEntries": 0,
|
|
66
|
-
"reasoningbankEntries": 0,
|
|
67
|
-
"basicEntries": 0,
|
|
68
|
-
"databaseSize": 0,
|
|
69
|
-
"lastBackup": null,
|
|
70
|
-
"growthRate": 0
|
|
71
|
-
},
|
|
72
|
-
"errors": {
|
|
73
|
-
"total": 0,
|
|
74
|
-
"byType": {},
|
|
75
|
-
"byOperation": {},
|
|
76
|
-
"recent": []
|
|
77
|
-
},
|
|
78
|
-
"reasoningbank": {
|
|
79
|
-
"semanticSearches": 0,
|
|
80
|
-
"sqlFallbacks": 0,
|
|
81
|
-
"embeddingGenerated": 0,
|
|
82
|
-
"consolidations": 0,
|
|
83
|
-
"avgQueryTime": 0,
|
|
84
|
-
"cacheHits": 0,
|
|
85
|
-
"cacheMisses": 0
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command Categories for CLI Help Organization
|
|
3
|
-
*
|
|
4
|
-
* Organizes commands into logical groups following DDD bounded contexts (ADR-002)
|
|
5
|
-
* and provides structured help output with clear visual hierarchy.
|
|
6
|
-
*
|
|
7
|
-
* @module commands/categories
|
|
8
|
-
*/
|
|
9
|
-
import type { Command } from '../types.js';
|
|
10
|
-
/**
|
|
11
|
-
* Command category definition
|
|
12
|
-
*/
|
|
13
|
-
export interface CommandCategory {
|
|
14
|
-
/** Category identifier */
|
|
15
|
-
id: string;
|
|
16
|
-
/** Display name for help output */
|
|
17
|
-
name: string;
|
|
18
|
-
/** Category description */
|
|
19
|
-
description: string;
|
|
20
|
-
/** Command names in this category */
|
|
21
|
-
commands: string[];
|
|
22
|
-
/** Display priority (lower = higher in help) */
|
|
23
|
-
priority: number;
|
|
24
|
-
/** Whether to show in condensed help */
|
|
25
|
-
showInCondensed: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Primary commands - Core workflow, most frequently used
|
|
29
|
-
* These map to main DDD bounded contexts
|
|
30
|
-
*/
|
|
31
|
-
export declare const PRIMARY_COMMANDS: CommandCategory;
|
|
32
|
-
/**
|
|
33
|
-
* Advanced commands - Specialized features for power users
|
|
34
|
-
*/
|
|
35
|
-
export declare const ADVANCED_COMMANDS: CommandCategory;
|
|
36
|
-
/**
|
|
37
|
-
* Utility commands - System tools and configuration
|
|
38
|
-
*/
|
|
39
|
-
export declare const UTILITY_COMMANDS: CommandCategory;
|
|
40
|
-
/**
|
|
41
|
-
* Analysis commands - Intelligence and routing
|
|
42
|
-
*/
|
|
43
|
-
export declare const ANALYSIS_COMMANDS: CommandCategory;
|
|
44
|
-
/**
|
|
45
|
-
* Management commands - Operations and lifecycle
|
|
46
|
-
*/
|
|
47
|
-
export declare const MANAGEMENT_COMMANDS: CommandCategory;
|
|
48
|
-
/**
|
|
49
|
-
* All command categories in display order
|
|
50
|
-
*/
|
|
51
|
-
export declare const COMMAND_CATEGORIES: CommandCategory[];
|
|
52
|
-
/**
|
|
53
|
-
* Get all command names across all categories
|
|
54
|
-
*/
|
|
55
|
-
export declare function getAllCommandNames(): string[];
|
|
56
|
-
/**
|
|
57
|
-
* Get category for a command
|
|
58
|
-
*/
|
|
59
|
-
export declare function getCategoryForCommand(commandName: string): CommandCategory | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Get categories to show in condensed help
|
|
62
|
-
*/
|
|
63
|
-
export declare function getCondensedCategories(): CommandCategory[];
|
|
64
|
-
/**
|
|
65
|
-
* Format categories for help output
|
|
66
|
-
*/
|
|
67
|
-
export declare function formatCategoriesHelp(commands: Map<string, Command>, options?: {
|
|
68
|
-
condensed?: boolean;
|
|
69
|
-
colored?: boolean;
|
|
70
|
-
}): string;
|
|
71
|
-
/**
|
|
72
|
-
* Command counts by category for status display
|
|
73
|
-
*/
|
|
74
|
-
export declare function getCommandCounts(): Record<string, number>;
|
|
75
|
-
//# sourceMappingURL=categories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../../src/commands/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAkB9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,eAc/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAc9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,eAW/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,eAejC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAM/C,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEtF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,eAAe,EAAE,CAE1D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GACvD,MAAM,CAuCR;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOzD"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command Categories for CLI Help Organization
|
|
3
|
-
*
|
|
4
|
-
* Organizes commands into logical groups following DDD bounded contexts (ADR-002)
|
|
5
|
-
* and provides structured help output with clear visual hierarchy.
|
|
6
|
-
*
|
|
7
|
-
* @module commands/categories
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Primary commands - Core workflow, most frequently used
|
|
11
|
-
* These map to main DDD bounded contexts
|
|
12
|
-
*/
|
|
13
|
-
export const PRIMARY_COMMANDS = {
|
|
14
|
-
id: 'primary',
|
|
15
|
-
name: 'PRIMARY COMMANDS',
|
|
16
|
-
description: 'Core workflow and orchestration',
|
|
17
|
-
commands: [
|
|
18
|
-
'init', // Project setup
|
|
19
|
-
'start', // Quick start
|
|
20
|
-
'status', // System status
|
|
21
|
-
'agent', // Agent lifecycle (bounded context)
|
|
22
|
-
'swarm', // Swarm coordination (bounded context)
|
|
23
|
-
'memory', // Memory management (bounded context)
|
|
24
|
-
'task', // Task execution (bounded context)
|
|
25
|
-
'session', // Session management (bounded context)
|
|
26
|
-
'mcp', // MCP server interface
|
|
27
|
-
'hooks', // Self-learning hooks system
|
|
28
|
-
],
|
|
29
|
-
priority: 1,
|
|
30
|
-
showInCondensed: true,
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Advanced commands - Specialized features for power users
|
|
34
|
-
*/
|
|
35
|
-
export const ADVANCED_COMMANDS = {
|
|
36
|
-
id: 'advanced',
|
|
37
|
-
name: 'ADVANCED COMMANDS',
|
|
38
|
-
description: 'AI, security, and performance features',
|
|
39
|
-
commands: [
|
|
40
|
-
'neural', // Neural pattern training
|
|
41
|
-
'security', // Security scanning
|
|
42
|
-
'performance', // Performance profiling
|
|
43
|
-
'embeddings', // Vector embeddings
|
|
44
|
-
'hive-mind', // Queen-led consensus
|
|
45
|
-
'ruvector', // RuVector PostgreSQL bridge
|
|
46
|
-
],
|
|
47
|
-
priority: 2,
|
|
48
|
-
showInCondensed: true,
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Utility commands - System tools and configuration
|
|
52
|
-
*/
|
|
53
|
-
export const UTILITY_COMMANDS = {
|
|
54
|
-
id: 'utility',
|
|
55
|
-
name: 'UTILITY COMMANDS',
|
|
56
|
-
description: 'Configuration and system tools',
|
|
57
|
-
commands: [
|
|
58
|
-
'config', // Configuration management
|
|
59
|
-
'doctor', // System diagnostics
|
|
60
|
-
'daemon', // Background workers
|
|
61
|
-
'completions', // Shell completions
|
|
62
|
-
'migrate', // V2 to V3 migration
|
|
63
|
-
'workflow', // Workflow templates
|
|
64
|
-
],
|
|
65
|
-
priority: 3,
|
|
66
|
-
showInCondensed: true,
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Analysis commands - Intelligence and routing
|
|
70
|
-
*/
|
|
71
|
-
export const ANALYSIS_COMMANDS = {
|
|
72
|
-
id: 'analysis',
|
|
73
|
-
name: 'ANALYSIS COMMANDS',
|
|
74
|
-
description: 'Code analysis and intelligent routing',
|
|
75
|
-
commands: [
|
|
76
|
-
'analyze', // Code analysis (AST, diff, coverage)
|
|
77
|
-
'route', // Q-Learning agent routing
|
|
78
|
-
'progress', // Progress tracking
|
|
79
|
-
],
|
|
80
|
-
priority: 4,
|
|
81
|
-
showInCondensed: false,
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Management commands - Operations and lifecycle
|
|
85
|
-
*/
|
|
86
|
-
export const MANAGEMENT_COMMANDS = {
|
|
87
|
-
id: 'management',
|
|
88
|
-
name: 'MANAGEMENT COMMANDS',
|
|
89
|
-
description: 'Providers, plugins, and deployment',
|
|
90
|
-
commands: [
|
|
91
|
-
'providers', // AI provider management
|
|
92
|
-
'plugins', // Plugin management
|
|
93
|
-
'deployment', // Deployment management
|
|
94
|
-
'claims', // Claims-based authorization
|
|
95
|
-
'issues', // Issue claims (ADR-016)
|
|
96
|
-
'update', // Auto-update system
|
|
97
|
-
'process', // Background processes
|
|
98
|
-
],
|
|
99
|
-
priority: 5,
|
|
100
|
-
showInCondensed: false,
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* All command categories in display order
|
|
104
|
-
*/
|
|
105
|
-
export const COMMAND_CATEGORIES = [
|
|
106
|
-
PRIMARY_COMMANDS,
|
|
107
|
-
ADVANCED_COMMANDS,
|
|
108
|
-
UTILITY_COMMANDS,
|
|
109
|
-
ANALYSIS_COMMANDS,
|
|
110
|
-
MANAGEMENT_COMMANDS,
|
|
111
|
-
];
|
|
112
|
-
/**
|
|
113
|
-
* Get all command names across all categories
|
|
114
|
-
*/
|
|
115
|
-
export function getAllCommandNames() {
|
|
116
|
-
return COMMAND_CATEGORIES.flatMap(cat => cat.commands);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Get category for a command
|
|
120
|
-
*/
|
|
121
|
-
export function getCategoryForCommand(commandName) {
|
|
122
|
-
return COMMAND_CATEGORIES.find(cat => cat.commands.includes(commandName));
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Get categories to show in condensed help
|
|
126
|
-
*/
|
|
127
|
-
export function getCondensedCategories() {
|
|
128
|
-
return COMMAND_CATEGORIES.filter(cat => cat.showInCondensed);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Format categories for help output
|
|
132
|
-
*/
|
|
133
|
-
export function formatCategoriesHelp(commands, options = {}) {
|
|
134
|
-
const { condensed = false, colored = true } = options;
|
|
135
|
-
const categories = condensed ? getCondensedCategories() : COMMAND_CATEGORIES;
|
|
136
|
-
const lines = [];
|
|
137
|
-
for (const category of categories) {
|
|
138
|
-
// Category header
|
|
139
|
-
if (colored) {
|
|
140
|
-
lines.push(`\x1b[36m${category.name}:\x1b[0m`);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
lines.push(`${category.name}:`);
|
|
144
|
-
}
|
|
145
|
-
// Commands in category
|
|
146
|
-
for (const cmdName of category.commands) {
|
|
147
|
-
const cmd = commands.get(cmdName);
|
|
148
|
-
if (cmd && !cmd.hidden) {
|
|
149
|
-
const padding = ' '.repeat(Math.max(2, 14 - cmdName.length));
|
|
150
|
-
lines.push(` ${cmdName}${padding}${cmd.description}`);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
lines.push(''); // Empty line between categories
|
|
154
|
-
}
|
|
155
|
-
// Add note about more commands if condensed
|
|
156
|
-
if (condensed) {
|
|
157
|
-
const hiddenCount = COMMAND_CATEGORIES
|
|
158
|
-
.filter(cat => !cat.showInCondensed)
|
|
159
|
-
.reduce((sum, cat) => sum + cat.commands.length, 0);
|
|
160
|
-
if (hiddenCount > 0) {
|
|
161
|
-
lines.push(`Run "claude-flow --help-all" to see ${hiddenCount} more commands`);
|
|
162
|
-
lines.push('');
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return lines.join('\n');
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Command counts by category for status display
|
|
169
|
-
*/
|
|
170
|
-
export function getCommandCounts() {
|
|
171
|
-
const counts = {};
|
|
172
|
-
for (const cat of COMMAND_CATEGORIES) {
|
|
173
|
-
counts[cat.id] = cat.commands.length;
|
|
174
|
-
}
|
|
175
|
-
counts.total = getAllCommandNames().length;
|
|
176
|
-
return counts;
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=categories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../../src/commands/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoB;IAC/C,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE;QACR,MAAM,EAAO,gBAAgB;QAC7B,OAAO,EAAM,cAAc;QAC3B,QAAQ,EAAK,gBAAgB;QAC7B,OAAO,EAAM,oCAAoC;QACjD,OAAO,EAAM,uCAAuC;QACpD,QAAQ,EAAK,sCAAsC;QACnD,MAAM,EAAO,mCAAmC;QAChD,SAAS,EAAI,uCAAuC;QACpD,KAAK,EAAQ,uBAAuB;QACpC,OAAO,EAAM,6BAA6B;KAC3C;IACD,QAAQ,EAAE,CAAC;IACX,eAAe,EAAE,IAAI;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAoB;IAChD,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,mBAAmB;IACzB,WAAW,EA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MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;IACvC,CAAC;IACD,MAAM,CAAC,KAAK,GAAG,kBAAkB,EAAE,CAAC,MAAM,CAAC;IAC3C,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ruvector-integration-benchmark.d.ts","sourceRoot":"","sources":["../../../src/tests/ruvector-integration-benchmark.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|