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

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 (106) hide show
  1. package/dist/src/commands/doctor.d.ts.map +1 -1
  2. package/dist/src/commands/doctor.js +75 -2
  3. package/dist/src/commands/doctor.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +12 -4
  6. package/.agentic-flow/intelligence.json +0 -17
  7. package/.claude-flow/agents/store.json +0 -16
  8. package/.claude-flow/daemon-state.json +0 -123
  9. package/.claude-flow/daemon-test.log +0 -0
  10. package/.claude-flow/daemon.log +0 -0
  11. package/.claude-flow/daemon2.log +0 -0
  12. package/.claude-flow/daemon3.log +0 -0
  13. package/.claude-flow/hive-mind/state.json +0 -51
  14. package/.claude-flow/metrics/agent-metrics.json +0 -1
  15. package/.claude-flow/metrics/codebase-map.json +0 -11
  16. package/.claude-flow/metrics/consolidation.json +0 -6
  17. package/.claude-flow/metrics/performance.json +0 -87
  18. package/.claude-flow/metrics/security-audit.json +0 -10
  19. package/.claude-flow/metrics/task-metrics.json +0 -10
  20. package/.claude-flow/metrics/test-gaps.json +0 -6
  21. package/__tests__/README.md +0 -140
  22. package/__tests__/TEST_SUMMARY.md +0 -144
  23. package/__tests__/cli.test.ts +0 -558
  24. package/__tests__/commands.test.ts +0 -726
  25. package/__tests__/config-adapter.test.ts +0 -362
  26. package/__tests__/config-loading.test.ts +0 -106
  27. package/__tests__/coverage/.tmp/coverage-0.json +0 -1
  28. package/__tests__/coverage/.tmp/coverage-1.json +0 -1
  29. package/__tests__/coverage/.tmp/coverage-2.json +0 -1
  30. package/__tests__/coverage/.tmp/coverage-3.json +0 -1
  31. package/__tests__/coverage/.tmp/coverage-4.json +0 -1
  32. package/__tests__/coverage/.tmp/coverage-5.json +0 -1
  33. package/__tests__/mcp-client.test.ts +0 -480
  34. package/__tests__/p1-commands.test.ts +0 -1064
  35. package/agents/architect.yaml +0 -11
  36. package/agents/coder.yaml +0 -11
  37. package/agents/reviewer.yaml +0 -10
  38. package/agents/security-architect.yaml +0 -10
  39. package/agents/tester.yaml +0 -10
  40. package/docs/CONFIG_LOADING.md +0 -236
  41. package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
  42. package/docs/MCP_CLIENT_GUIDE.md +0 -620
  43. package/docs/REFACTORING_SUMMARY.md +0 -247
  44. package/scripts/publish.sh +0 -46
  45. package/src/commands/agent.ts +0 -955
  46. package/src/commands/claims.ts +0 -317
  47. package/src/commands/completions.ts +0 -558
  48. package/src/commands/config.ts +0 -452
  49. package/src/commands/daemon.ts +0 -621
  50. package/src/commands/deployment.ts +0 -323
  51. package/src/commands/doctor.ts +0 -382
  52. package/src/commands/embeddings.ts +0 -686
  53. package/src/commands/hive-mind.ts +0 -928
  54. package/src/commands/hooks.ts +0 -2603
  55. package/src/commands/index.ts +0 -154
  56. package/src/commands/init.ts +0 -597
  57. package/src/commands/mcp.ts +0 -753
  58. package/src/commands/memory.ts +0 -1161
  59. package/src/commands/migrate.ts +0 -447
  60. package/src/commands/neural.ts +0 -253
  61. package/src/commands/performance.ts +0 -292
  62. package/src/commands/plugins.ts +0 -316
  63. package/src/commands/process.ts +0 -695
  64. package/src/commands/providers.ts +0 -259
  65. package/src/commands/security.ts +0 -288
  66. package/src/commands/session.ts +0 -891
  67. package/src/commands/start.ts +0 -457
  68. package/src/commands/status.ts +0 -736
  69. package/src/commands/swarm.ts +0 -648
  70. package/src/commands/task.ts +0 -792
  71. package/src/commands/workflow.ts +0 -742
  72. package/src/config-adapter.ts +0 -210
  73. package/src/index.ts +0 -443
  74. package/src/infrastructure/in-memory-repositories.ts +0 -310
  75. package/src/init/claudemd-generator.ts +0 -631
  76. package/src/init/executor.ts +0 -762
  77. package/src/init/helpers-generator.ts +0 -628
  78. package/src/init/index.ts +0 -60
  79. package/src/init/mcp-generator.ts +0 -83
  80. package/src/init/settings-generator.ts +0 -284
  81. package/src/init/statusline-generator.ts +0 -211
  82. package/src/init/types.ts +0 -447
  83. package/src/mcp-client.ts +0 -241
  84. package/src/mcp-server.ts +0 -577
  85. package/src/mcp-tools/agent-tools.ts +0 -466
  86. package/src/mcp-tools/config-tools.ts +0 -370
  87. package/src/mcp-tools/hive-mind-tools.ts +0 -521
  88. package/src/mcp-tools/hooks-tools.ts +0 -1888
  89. package/src/mcp-tools/index.ts +0 -16
  90. package/src/mcp-tools/memory-tools.ts +0 -270
  91. package/src/mcp-tools/session-tools.ts +0 -359
  92. package/src/mcp-tools/swarm-tools.ts +0 -105
  93. package/src/mcp-tools/task-tools.ts +0 -347
  94. package/src/mcp-tools/types.ts +0 -33
  95. package/src/mcp-tools/workflow-tools.ts +0 -573
  96. package/src/output.ts +0 -639
  97. package/src/parser.ts +0 -417
  98. package/src/prompt.ts +0 -619
  99. package/src/services/index.ts +0 -15
  100. package/src/services/worker-daemon.ts +0 -726
  101. package/src/suggest.ts +0 -245
  102. package/src/types.ts +0 -287
  103. package/tmp.json +0 -0
  104. package/tsconfig.json +0 -16
  105. package/tsconfig.tsbuildinfo +0 -1
  106. 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
- }