@claude-flow/cli 3.0.0-alpha.11 → 3.0.0-alpha.13
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/.agentic-flow/intelligence.json +4 -4
- package/.claude-flow/daemon-state.json +24 -24
- package/.claude-flow/metrics/codebase-map.json +2 -2
- package/.claude-flow/metrics/consolidation.json +1 -1
- package/.claude-flow/metrics/performance.json +3 -3
- package/.claude-flow/metrics/security-audit.json +1 -1
- package/.claude-flow/metrics/task-metrics.json +3 -3
- package/.claude-flow/metrics/test-gaps.json +1 -1
- package/README.md +172 -6
- package/agents/architect.yaml +1 -1
- package/agents/coder.yaml +1 -1
- package/agents/reviewer.yaml +1 -1
- package/agents/security-architect.yaml +1 -1
- package/agents/tester.yaml +1 -1
- package/dist/src/commands/completions.d.ts +10 -0
- package/dist/src/commands/completions.d.ts.map +1 -0
- package/dist/src/commands/completions.js +539 -0
- package/dist/src/commands/completions.js.map +1 -0
- package/dist/src/commands/doctor.d.ts +10 -0
- package/dist/src/commands/doctor.d.ts.map +1 -0
- package/dist/src/commands/doctor.js +356 -0
- package/dist/src/commands/doctor.js.map +1 -0
- package/dist/src/commands/embeddings.d.ts +8 -0
- package/dist/src/commands/embeddings.d.ts.map +1 -1
- package/dist/src/commands/embeddings.js +328 -6
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/index.d.ts +2 -0
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +9 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/memory.js +2 -2
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/neural.js +1 -1
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +15 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +200 -0
- package/dist/src/suggest.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/commands/completions.ts +558 -0
- package/src/commands/doctor.ts +382 -0
- package/src/commands/embeddings.ts +360 -6
- package/src/commands/index.ts +9 -0
- package/src/commands/memory.ts +2 -2
- package/src/commands/neural.ts +1 -1
- package/src/index.ts +15 -3
- package/src/suggest.ts +245 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"patterns": {
|
|
3
3
|
"command:": {
|
|
4
|
-
"success": 0.
|
|
5
|
-
"failure": -0.
|
|
4
|
+
"success": 0.9999999999544168,
|
|
5
|
+
"failure": -0.4860935805278153
|
|
6
6
|
}
|
|
7
7
|
},
|
|
8
8
|
"sequences": {},
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dirPatterns": {},
|
|
11
11
|
"errorPatterns": [],
|
|
12
12
|
"metrics": {
|
|
13
|
-
"totalRoutes":
|
|
14
|
-
"successfulRoutes":
|
|
13
|
+
"totalRoutes": 260,
|
|
14
|
+
"successfulRoutes": 226,
|
|
15
15
|
"routingHistory": []
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -3,49 +3,49 @@
|
|
|
3
3
|
"startedAt": "2026-01-07T03:07:50.010Z",
|
|
4
4
|
"workers": {
|
|
5
5
|
"map": {
|
|
6
|
-
"runCount":
|
|
7
|
-
"successCount":
|
|
6
|
+
"runCount": 20,
|
|
7
|
+
"successCount": 20,
|
|
8
8
|
"failureCount": 0,
|
|
9
9
|
"averageDurationMs": 0.4,
|
|
10
10
|
"isRunning": false,
|
|
11
|
-
"nextRun": "2026-01-07T04:
|
|
12
|
-
"lastRun": "2026-01-07T04:
|
|
11
|
+
"nextRun": "2026-01-07T04:42:50.478Z",
|
|
12
|
+
"lastRun": "2026-01-07T04:42:50.578Z"
|
|
13
13
|
},
|
|
14
14
|
"audit": {
|
|
15
|
-
"runCount":
|
|
16
|
-
"successCount":
|
|
15
|
+
"runCount": 10,
|
|
16
|
+
"successCount": 10,
|
|
17
17
|
"failureCount": 0,
|
|
18
|
-
"averageDurationMs": 0.
|
|
18
|
+
"averageDurationMs": 0.2,
|
|
19
19
|
"isRunning": false,
|
|
20
|
-
"nextRun": "2026-01-07T04:
|
|
21
|
-
"lastRun": "2026-01-07T04:
|
|
20
|
+
"nextRun": "2026-01-07T04:47:50.291Z",
|
|
21
|
+
"lastRun": "2026-01-07T04:37:50.291Z"
|
|
22
22
|
},
|
|
23
23
|
"optimize": {
|
|
24
|
-
"runCount":
|
|
25
|
-
"successCount":
|
|
24
|
+
"runCount": 7,
|
|
25
|
+
"successCount": 7,
|
|
26
26
|
"failureCount": 0,
|
|
27
|
-
"averageDurationMs": 0,
|
|
27
|
+
"averageDurationMs": 0.14285714285714285,
|
|
28
28
|
"isRunning": false,
|
|
29
|
-
"nextRun": "2026-01-07T04:
|
|
30
|
-
"lastRun": "2026-01-07T04:
|
|
29
|
+
"nextRun": "2026-01-07T04:52:50.291Z",
|
|
30
|
+
"lastRun": "2026-01-07T04:37:50.291Z"
|
|
31
31
|
},
|
|
32
32
|
"consolidate": {
|
|
33
|
-
"runCount":
|
|
34
|
-
"successCount":
|
|
33
|
+
"runCount": 4,
|
|
34
|
+
"successCount": 4,
|
|
35
35
|
"failureCount": 0,
|
|
36
|
-
"averageDurationMs": 0.
|
|
36
|
+
"averageDurationMs": 0.5,
|
|
37
37
|
"isRunning": false,
|
|
38
|
-
"nextRun": "2026-01-
|
|
39
|
-
"lastRun": "2026-01-07T04:
|
|
38
|
+
"nextRun": "2026-01-07T05:07:50.290Z",
|
|
39
|
+
"lastRun": "2026-01-07T04:37:50.290Z"
|
|
40
40
|
},
|
|
41
41
|
"testgaps": {
|
|
42
|
-
"runCount":
|
|
43
|
-
"successCount":
|
|
42
|
+
"runCount": 5,
|
|
43
|
+
"successCount": 5,
|
|
44
44
|
"failureCount": 0,
|
|
45
45
|
"averageDurationMs": 0,
|
|
46
46
|
"isRunning": false,
|
|
47
|
-
"nextRun": "2026-01-07T04:
|
|
48
|
-
"lastRun": "2026-01-07T04:
|
|
47
|
+
"nextRun": "2026-01-07T04:47:50.290Z",
|
|
48
|
+
"lastRun": "2026-01-07T04:27:50.289Z"
|
|
49
49
|
},
|
|
50
50
|
"predict": {
|
|
51
51
|
"runCount": 0,
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
}
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
|
-
"savedAt": "2026-01-07T04:
|
|
122
|
+
"savedAt": "2026-01-07T04:42:50.578Z"
|
|
123
123
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-01-07T04:
|
|
2
|
+
"timestamp": "2026-01-07T04:42:50.578Z",
|
|
3
3
|
"projectRoot": "/workspaces/claude-flow/v3/@claude-flow/cli",
|
|
4
4
|
"structure": {
|
|
5
5
|
"hasPackageJson": true,
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
"hasClaudeConfig": false,
|
|
8
8
|
"hasClaudeFlow": true
|
|
9
9
|
},
|
|
10
|
-
"scannedAt":
|
|
10
|
+
"scannedAt": 1767760970578
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"startTime":
|
|
3
|
-
"sessionId": "session-
|
|
4
|
-
"lastActivity":
|
|
2
|
+
"startTime": 1767760962179,
|
|
3
|
+
"sessionId": "session-1767760962179",
|
|
4
|
+
"lastActivity": 1767760962179,
|
|
5
5
|
"sessionDuration": 0,
|
|
6
6
|
"totalTasks": 1,
|
|
7
7
|
"successfulTasks": 1,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"id": "cmd-hooks-
|
|
3
|
+
"id": "cmd-hooks-1767760962290",
|
|
4
4
|
"type": "hooks",
|
|
5
5
|
"success": true,
|
|
6
|
-
"duration": 1.
|
|
7
|
-
"timestamp":
|
|
6
|
+
"duration": 1.611820000000023,
|
|
7
|
+
"timestamp": 1767760962292,
|
|
8
8
|
"metadata": {}
|
|
9
9
|
}
|
|
10
10
|
]
|
package/README.md
CHANGED
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
|
-
[](https://github.com/ruvnet/claude-flow)
|
|
9
|
+
[](https://github.com/ruvnet/claude-flow)
|
|
10
10
|
|
|
11
|
-
> Modern CLI module for Claude Flow V3 - comprehensive command-line interface with
|
|
11
|
+
> Modern CLI module for Claude Flow V3 - comprehensive command-line interface with 26 commands, 140+ subcommands, interactive prompts, self-learning hooks, background workers, hive-mind coordination, smart error suggestions, and beautiful output formatting.
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
15
|
### Core Capabilities
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
16
|
+
- **26 Main Commands** - Complete CLI coverage for all Claude Flow operations
|
|
17
|
+
- **140+ Subcommands** - Fine-grained control over every aspect of the system
|
|
18
18
|
- **Advanced Argument Parsing** - Full support for flags, options, subcommands, and positional arguments
|
|
19
19
|
- **Interactive Prompts** - Rich interactive mode with confirmations, selections, and input validation
|
|
20
20
|
- **Beautiful Output** - Colored output, tables, progress bars, spinners, and multiple formats (text, JSON, table)
|
|
21
|
+
- **Smart Error Suggestions** - Levenshtein distance-based typo detection with helpful corrections
|
|
21
22
|
|
|
22
23
|
### V3-Specific Features
|
|
23
24
|
- **Self-Learning Hooks** - 17 hook subcommands + 12 background workers with pattern learning and neural integration
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
### Developer Experience
|
|
30
31
|
- **Type-Safe** - Full TypeScript support with comprehensive type definitions
|
|
31
32
|
- **Global Options** - Built-in `--help`, `--version`, `--verbose`, `--quiet`, `--format`
|
|
32
|
-
- **
|
|
33
|
+
- **Shell Completions** - Full tab completion for bash, zsh, fish, and PowerShell
|
|
34
|
+
- **Doctor Command** - System diagnostics with health checks and suggested fixes
|
|
33
35
|
- **Migration Tools** - Built-in V2 to V3 migration with rollback support
|
|
34
36
|
|
|
35
37
|
## Installation
|
|
@@ -87,6 +89,18 @@ claude-flow status --watch
|
|
|
87
89
|
| `hooks` | 17 | Self-learning hooks with neural pattern recognition + 12 background workers |
|
|
88
90
|
| `hive-mind` | 6 | Queen-led consensus-based multi-agent coordination |
|
|
89
91
|
| `migrate` | 5 | V2 to V3 migration with rollback support |
|
|
92
|
+
| `process` | 4 | Background process management and monitoring |
|
|
93
|
+
| `daemon` | 5 | Node.js worker daemon (start, stop, status, trigger, enable) |
|
|
94
|
+
| `neural` | 5 | Neural pattern training (train, status, patterns, predict, optimize) |
|
|
95
|
+
| `security` | 6 | Security scanning (scan, audit, cve, threats, validate, report) |
|
|
96
|
+
| `performance` | 5 | Performance profiling (benchmark, profile, metrics, optimize, report) |
|
|
97
|
+
| `providers` | 5 | AI providers (list, add, remove, test, configure) |
|
|
98
|
+
| `plugins` | 5 | Plugin management (list, install, uninstall, enable, disable) |
|
|
99
|
+
| `deployment` | 5 | Deployment management (deploy, rollback, status, environments, release) |
|
|
100
|
+
| `embeddings` | 4 | Vector embeddings (embed, batch, search, init) - 75x faster with agentic-flow |
|
|
101
|
+
| `claims` | 4 | Claims-based authorization (check, grant, revoke, list) |
|
|
102
|
+
| `doctor` | 1 | System diagnostics with health checks and suggested fixes |
|
|
103
|
+
| `completions` | 4 | Shell completions for bash, zsh, fish, and PowerShell |
|
|
90
104
|
|
|
91
105
|
---
|
|
92
106
|
|
|
@@ -954,6 +968,155 @@ claude-flow migrate rollback --backup-id backup-1704369600
|
|
|
954
968
|
|
|
955
969
|
---
|
|
956
970
|
|
|
971
|
+
### `doctor` - System Diagnostics
|
|
972
|
+
|
|
973
|
+
System health checks with automatic fix suggestions.
|
|
974
|
+
|
|
975
|
+
```bash
|
|
976
|
+
claude-flow doctor [options]
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
#### Health Checks
|
|
980
|
+
|
|
981
|
+
| Check | Description | Auto-Fix |
|
|
982
|
+
|-------|-------------|----------|
|
|
983
|
+
| Node.js Version | Verify Node.js 20+ | nvm install 20 |
|
|
984
|
+
| npm Version | Verify npm 9+ | npm install -g npm@latest |
|
|
985
|
+
| Git | Check git installation | Install git |
|
|
986
|
+
| Git Repository | Check if in git repo | git init |
|
|
987
|
+
| Config File | Validate configuration | claude-flow config init |
|
|
988
|
+
| Daemon Status | Check daemon running | claude-flow daemon start |
|
|
989
|
+
| Memory Database | Check memory DB | claude-flow memory configure |
|
|
990
|
+
| API Keys | Check for API keys | export ANTHROPIC_API_KEY=... |
|
|
991
|
+
| MCP Servers | Check MCP configuration | claude mcp add claude-flow ... |
|
|
992
|
+
| Disk Space | Check available space | Free up disk |
|
|
993
|
+
| TypeScript | Check TypeScript install | npm install -D typescript |
|
|
994
|
+
|
|
995
|
+
#### Options
|
|
996
|
+
|
|
997
|
+
| Option | Short | Description | Default |
|
|
998
|
+
|--------|-------|-------------|---------|
|
|
999
|
+
| `--fix` | `-f` | Show fix commands for issues | `false` |
|
|
1000
|
+
| `--component` | `-c` | Check specific component | all |
|
|
1001
|
+
| `--verbose` | `-v` | Verbose output | `false` |
|
|
1002
|
+
|
|
1003
|
+
#### Examples
|
|
1004
|
+
|
|
1005
|
+
```bash
|
|
1006
|
+
# Run full health check
|
|
1007
|
+
claude-flow doctor
|
|
1008
|
+
|
|
1009
|
+
# Show fixes for issues
|
|
1010
|
+
claude-flow doctor --fix
|
|
1011
|
+
|
|
1012
|
+
# Check specific component
|
|
1013
|
+
claude-flow doctor -c daemon
|
|
1014
|
+
claude-flow doctor -c mcp
|
|
1015
|
+
claude-flow doctor -c memory
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
#### Output Example
|
|
1019
|
+
|
|
1020
|
+
```
|
|
1021
|
+
Claude Flow Doctor
|
|
1022
|
+
System diagnostics and health check
|
|
1023
|
+
──────────────────────────────────────────────────
|
|
1024
|
+
|
|
1025
|
+
✓ Node.js Version: v22.21.1 (>= 20 required)
|
|
1026
|
+
✓ npm Version: v10.9.4
|
|
1027
|
+
✓ Git: v2.52.0
|
|
1028
|
+
✓ Git Repository: In a git repository
|
|
1029
|
+
⚠ Config File: No config file (using defaults)
|
|
1030
|
+
⚠ Daemon Status: Not running
|
|
1031
|
+
⚠ Memory Database: Not initialized
|
|
1032
|
+
⚠ API Keys: No API keys found
|
|
1033
|
+
⚠ MCP Servers: No MCP config found
|
|
1034
|
+
✓ Disk Space: 73G available
|
|
1035
|
+
✓ TypeScript: v5.9.3
|
|
1036
|
+
|
|
1037
|
+
──────────────────────────────────────────────────
|
|
1038
|
+
|
|
1039
|
+
Summary: 6 passed, 5 warnings
|
|
1040
|
+
|
|
1041
|
+
All checks passed with some warnings.
|
|
1042
|
+
```
|
|
1043
|
+
|
|
1044
|
+
---
|
|
1045
|
+
|
|
1046
|
+
### `completions` - Shell Completions
|
|
1047
|
+
|
|
1048
|
+
Generate shell completion scripts for tab completion of commands.
|
|
1049
|
+
|
|
1050
|
+
```bash
|
|
1051
|
+
claude-flow completions <shell>
|
|
1052
|
+
```
|
|
1053
|
+
|
|
1054
|
+
#### Supported Shells
|
|
1055
|
+
|
|
1056
|
+
| Shell | Installation | File Location |
|
|
1057
|
+
|-------|-------------|---------------|
|
|
1058
|
+
| `bash` | `claude-flow completions bash >> ~/.bashrc` | `~/.bash_completion.d/claude-flow` |
|
|
1059
|
+
| `zsh` | `claude-flow completions zsh > ~/.zfunc/_claude-flow` | `~/.zfunc/_claude-flow` |
|
|
1060
|
+
| `fish` | `claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish` | `~/.config/fish/completions/` |
|
|
1061
|
+
| `powershell` | `claude-flow completions powershell >> $PROFILE` | PowerShell profile |
|
|
1062
|
+
|
|
1063
|
+
#### Examples
|
|
1064
|
+
|
|
1065
|
+
```bash
|
|
1066
|
+
# Install bash completions
|
|
1067
|
+
claude-flow completions bash > ~/.bash_completion.d/claude-flow
|
|
1068
|
+
source ~/.bash_completion.d/claude-flow
|
|
1069
|
+
|
|
1070
|
+
# Install zsh completions
|
|
1071
|
+
mkdir -p ~/.zfunc
|
|
1072
|
+
claude-flow completions zsh > ~/.zfunc/_claude-flow
|
|
1073
|
+
# Add to .zshrc: fpath=(~/.zfunc $fpath); autoload -Uz compinit; compinit
|
|
1074
|
+
|
|
1075
|
+
# Install fish completions
|
|
1076
|
+
claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish
|
|
1077
|
+
|
|
1078
|
+
# Install PowerShell completions
|
|
1079
|
+
claude-flow completions powershell >> $PROFILE
|
|
1080
|
+
```
|
|
1081
|
+
|
|
1082
|
+
#### Completion Features
|
|
1083
|
+
|
|
1084
|
+
- All 26 top-level commands
|
|
1085
|
+
- Full subcommand completion for each command
|
|
1086
|
+
- Flag and option completion
|
|
1087
|
+
- Dynamic suggestions based on context
|
|
1088
|
+
|
|
1089
|
+
---
|
|
1090
|
+
|
|
1091
|
+
### Smart Error Suggestions
|
|
1092
|
+
|
|
1093
|
+
When you mistype a command, the CLI provides helpful suggestions using Levenshtein distance matching.
|
|
1094
|
+
|
|
1095
|
+
```bash
|
|
1096
|
+
$ claude-flow swram
|
|
1097
|
+
[ERROR] Unknown command: swram
|
|
1098
|
+
Did you mean one of these?
|
|
1099
|
+
- swarm
|
|
1100
|
+
- neural
|
|
1101
|
+
- start
|
|
1102
|
+
|
|
1103
|
+
$ claude-flow memroy
|
|
1104
|
+
[ERROR] Unknown command: memroy
|
|
1105
|
+
Did you mean "memory"?
|
|
1106
|
+
|
|
1107
|
+
$ claude-flow agnet
|
|
1108
|
+
[ERROR] Unknown command: agnet
|
|
1109
|
+
Did you mean "agent"?
|
|
1110
|
+
```
|
|
1111
|
+
|
|
1112
|
+
The suggestion system:
|
|
1113
|
+
- Uses Levenshtein distance to find similar commands
|
|
1114
|
+
- Recognizes 40+ common typos (e.g., `memroy` → `memory`, `swram` → `swarm`)
|
|
1115
|
+
- Suggests up to 3 alternatives sorted by similarity
|
|
1116
|
+
- Boosts prefix matches for better suggestions
|
|
1117
|
+
|
|
1118
|
+
---
|
|
1119
|
+
|
|
957
1120
|
## Global Options
|
|
958
1121
|
|
|
959
1122
|
All commands support these global options:
|
|
@@ -1180,6 +1343,9 @@ The CLI is optimized for V3 performance targets:
|
|
|
1180
1343
|
- [@claude-flow/mcp](../mcp) - MCP server implementation
|
|
1181
1344
|
- [@claude-flow/hooks](../hooks) - Self-learning hooks system
|
|
1182
1345
|
- [@claude-flow/neural](../neural) - SONA neural learning
|
|
1346
|
+
- [@claude-flow/embeddings](../embeddings) - Vector embeddings (75x faster with agentic-flow)
|
|
1347
|
+
- [@claude-flow/security](../security) - CVE remediation & security patterns
|
|
1348
|
+
- [@claude-flow/providers](../providers) - Multi-LLM provider system
|
|
1183
1349
|
|
|
1184
1350
|
## License
|
|
1185
1351
|
|
package/agents/architect.yaml
CHANGED
package/agents/coder.yaml
CHANGED
package/agents/reviewer.yaml
CHANGED
package/agents/tester.yaml
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 CLI Completions Command
|
|
3
|
+
* Shell completions for bash, zsh, fish, powershell
|
|
4
|
+
*
|
|
5
|
+
* Created with ruv.io
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from '../types.js';
|
|
8
|
+
export declare const completionsCommand: Command;
|
|
9
|
+
export default completionsCommand;
|
|
10
|
+
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../../src/commands/completions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAwf1E,eAAO,MAAM,kBAAkB,EAAE,OA4ChC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|