claude-flow 2.0.0-alpha.62 → 2.0.0-alpha.64
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/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/token-efficiency.md +2 -1
- package/.claude/commands/automation/self-healing.md +47 -2
- package/.claude/commands/automation/session-memory.md +39 -10
- package/.claude/commands/automation/smart-agents.md +36 -8
- package/.claude/commands/github/code-review-swarm.md +80 -15
- package/.claude/commands/github/github-modes.md +14 -14
- package/.claude/commands/github/issue-tracker.md +19 -16
- package/.claude/commands/github/multi-repo-swarm.md +114 -16
- package/.claude/commands/github/pr-manager.md +5 -4
- package/.claude/commands/github/project-board-sync.md +38 -5
- package/.claude/commands/github/release-manager.md +19 -19
- package/.claude/commands/github/release-swarm.md +102 -13
- package/.claude/commands/github/repo-architect.md +6 -6
- package/.claude/commands/github/swarm-issue.md +139 -17
- package/.claude/commands/github/swarm-pr.md +49 -15
- package/.claude/commands/github/sync-coordinator.md +33 -33
- package/.claude/commands/github/workflow-automation.md +37 -10
- package/.claude/commands/hooks/overview.md +2 -2
- package/.claude/commands/hooks/setup.md +7 -7
- package/.claude/commands/memory/neural.md +10 -5
- package/.claude/commands/memory/usage.md +9 -5
- package/.claude/commands/monitoring/agents.md +7 -5
- package/.claude/commands/monitoring/status.md +8 -5
- package/.claude/commands/optimization/auto-topology.md +13 -1
- package/.claude/commands/optimization/parallel-execution.md +7 -1
- package/.claude/commands/sparc/analyzer.md +28 -2
- package/.claude/commands/sparc/architect.md +27 -1
- package/.claude/commands/sparc/batch-executor.md +27 -1
- package/.claude/commands/sparc/coder.md +27 -1
- package/.claude/commands/sparc/debugger.md +27 -1
- package/.claude/commands/sparc/designer.md +27 -1
- package/.claude/commands/sparc/documenter.md +27 -1
- package/.claude/commands/sparc/innovator.md +27 -1
- package/.claude/commands/sparc/memory-manager.md +27 -1
- package/.claude/commands/sparc/optimizer.md +27 -1
- package/.claude/commands/sparc/orchestrator.md +106 -2
- package/.claude/commands/sparc/researcher.md +27 -1
- package/.claude/commands/sparc/reviewer.md +27 -1
- package/.claude/commands/sparc/sparc-modes.md +137 -5
- package/.claude/commands/sparc/swarm-coordinator.md +27 -1
- package/.claude/commands/sparc/tdd.md +27 -1
- package/.claude/commands/sparc/tester.md +27 -1
- package/.claude/commands/sparc/workflow-manager.md +27 -1
- package/.claude/commands/swarm/analysis.md +82 -5
- package/.claude/commands/swarm/development.md +83 -6
- package/.claude/commands/swarm/examples.md +141 -3
- package/.claude/commands/swarm/maintenance.md +92 -8
- package/.claude/commands/swarm/optimization.md +107 -9
- package/.claude/commands/swarm/research.md +126 -8
- package/.claude/commands/swarm/testing.md +121 -9
- package/.claude/commands/training/neural-patterns.md +27 -2
- package/.claude/commands/training/specialization.md +13 -3
- package/.claude/commands/workflows/development.md +43 -4
- package/.claude/commands/workflows/research.md +26 -2
- package/CHANGELOG.md +34 -0
- package/README.md +8 -0
- package/bin/claude-flow +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +66 -0
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +220 -2
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +1 -1
- package/dist/cli/simple-commands/hive-mind.d.ts.map +1 -1
- package/dist/cli/simple-commands/hive-mind.js +83 -5
- package/dist/cli/simple-commands/hive-mind.js.map +1 -1
- package/dist/memory/fallback-store.d.ts +1 -0
- package/dist/memory/fallback-store.d.ts.map +1 -1
- package/dist/memory/fallback-store.js +25 -3
- package/dist/memory/fallback-store.js.map +1 -1
- package/dist/memory/sqlite-store.d.ts +34 -0
- package/dist/memory/sqlite-store.d.ts.map +1 -0
- package/dist/memory/sqlite-store.js +2 -3
- package/dist/memory/sqlite-store.js.map +1 -1
- package/dist/memory/sqlite-wrapper.d.ts +38 -0
- package/dist/memory/sqlite-wrapper.d.ts.map +1 -0
- package/dist/memory/sqlite-wrapper.js +157 -0
- package/dist/memory/sqlite-wrapper.js.map +1 -0
- package/package.json +1 -1
- package/src/api/claude-api-errors.ts +248 -0
- package/src/api/claude-client-enhanced.ts +616 -0
- package/src/api/claude-client.ts +282 -14
- package/src/cli/help-text.js +4 -3
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-commands/coordination.js +73 -49
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +6 -6
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +327 -8
- package/src/cli/simple-commands/hive-mind/session-manager.js +330 -108
- package/src/cli/simple-commands/hive-mind.js +192 -11
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +53 -28
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +36 -14
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +107 -30
- package/src/cli/simple-commands/init/copy-revised-templates.js +175 -0
- package/src/cli/simple-commands/init/index.js +156 -235
- package/src/cli/simple-commands/init/template-copier.js +583 -0
- package/src/cli/simple-commands/init/templates/claude-flow-universal +1 -1
- package/src/cli/simple-commands/init/templates/coordination.md +16 -0
- package/src/cli/simple-commands/init/templates/memory-bank.md +16 -0
- package/src/cli/simple-commands/init/templates/settings.json.enhanced +35 -0
- package/src/cli/simple-commands/init/templates/sparc-modes.js +634 -23
- package/src/hive-mind/core/DatabaseManager.ts +75 -16
- package/src/memory/backends/sqlite.ts +21 -3
- package/src/memory/fallback-store.js +35 -3
- package/src/memory/sqlite-store.js +2 -3
- package/src/memory/sqlite-wrapper.js +173 -0
|
@@ -4,16 +4,128 @@
|
|
|
4
4
|
Comprehensive testing through distributed execution.
|
|
5
5
|
|
|
6
6
|
## Activation
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
### Using MCP Tools
|
|
9
|
+
```javascript
|
|
10
|
+
// Initialize testing swarm
|
|
11
|
+
mcp__claude-flow__swarm_init({
|
|
12
|
+
"topology": "star",
|
|
13
|
+
"maxAgents": 7,
|
|
14
|
+
"strategy": "parallel"
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Orchestrate testing task
|
|
18
|
+
mcp__claude-flow__task_orchestrate({
|
|
19
|
+
"task": "test application",
|
|
20
|
+
"strategy": "parallel",
|
|
21
|
+
"priority": "high"
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Using CLI (Fallback)
|
|
26
|
+
`npx claude-flow swarm "test application" --strategy testing`
|
|
8
27
|
|
|
9
28
|
## Agent Roles
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
29
|
+
|
|
30
|
+
### Agent Spawning with MCP
|
|
31
|
+
```javascript
|
|
32
|
+
// Spawn testing agents
|
|
33
|
+
mcp__claude-flow__agent_spawn({
|
|
34
|
+
"type": "tester",
|
|
35
|
+
"name": "Unit Tester",
|
|
36
|
+
"capabilities": ["unit-testing", "mocking", "coverage"]
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
mcp__claude-flow__agent_spawn({
|
|
40
|
+
"type": "tester",
|
|
41
|
+
"name": "Integration Tester",
|
|
42
|
+
"capabilities": ["integration", "api-testing", "contract-testing"]
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
mcp__claude-flow__agent_spawn({
|
|
46
|
+
"type": "tester",
|
|
47
|
+
"name": "E2E Tester",
|
|
48
|
+
"capabilities": ["e2e", "ui-testing", "user-flows"]
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
mcp__claude-flow__agent_spawn({
|
|
52
|
+
"type": "tester",
|
|
53
|
+
"name": "Performance Tester",
|
|
54
|
+
"capabilities": ["load-testing", "stress-testing", "benchmarking"]
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
mcp__claude-flow__agent_spawn({
|
|
58
|
+
"type": "monitor",
|
|
59
|
+
"name": "Security Tester",
|
|
60
|
+
"capabilities": ["security-testing", "penetration-testing", "vulnerability-scanning"]
|
|
61
|
+
})
|
|
62
|
+
```
|
|
15
63
|
|
|
16
64
|
## Test Coverage
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
65
|
+
|
|
66
|
+
### Coverage Analysis
|
|
67
|
+
```javascript
|
|
68
|
+
// Quality assessment
|
|
69
|
+
mcp__claude-flow__quality_assess({
|
|
70
|
+
"target": "test-coverage",
|
|
71
|
+
"criteria": ["line-coverage", "branch-coverage", "function-coverage"]
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
// Edge case detection
|
|
75
|
+
mcp__claude-flow__pattern_recognize({
|
|
76
|
+
"data": testScenarios,
|
|
77
|
+
"patterns": ["edge-case", "boundary-condition", "error-path"]
|
|
78
|
+
})
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Test Execution
|
|
82
|
+
```javascript
|
|
83
|
+
// Parallel test execution
|
|
84
|
+
mcp__claude-flow__parallel_execute({
|
|
85
|
+
"tasks": [
|
|
86
|
+
{ "id": "unit-tests", "command": "npm run test:unit" },
|
|
87
|
+
{ "id": "integration-tests", "command": "npm run test:integration" },
|
|
88
|
+
{ "id": "e2e-tests", "command": "npm run test:e2e" }
|
|
89
|
+
]
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
// Batch processing for test suites
|
|
93
|
+
mcp__claude-flow__batch_process({
|
|
94
|
+
"items": testSuites,
|
|
95
|
+
"operation": "execute-test-suite"
|
|
96
|
+
})
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Performance Testing
|
|
100
|
+
```javascript
|
|
101
|
+
// Run performance benchmarks
|
|
102
|
+
mcp__claude-flow__benchmark_run({
|
|
103
|
+
"suite": "performance-tests"
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
// Security scanning
|
|
107
|
+
mcp__claude-flow__security_scan({
|
|
108
|
+
"target": "application",
|
|
109
|
+
"depth": "comprehensive"
|
|
110
|
+
})
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Monitoring and Reporting
|
|
114
|
+
```javascript
|
|
115
|
+
// Monitor test execution
|
|
116
|
+
mcp__claude-flow__swarm_monitor({
|
|
117
|
+
"swarmId": "testing-swarm",
|
|
118
|
+
"interval": 2000
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
// Generate test report
|
|
122
|
+
mcp__claude-flow__performance_report({
|
|
123
|
+
"format": "detailed",
|
|
124
|
+
"timeframe": "current-run"
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
// Get test results
|
|
128
|
+
mcp__claude-flow__task_results({
|
|
129
|
+
"taskId": "test-execution-001"
|
|
130
|
+
})
|
|
131
|
+
```
|
|
@@ -15,7 +15,11 @@ Every successful operation trains the neural networks:
|
|
|
15
15
|
### 2. Manual Training
|
|
16
16
|
```
|
|
17
17
|
Tool: mcp__claude-flow__neural_train
|
|
18
|
-
Parameters: {
|
|
18
|
+
Parameters: {
|
|
19
|
+
"pattern_type": "coordination",
|
|
20
|
+
"training_data": "successful task patterns",
|
|
21
|
+
"epochs": 50
|
|
22
|
+
}
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
### 3. Pattern Types
|
|
@@ -42,8 +46,29 @@ Result: {
|
|
|
42
46
|
}
|
|
43
47
|
```
|
|
44
48
|
|
|
49
|
+
## Pattern Analysis
|
|
50
|
+
```
|
|
51
|
+
Tool: mcp__claude-flow__neural_patterns
|
|
52
|
+
Parameters: {
|
|
53
|
+
"action": "analyze",
|
|
54
|
+
"operation": "recent_edits"
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
45
58
|
## Benefits
|
|
46
59
|
- 🧠 Learns your coding style
|
|
47
60
|
- 📈 Improves with each use
|
|
48
61
|
- 🎯 Better task predictions
|
|
49
|
-
- ⚡ Faster coordination
|
|
62
|
+
- ⚡ Faster coordination
|
|
63
|
+
|
|
64
|
+
## CLI Usage
|
|
65
|
+
```bash
|
|
66
|
+
# Train neural patterns via CLI
|
|
67
|
+
npx claude-flow neural train --type coordination --epochs 50
|
|
68
|
+
|
|
69
|
+
# Check neural status
|
|
70
|
+
npx claude-flow neural status
|
|
71
|
+
|
|
72
|
+
# Analyze patterns
|
|
73
|
+
npx claude-flow neural patterns --analyze
|
|
74
|
+
```
|
|
@@ -17,7 +17,8 @@ Agents automatically specialize based on file extensions:
|
|
|
17
17
|
Tool: mcp__claude-flow__agent_spawn
|
|
18
18
|
Parameters: {
|
|
19
19
|
"type": "coder",
|
|
20
|
-
"capabilities": ["react", "typescript", "testing"]
|
|
20
|
+
"capabilities": ["react", "typescript", "testing"],
|
|
21
|
+
"name": "React Specialist"
|
|
21
22
|
}
|
|
22
23
|
```
|
|
23
24
|
|
|
@@ -32,7 +33,7 @@ The system trains through:
|
|
|
32
33
|
```
|
|
33
34
|
# Check agent specializations
|
|
34
35
|
Tool: mcp__claude-flow__agent_list
|
|
35
|
-
Parameters: {"
|
|
36
|
+
Parameters: {"swarmId": "current"}
|
|
36
37
|
|
|
37
38
|
Result shows expertise levels:
|
|
38
39
|
{
|
|
@@ -50,4 +51,13 @@ Result shows expertise levels:
|
|
|
50
51
|
```
|
|
51
52
|
|
|
52
53
|
## Continuous Improvement
|
|
53
|
-
Agents share learnings across sessions for cumulative expertise!
|
|
54
|
+
Agents share learnings across sessions for cumulative expertise!
|
|
55
|
+
|
|
56
|
+
## CLI Usage
|
|
57
|
+
```bash
|
|
58
|
+
# Train agent specialization via CLI
|
|
59
|
+
npx claude-flow train agent --type coder --capabilities "react,typescript"
|
|
60
|
+
|
|
61
|
+
# Check specializations
|
|
62
|
+
npx claude-flow agent list --specializations
|
|
63
|
+
```
|
|
@@ -15,18 +15,45 @@ Creates hierarchical structure for organized, top-down development.
|
|
|
15
15
|
### 2. Define Development Perspectives
|
|
16
16
|
```
|
|
17
17
|
Tool: mcp__claude-flow__agent_spawn
|
|
18
|
-
Parameters: {
|
|
18
|
+
Parameters: {
|
|
19
|
+
"type": "architect",
|
|
20
|
+
"name": "System Design",
|
|
21
|
+
"capabilities": ["api-design", "database-schema"]
|
|
22
|
+
}
|
|
19
23
|
```
|
|
20
24
|
```
|
|
21
25
|
Tool: mcp__claude-flow__agent_spawn
|
|
22
|
-
Parameters: {
|
|
26
|
+
Parameters: {
|
|
27
|
+
"type": "coder",
|
|
28
|
+
"name": "Implementation Focus",
|
|
29
|
+
"capabilities": ["nodejs", "typescript", "express"]
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
```
|
|
33
|
+
Tool: mcp__claude-flow__agent_spawn
|
|
34
|
+
Parameters: {
|
|
35
|
+
"type": "tester",
|
|
36
|
+
"name": "Quality Assurance",
|
|
37
|
+
"capabilities": ["unit-testing", "integration-testing"]
|
|
38
|
+
}
|
|
23
39
|
```
|
|
24
40
|
Sets up architectural and implementation thinking patterns.
|
|
25
41
|
|
|
26
42
|
### 3. Coordinate Implementation
|
|
27
43
|
```
|
|
28
44
|
Tool: mcp__claude-flow__task_orchestrate
|
|
29
|
-
Parameters: {
|
|
45
|
+
Parameters: {
|
|
46
|
+
"task": "Build REST API with authentication",
|
|
47
|
+
"strategy": "parallel",
|
|
48
|
+
"priority": "high",
|
|
49
|
+
"dependencies": ["database setup", "auth system"]
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 4. Monitor Progress
|
|
54
|
+
```
|
|
55
|
+
Tool: mcp__claude-flow__task_status
|
|
56
|
+
Parameters: {"taskId": "api-build-task-123"}
|
|
30
57
|
```
|
|
31
58
|
|
|
32
59
|
## What Claude Code Actually Does
|
|
@@ -36,4 +63,16 @@ Parameters: {"task": "Build REST API with authentication", "strategy": "parallel
|
|
|
36
63
|
4. Uses **TodoWrite** tool for task tracking
|
|
37
64
|
5. Follows coordination patterns for systematic implementation
|
|
38
65
|
|
|
39
|
-
Remember: All code is written by Claude Code using its native tools!
|
|
66
|
+
Remember: All code is written by Claude Code using its native tools!
|
|
67
|
+
|
|
68
|
+
## CLI Usage
|
|
69
|
+
```bash
|
|
70
|
+
# Start development workflow via CLI
|
|
71
|
+
npx claude-flow workflow dev "REST API with auth"
|
|
72
|
+
|
|
73
|
+
# Create custom workflow
|
|
74
|
+
npx claude-flow workflow create --name "api-dev" --steps "design,implement,test,deploy"
|
|
75
|
+
|
|
76
|
+
# Execute saved workflow
|
|
77
|
+
npx claude-flow workflow execute api-dev
|
|
78
|
+
```
|
|
@@ -26,7 +26,22 @@ Sets up different analytical approaches for Claude Code to use.
|
|
|
26
26
|
### 3. Execute Coordinated Research
|
|
27
27
|
```
|
|
28
28
|
Tool: mcp__claude-flow__task_orchestrate
|
|
29
|
-
Parameters: {
|
|
29
|
+
Parameters: {
|
|
30
|
+
"task": "Research modern web frameworks performance",
|
|
31
|
+
"strategy": "adaptive",
|
|
32
|
+
"priority": "medium"
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 4. Store Research Findings
|
|
37
|
+
```
|
|
38
|
+
Tool: mcp__claude-flow__memory_usage
|
|
39
|
+
Parameters: {
|
|
40
|
+
"action": "store",
|
|
41
|
+
"key": "research_findings",
|
|
42
|
+
"value": "framework performance analysis results",
|
|
43
|
+
"namespace": "research"
|
|
44
|
+
}
|
|
30
45
|
```
|
|
31
46
|
|
|
32
47
|
## What Claude Code Actually Does
|
|
@@ -36,4 +51,13 @@ Parameters: {"task": "Research modern web frameworks performance", "strategy": "
|
|
|
36
51
|
4. Synthesizes findings using coordination patterns
|
|
37
52
|
5. Stores insights in memory for future reference
|
|
38
53
|
|
|
39
|
-
Remember: The swarm coordinates HOW Claude Code researches, not WHAT it finds.
|
|
54
|
+
Remember: The swarm coordinates HOW Claude Code researches, not WHAT it finds.
|
|
55
|
+
|
|
56
|
+
## CLI Usage
|
|
57
|
+
```bash
|
|
58
|
+
# Start research workflow via CLI
|
|
59
|
+
npx claude-flow workflow research "modern web frameworks"
|
|
60
|
+
|
|
61
|
+
# Export research workflow
|
|
62
|
+
npx claude-flow workflow export research --format json
|
|
63
|
+
```
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.0-alpha.64] - 2025-01-18
|
|
9
|
+
|
|
10
|
+
### 🔧 Bug Fixes
|
|
11
|
+
- Fixed wrapper script hardcoded to use outdated alpha-27 version
|
|
12
|
+
- Updated wrapper to use `@alpha` tag for always getting latest alpha version
|
|
13
|
+
- Ensures `./claude-flow` wrapper always uses the most recent alpha release
|
|
14
|
+
|
|
15
|
+
### 📦 Dependencies
|
|
16
|
+
- No dependency changes, only template fix
|
|
17
|
+
|
|
18
|
+
## [2.0.0-alpha.63] - 2025-01-18
|
|
19
|
+
|
|
20
|
+
### 🚀 Major Features
|
|
21
|
+
- **MCP/NPX Fallback Pattern**: All 60+ command files now include both MCP tools (preferred) and NPX CLI (fallback)
|
|
22
|
+
- **SPARC Included by Default**: No more `--sparc` flag needed, SPARC commands automatically initialized
|
|
23
|
+
- **Complete Environment Init**: Creates 112+ files including both databases properly initialized
|
|
24
|
+
|
|
25
|
+
### 🏗️ Infrastructure
|
|
26
|
+
- **Template System**: Updated template generation to include MCP/NPX fallback patterns
|
|
27
|
+
- **Init Command**: Fixed missing imports for createAgentsReadme and createSessionsReadme
|
|
28
|
+
- **Database Init**: Added .hive-mind directory creation and hive.db initialization with schema
|
|
29
|
+
- **SPARC Integration**: Made SPARC included by default in v2.0.0 flow
|
|
30
|
+
|
|
31
|
+
### 🛠️ Improvements
|
|
32
|
+
- Updated all 18 SPARC command files in .claude/commands/sparc/ with MCP/NPX fallback
|
|
33
|
+
- Updated 5 swarm strategy files with MCP/NPX patterns
|
|
34
|
+
- Enhanced init command to create complete environment with 113 files
|
|
35
|
+
- Fixed copyRevisedTemplates to include SPARC files
|
|
36
|
+
|
|
37
|
+
### 📚 Documentation
|
|
38
|
+
- Updated CLAUDE.md template with comprehensive MCP/NPX usage examples
|
|
39
|
+
- Added fallback guidance to all command documentation
|
|
40
|
+
- Enhanced GitHub integration documentation with gh CLI usage
|
|
41
|
+
|
|
8
42
|
## [2.0.0-alpha.62] - 2025-01-18
|
|
9
43
|
|
|
10
44
|
### 🔒 Security Fixes
|
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
|
|
36
36
|
### 📋 **Prerequisites**
|
|
37
37
|
|
|
38
|
+
- **Node.js 18+** (LTS recommended)
|
|
39
|
+
- **npm 9+** or equivalent package manager
|
|
40
|
+
- **Windows users**: See [Windows Installation Guide](https://github.com/ruvnet/claude-code-flow/blob/main/docs/windows-installation.md) for special instructions
|
|
41
|
+
|
|
38
42
|
⚠️ **IMPORTANT**: Claude Code must be installed first:
|
|
39
43
|
|
|
40
44
|
```bash
|
|
@@ -45,6 +49,8 @@ npm install -g @anthropic-ai/claude-code
|
|
|
45
49
|
claude --dangerously-skip-permissions
|
|
46
50
|
```
|
|
47
51
|
|
|
52
|
+
💡 **Windows Note**: If you encounter SQLite errors, Claude Flow will automatically use in-memory storage. For persistent storage options, see our [Windows guide](https://github.com/ruvnet/claude-code-flow/blob/main/docs/windows-installation.md).
|
|
53
|
+
|
|
48
54
|
### 🎯 **Instant Alpha Testing**
|
|
49
55
|
|
|
50
56
|
```bash
|
|
@@ -301,6 +307,8 @@ npx claude-flow@alpha memory export backup.json --namespace default
|
|
|
301
307
|
npx claude-flow@alpha memory import project-memory.json
|
|
302
308
|
```
|
|
303
309
|
|
|
310
|
+
> 🪟 **Windows Users**: SQLite will automatically fallback to in-memory storage if native modules fail. All features work normally, but data won't persist between sessions. See [Windows guide](https://github.com/ruvnet/claude-code-flow/blob/main/docs/windows-installation.md) for persistent storage options.
|
|
311
|
+
|
|
304
312
|
### **🔄 Workflow Orchestration**
|
|
305
313
|
```bash
|
|
306
314
|
# Advanced workflow automation
|
package/bin/claude-flow
CHANGED
|
@@ -188,6 +188,72 @@ export class MCPToolWrapper {
|
|
|
188
188
|
* Clean up and destroy swarm
|
|
189
189
|
*/
|
|
190
190
|
destroySwarm(swarmId: any): Promise<any[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Get real swarm status from memory storage
|
|
193
|
+
*/
|
|
194
|
+
getSwarmStatus(params?: {}): Promise<{
|
|
195
|
+
swarms: {
|
|
196
|
+
id: any;
|
|
197
|
+
name: any;
|
|
198
|
+
status: string;
|
|
199
|
+
agents: number;
|
|
200
|
+
tasks: {
|
|
201
|
+
total: number;
|
|
202
|
+
completed: number;
|
|
203
|
+
pending: number;
|
|
204
|
+
failed: number;
|
|
205
|
+
};
|
|
206
|
+
topology: string;
|
|
207
|
+
createdAt: null;
|
|
208
|
+
lastActivity: null;
|
|
209
|
+
memoryUsage: number;
|
|
210
|
+
}[];
|
|
211
|
+
activeAgents: number;
|
|
212
|
+
totalTasks: number;
|
|
213
|
+
completedTasks: number;
|
|
214
|
+
pendingTasks: number;
|
|
215
|
+
recentActivity: {
|
|
216
|
+
swarmId: any;
|
|
217
|
+
action: any;
|
|
218
|
+
type: any;
|
|
219
|
+
timestamp: any;
|
|
220
|
+
}[];
|
|
221
|
+
summary: {
|
|
222
|
+
totalSwarms: number;
|
|
223
|
+
activeSwarms: number;
|
|
224
|
+
idleSwarms: number;
|
|
225
|
+
inactiveSwarms: number;
|
|
226
|
+
};
|
|
227
|
+
error?: undefined;
|
|
228
|
+
} | {
|
|
229
|
+
swarms: any[];
|
|
230
|
+
activeAgents: number;
|
|
231
|
+
totalTasks: number;
|
|
232
|
+
completedTasks: number;
|
|
233
|
+
pendingTasks: number;
|
|
234
|
+
summary: {
|
|
235
|
+
totalSwarms: number;
|
|
236
|
+
activeSwarms: number;
|
|
237
|
+
idleSwarms?: undefined;
|
|
238
|
+
inactiveSwarms?: undefined;
|
|
239
|
+
};
|
|
240
|
+
recentActivity?: undefined;
|
|
241
|
+
error?: undefined;
|
|
242
|
+
} | {
|
|
243
|
+
swarms: never[];
|
|
244
|
+
activeAgents: number;
|
|
245
|
+
totalTasks: number;
|
|
246
|
+
completedTasks: number;
|
|
247
|
+
pendingTasks: number;
|
|
248
|
+
recentActivity: never[];
|
|
249
|
+
summary: {
|
|
250
|
+
totalSwarms: number;
|
|
251
|
+
activeSwarms: number;
|
|
252
|
+
idleSwarms: number;
|
|
253
|
+
inactiveSwarms: number;
|
|
254
|
+
};
|
|
255
|
+
error: any;
|
|
256
|
+
}>;
|
|
191
257
|
}
|
|
192
258
|
export namespace MCP_TOOLS {
|
|
193
259
|
let swarm: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/cli/simple-commands/hive-mind/mcp-wrapper.js"],"names":[],"mappings":"AAmHA;;GAEG;AACH;IACE,yBAiBC;IAhBC;;;;MAKC;IAED,yBAA0B;IAC1B,qBAAuB;IACvB,mBAAsB;IAEtB,uDAAuD;IACvD,UADW,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,CAC/B;IAMtB;;OAEG;IACH,yCAuCC;IAFG,uCAA4B;IAIhC;;OAEG;IACH,sDA6BC;IAED;;OAEG;IACH,gDA8DC;IAED;;OAEG;IACH,qDAcC;IAED;;OAEG;IACH,iDA2BC;IAED;;OAEG;IACH,2DAgBC;IAED;;OAEG;IACH,mFAoBC;IAlBG;;;;;;;kBAOC;IAaL;;OAEG;IACH,+
|
|
1
|
+
{"version":3,"file":"mcp-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/cli/simple-commands/hive-mind/mcp-wrapper.js"],"names":[],"mappings":"AAmHA;;GAEG;AACH;IACE,yBAiBC;IAhBC;;;;MAKC;IAED,yBAA0B;IAC1B,qBAAuB;IACvB,mBAAsB;IAEtB,uDAAuD;IACvD,UADW,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,CAC/B;IAMtB;;OAEG;IACH,yCAuCC;IAFG,uCAA4B;IAIhC;;OAEG;IACH,sDA6BC;IAED;;OAEG;IACH,gDA8DC;IAED;;OAEG;IACH,qDAcC;IAED;;OAEG;IACH,iDA2BC;IAED;;OAEG;IACH,2DAgBC;IAED;;OAEG;IACH,mFAoBC;IAlBG;;;;;;;kBAOC;IAaL;;OAEG;IACH,+DA4BC;IAED;;OAEG;IACH,+CAOC;IAED;;OAEG;IACH,kDA+BC;IAED;;OAEG;IACH,kEAoBC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;MA+BC;IAED;;OAEG;IACH,6CAQC;IAED;;OAEG;IACH,mCAMC;IAED;;OAEG;IACH,mCAKC;IAED;;OAEG;IACH,6BAKC;IAED;;OAEG;IACH,6CA6EC;IAED;;OAEG;IACH,sDAqCC;IAED;;OAEG;IACH,oCA4BC;IAED;;OAEG;IACH,8DAkBC;IAhBG;;;;;;;kBAOC;IAWL;;OAEG;IACH;;;;;;;;;;;;;;;;OAmDC;IAED;;OAEG;IACH,qDA4CC;IAED;;OAEG;IACH;;;;;;OAqFC;IAED;;OAEG;IACH,6EA2CC;IAED;;OAEG;IACH,iDAQC;IAED;;OAEG;IACH,uEAcC;IAED;;OAEG;IACH,2DAcC;IAED;;OAEG;IACH,2CAoBC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsNC;CACF"}
|