@claude-flow/cli 3.0.0-alpha.13 → 3.0.0-alpha.14

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.
Files changed (102) hide show
  1. package/package.json +12 -4
  2. package/.agentic-flow/intelligence.json +0 -17
  3. package/.claude-flow/agents/store.json +0 -16
  4. package/.claude-flow/daemon-state.json +0 -123
  5. package/.claude-flow/daemon-test.log +0 -0
  6. package/.claude-flow/daemon.log +0 -0
  7. package/.claude-flow/daemon2.log +0 -0
  8. package/.claude-flow/daemon3.log +0 -0
  9. package/.claude-flow/hive-mind/state.json +0 -51
  10. package/.claude-flow/metrics/agent-metrics.json +0 -1
  11. package/.claude-flow/metrics/codebase-map.json +0 -11
  12. package/.claude-flow/metrics/consolidation.json +0 -6
  13. package/.claude-flow/metrics/performance.json +0 -87
  14. package/.claude-flow/metrics/security-audit.json +0 -10
  15. package/.claude-flow/metrics/task-metrics.json +0 -10
  16. package/.claude-flow/metrics/test-gaps.json +0 -6
  17. package/__tests__/README.md +0 -140
  18. package/__tests__/TEST_SUMMARY.md +0 -144
  19. package/__tests__/cli.test.ts +0 -558
  20. package/__tests__/commands.test.ts +0 -726
  21. package/__tests__/config-adapter.test.ts +0 -362
  22. package/__tests__/config-loading.test.ts +0 -106
  23. package/__tests__/coverage/.tmp/coverage-0.json +0 -1
  24. package/__tests__/coverage/.tmp/coverage-1.json +0 -1
  25. package/__tests__/coverage/.tmp/coverage-2.json +0 -1
  26. package/__tests__/coverage/.tmp/coverage-3.json +0 -1
  27. package/__tests__/coverage/.tmp/coverage-4.json +0 -1
  28. package/__tests__/coverage/.tmp/coverage-5.json +0 -1
  29. package/__tests__/mcp-client.test.ts +0 -480
  30. package/__tests__/p1-commands.test.ts +0 -1064
  31. package/agents/architect.yaml +0 -11
  32. package/agents/coder.yaml +0 -11
  33. package/agents/reviewer.yaml +0 -10
  34. package/agents/security-architect.yaml +0 -10
  35. package/agents/tester.yaml +0 -10
  36. package/docs/CONFIG_LOADING.md +0 -236
  37. package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
  38. package/docs/MCP_CLIENT_GUIDE.md +0 -620
  39. package/docs/REFACTORING_SUMMARY.md +0 -247
  40. package/scripts/publish.sh +0 -46
  41. package/src/commands/agent.ts +0 -955
  42. package/src/commands/claims.ts +0 -317
  43. package/src/commands/completions.ts +0 -558
  44. package/src/commands/config.ts +0 -452
  45. package/src/commands/daemon.ts +0 -621
  46. package/src/commands/deployment.ts +0 -323
  47. package/src/commands/doctor.ts +0 -382
  48. package/src/commands/embeddings.ts +0 -686
  49. package/src/commands/hive-mind.ts +0 -928
  50. package/src/commands/hooks.ts +0 -2603
  51. package/src/commands/index.ts +0 -154
  52. package/src/commands/init.ts +0 -597
  53. package/src/commands/mcp.ts +0 -753
  54. package/src/commands/memory.ts +0 -1161
  55. package/src/commands/migrate.ts +0 -447
  56. package/src/commands/neural.ts +0 -253
  57. package/src/commands/performance.ts +0 -292
  58. package/src/commands/plugins.ts +0 -316
  59. package/src/commands/process.ts +0 -695
  60. package/src/commands/providers.ts +0 -259
  61. package/src/commands/security.ts +0 -288
  62. package/src/commands/session.ts +0 -891
  63. package/src/commands/start.ts +0 -457
  64. package/src/commands/status.ts +0 -736
  65. package/src/commands/swarm.ts +0 -648
  66. package/src/commands/task.ts +0 -792
  67. package/src/commands/workflow.ts +0 -742
  68. package/src/config-adapter.ts +0 -210
  69. package/src/index.ts +0 -443
  70. package/src/infrastructure/in-memory-repositories.ts +0 -310
  71. package/src/init/claudemd-generator.ts +0 -631
  72. package/src/init/executor.ts +0 -762
  73. package/src/init/helpers-generator.ts +0 -628
  74. package/src/init/index.ts +0 -60
  75. package/src/init/mcp-generator.ts +0 -83
  76. package/src/init/settings-generator.ts +0 -284
  77. package/src/init/statusline-generator.ts +0 -211
  78. package/src/init/types.ts +0 -447
  79. package/src/mcp-client.ts +0 -241
  80. package/src/mcp-server.ts +0 -577
  81. package/src/mcp-tools/agent-tools.ts +0 -466
  82. package/src/mcp-tools/config-tools.ts +0 -370
  83. package/src/mcp-tools/hive-mind-tools.ts +0 -521
  84. package/src/mcp-tools/hooks-tools.ts +0 -1888
  85. package/src/mcp-tools/index.ts +0 -16
  86. package/src/mcp-tools/memory-tools.ts +0 -270
  87. package/src/mcp-tools/session-tools.ts +0 -359
  88. package/src/mcp-tools/swarm-tools.ts +0 -105
  89. package/src/mcp-tools/task-tools.ts +0 -347
  90. package/src/mcp-tools/types.ts +0 -33
  91. package/src/mcp-tools/workflow-tools.ts +0 -573
  92. package/src/output.ts +0 -639
  93. package/src/parser.ts +0 -417
  94. package/src/prompt.ts +0 -619
  95. package/src/services/index.ts +0 -15
  96. package/src/services/worker-daemon.ts +0 -726
  97. package/src/suggest.ts +0 -245
  98. package/src/types.ts +0 -287
  99. package/tmp.json +0 -0
  100. package/tsconfig.json +0 -16
  101. package/tsconfig.tsbuildinfo +0 -1
  102. package/vitest.config.ts +0 -13
