@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.
- package/package.json +12 -4
- package/.agentic-flow/intelligence.json +0 -17
- package/.claude-flow/agents/store.json +0 -16
- package/.claude-flow/daemon-state.json +0 -123
- package/.claude-flow/daemon-test.log +0 -0
- package/.claude-flow/daemon.log +0 -0
- package/.claude-flow/daemon2.log +0 -0
- package/.claude-flow/daemon3.log +0 -0
- package/.claude-flow/hive-mind/state.json +0 -51
- package/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude-flow/metrics/codebase-map.json +0 -11
- package/.claude-flow/metrics/consolidation.json +0 -6
- package/.claude-flow/metrics/performance.json +0 -87
- package/.claude-flow/metrics/security-audit.json +0 -10
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/.claude-flow/metrics/test-gaps.json +0 -6
- package/__tests__/README.md +0 -140
- package/__tests__/TEST_SUMMARY.md +0 -144
- package/__tests__/cli.test.ts +0 -558
- package/__tests__/commands.test.ts +0 -726
- package/__tests__/config-adapter.test.ts +0 -362
- package/__tests__/config-loading.test.ts +0 -106
- package/__tests__/coverage/.tmp/coverage-0.json +0 -1
- package/__tests__/coverage/.tmp/coverage-1.json +0 -1
- package/__tests__/coverage/.tmp/coverage-2.json +0 -1
- package/__tests__/coverage/.tmp/coverage-3.json +0 -1
- package/__tests__/coverage/.tmp/coverage-4.json +0 -1
- package/__tests__/coverage/.tmp/coverage-5.json +0 -1
- package/__tests__/mcp-client.test.ts +0 -480
- package/__tests__/p1-commands.test.ts +0 -1064
- package/agents/architect.yaml +0 -11
- package/agents/coder.yaml +0 -11
- package/agents/reviewer.yaml +0 -10
- package/agents/security-architect.yaml +0 -10
- package/agents/tester.yaml +0 -10
- package/docs/CONFIG_LOADING.md +0 -236
- package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
- package/docs/MCP_CLIENT_GUIDE.md +0 -620
- package/docs/REFACTORING_SUMMARY.md +0 -247
- package/scripts/publish.sh +0 -46
- package/src/commands/agent.ts +0 -955
- package/src/commands/claims.ts +0 -317
- package/src/commands/completions.ts +0 -558
- package/src/commands/config.ts +0 -452
- package/src/commands/daemon.ts +0 -621
- package/src/commands/deployment.ts +0 -323
- package/src/commands/doctor.ts +0 -382
- package/src/commands/embeddings.ts +0 -686
- package/src/commands/hive-mind.ts +0 -928
- package/src/commands/hooks.ts +0 -2603
- package/src/commands/index.ts +0 -154
- package/src/commands/init.ts +0 -597
- package/src/commands/mcp.ts +0 -753
- package/src/commands/memory.ts +0 -1161
- package/src/commands/migrate.ts +0 -447
- package/src/commands/neural.ts +0 -253
- package/src/commands/performance.ts +0 -292
- package/src/commands/plugins.ts +0 -316
- package/src/commands/process.ts +0 -695
- package/src/commands/providers.ts +0 -259
- package/src/commands/security.ts +0 -288
- package/src/commands/session.ts +0 -891
- package/src/commands/start.ts +0 -457
- package/src/commands/status.ts +0 -736
- package/src/commands/swarm.ts +0 -648
- package/src/commands/task.ts +0 -792
- package/src/commands/workflow.ts +0 -742
- package/src/config-adapter.ts +0 -210
- package/src/index.ts +0 -443
- package/src/infrastructure/in-memory-repositories.ts +0 -310
- package/src/init/claudemd-generator.ts +0 -631
- package/src/init/executor.ts +0 -762
- package/src/init/helpers-generator.ts +0 -628
- package/src/init/index.ts +0 -60
- package/src/init/mcp-generator.ts +0 -83
- package/src/init/settings-generator.ts +0 -284
- package/src/init/statusline-generator.ts +0 -211
- package/src/init/types.ts +0 -447
- package/src/mcp-client.ts +0 -241
- package/src/mcp-server.ts +0 -577
- package/src/mcp-tools/agent-tools.ts +0 -466
- package/src/mcp-tools/config-tools.ts +0 -370
- package/src/mcp-tools/hive-mind-tools.ts +0 -521
- package/src/mcp-tools/hooks-tools.ts +0 -1888
- package/src/mcp-tools/index.ts +0 -16
- package/src/mcp-tools/memory-tools.ts +0 -270
- package/src/mcp-tools/session-tools.ts +0 -359
- package/src/mcp-tools/swarm-tools.ts +0 -105
- package/src/mcp-tools/task-tools.ts +0 -347
- package/src/mcp-tools/types.ts +0 -33
- package/src/mcp-tools/workflow-tools.ts +0 -573
- package/src/output.ts +0 -639
- package/src/parser.ts +0 -417
- package/src/prompt.ts +0 -619
- package/src/services/index.ts +0 -15
- package/src/services/worker-daemon.ts +0 -726
- package/src/suggest.ts +0 -245
- package/src/types.ts +0 -287
- package/tmp.json +0 -0
- package/tsconfig.json +0 -16
- package/tsconfig.tsbuildinfo +0 -1
- package/vitest.config.ts +0 -13
package/src/commands/index.ts
DELETED
|
@@ -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
|
-
}
|