@@ -1,154 +0,0 @@
1
- /**
2
- * V3 CLI Commands Index
3
- * Central registry for all CLI commands
4
- */
5
-
6
- import type { Command } from '../types.js';
7
- import { agentCommand } from './agent.js';
8
- import { swarmCommand } from './swarm.js';
9
- import { memoryCommand } from './memory.js';
10
- import { mcpCommand } from './mcp.js';
11
- import { configCommand } from './config.js';
12
- import { migrateCommand } from './migrate.js';
13
- import { hooksCommand } from './hooks.js';
14
- import { workflowCommand } from './workflow.js';
15
- import { hiveMindCommand } from './hive-mind.js';
16
- import { processCommand } from './process.js';
17
- // P1 Commands
18
- import { initCommand } from './init.js';
19
- import { startCommand } from './start.js';
20
- import { statusCommand } from './status.js';
21
- import { taskCommand } from './task.js';
22
- import { sessionCommand } from './session.js';
23
- import { daemonCommand } from './daemon.js';
24
- // V3 Advanced Commands
25
- import { neuralCommand } from './neural.js';
26
- import { securityCommand } from './security.js';
27
- import { performanceCommand } from './performance.js';
28
- import { providersCommand } from './providers.js';
29
- import { pluginsCommand } from './plugins.js';
30
- import { deploymentCommand } from './deployment.js';
31
- import { claimsCommand } from './claims.js';
32
- import { embeddingsCommand } from './embeddings.js';
33
- // P0 Commands
34
- import { completionsCommand } from './completions.js';
35
- import { doctorCommand } from './doctor.js';
36
-
37
- // Export all commands
38
- export { agentCommand } from './agent.js';
39
- export { swarmCommand } from './swarm.js';
40
- export { memoryCommand } from './memory.js';
41
- export { mcpCommand } from './mcp.js';
42
- export { configCommand } from './config.js';
43
- export { migrateCommand } from './migrate.js';
44
- export { hooksCommand } from './hooks.js';
45
- export { workflowCommand } from './workflow.js';
46
- export { hiveMindCommand } from './hive-mind.js';
47
- export { processCommand } from './process.js';
48
- // P1 Commands
49
- export { initCommand } from './init.js';
50
- export { startCommand } from './start.js';
51
- export { statusCommand } from './status.js';
52
- export { taskCommand } from './task.js';
53
- export { sessionCommand } from './session.js';
54
- export { daemonCommand } from './daemon.js';
55
- // V3 Advanced Commands
56
- export { neuralCommand } from './neural.js';
57
- export { securityCommand } from './security.js';
58
- export { performanceCommand } from './performance.js';
59
- export { providersCommand } from './providers.js';
60
- export { pluginsCommand } from './plugins.js';
61
- export { deploymentCommand } from './deployment.js';
62
- export { claimsCommand } from './claims.js';
63
- export { embeddingsCommand } from './embeddings.js';
64
- // P0 Commands
65
- export { completionsCommand } from './completions.js';
66
- export { doctorCommand } from './doctor.js';
67
-
68
- /**
69
- * All available commands
70
- */
71
- export const commands: Command[] = [
72
- // P1 Core Commands
73
- initCommand,
74
- startCommand,
75
- statusCommand,
76
- taskCommand,
77
- sessionCommand,
78
- // Original Commands
79
- agentCommand,
80
- swarmCommand,
81
- memoryCommand,
82
- mcpCommand,
83
- configCommand,
84
- migrateCommand,
85
- hooksCommand,
86
- workflowCommand,
87
- hiveMindCommand,
88
- processCommand,
89
- daemonCommand,
90
- // V3 Advanced Commands
91
- neuralCommand,
92
- securityCommand,
93
- performanceCommand,
94
- providersCommand,
95
- pluginsCommand,
96
- deploymentCommand,
97
- claimsCommand,
98
- embeddingsCommand,
99
- // P0 Commands
100
- completionsCommand,
101
- doctorCommand,
102
- ];
103
-
104
- /**
105
- * Command registry map for quick lookup
106
- */
107
- export const commandRegistry = new Map<string, Command>();
108
-
109
- // Register all commands and their aliases
110
- for (const cmd of commands) {
111
- commandRegistry.set(cmd.name, cmd);
112
- if (cmd.aliases) {
113
- for (const alias of cmd.aliases) {
114
- commandRegistry.set(alias, cmd);
115
- }
116
- }
117
- }
118
-
119
- /**
120
- * Get command by name
121
- */
122
- export function getCommand(name: string): Command | undefined {
123
- return commandRegistry.get(name);
124
- }
125
-
126
- /**
127
- * Check if command exists
128
- */
129
- export function hasCommand(name: string): boolean {
130
- return commandRegistry.has(name);
131
- }
132
-
133
- /**
134
- * Get all command names (including aliases)
135
- */
136
- export function getCommandNames(): string[] {
137
- return Array.from(commandRegistry.keys());
138
- }
139
-
140
- /**
141
- * Get all unique commands (excluding aliases)
142
- */
143
- export function getUniqueCommands(): Command[] {
144
- return commands.filter(cmd => !cmd.hidden);
145
- }
146
-
147
- /**
148
- * Setup commands in a CLI instance
149
- */
150
- export function setupCommands(cli: { command: (cmd: Command) => void }): void {
151
- for (const cmd of commands) {
152
- cli.command(cmd);
153
- }
154
- }