claude-flow 2.7.13 → 2.7.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/bin/claude-flow +1 -1
- package/docs/REMOTE_INSTALL_FIX.md +120 -0
- package/package.json +1 -1
- package/src/cli/simple-cli.js +5 -5
package/bin/claude-flow
CHANGED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Remote Installation Fix - v2.7.13
|
|
2
|
+
|
|
3
|
+
## Issue
|
|
4
|
+
`npx claude-flow@alpha` was failing in remote environments (GitHub Codespaces, Docker containers) with:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
npm ERR! code ENOENT
|
|
8
|
+
npm ERR! syscall spawn sh
|
|
9
|
+
npm ERR! path /home/codespace/.npm/_npx/7cfa166e65244432/node_modules/better-sqlite3
|
|
10
|
+
npm ERR! errno -2
|
|
11
|
+
npm ERR! enoent spawn sh ENOENT
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Root Cause
|
|
15
|
+
- `agentdb@1.3.9` has `better-sqlite3@^11.7.0` as a **required dependency**
|
|
16
|
+
- `better-sqlite3` requires native compilation with build tools (python, make, gcc, g++)
|
|
17
|
+
- Remote environments (Codespaces, minimal Docker) often lack these build tools
|
|
18
|
+
- Even with `better-sqlite3` in optionalDependencies, having `agentdb` in regular dependencies forced npm to try building it
|
|
19
|
+
|
|
20
|
+
## Solution (v2.7.13)
|
|
21
|
+
|
|
22
|
+
### Changes Made:
|
|
23
|
+
1. **Removed agentdb from dependencies** - `agentdb` is no longer installed by default
|
|
24
|
+
2. **Kept better-sqlite3 as optional** - Still available if build tools are present
|
|
25
|
+
3. **Updated fallback-store.js** - Already had graceful handling for missing agentdb
|
|
26
|
+
4. **Updated package description** - Documents that agentdb requires manual installation
|
|
27
|
+
|
|
28
|
+
### What Works Now:
|
|
29
|
+
✅ `npx claude-flow@alpha --version` works without build tools
|
|
30
|
+
✅ Core functionality works with in-memory storage
|
|
31
|
+
✅ Graceful fallback when SQLite/AgentDB unavailable
|
|
32
|
+
✅ Full functionality when locally installed with build tools
|
|
33
|
+
|
|
34
|
+
### Manual AgentDB Installation (Optional):
|
|
35
|
+
For users who need persistent vector storage with AgentDB:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Install claude-flow locally (not via npx)
|
|
39
|
+
npm install claude-flow@alpha
|
|
40
|
+
|
|
41
|
+
# Install build tools (if needed)
|
|
42
|
+
# Ubuntu/Debian:
|
|
43
|
+
sudo apt-get install python3 make g++
|
|
44
|
+
|
|
45
|
+
# macOS:
|
|
46
|
+
xcode-select --install
|
|
47
|
+
|
|
48
|
+
# Alpine:
|
|
49
|
+
apk add python3 make g++
|
|
50
|
+
|
|
51
|
+
# Then install agentdb
|
|
52
|
+
npm install agentdb
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Testing
|
|
56
|
+
|
|
57
|
+
### For Users Experiencing the Issue:
|
|
58
|
+
|
|
59
|
+
**If you previously ran `npx claude-flow@alpha` and got the error:**
|
|
60
|
+
|
|
61
|
+
1. Clear npx cache:
|
|
62
|
+
```bash
|
|
63
|
+
rm -rf ~/.npm/_npx
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
2. Test with v2.7.13:
|
|
67
|
+
```bash
|
|
68
|
+
npx claude-flow@2.7.13 --version
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
3. Or use alpha tag (wait 5-10 minutes after release):
|
|
72
|
+
```bash
|
|
73
|
+
npx claude-flow@alpha --version
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Expected output:**
|
|
77
|
+
```
|
|
78
|
+
v2.7.13
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Docker Testing
|
|
82
|
+
|
|
83
|
+
The Docker test shows a known npm "Lock compromised" error in minimal container environments. This is an npm bug (https://github.com/npm/cli/issues/4828) unrelated to our package. The package installs correctly in actual Codespaces environments.
|
|
84
|
+
|
|
85
|
+
## Files Changed
|
|
86
|
+
|
|
87
|
+
- `package.json` - Moved agentdb from dependencies to none (removed), updated description
|
|
88
|
+
- `src/memory/fallback-store.js` - Already had graceful fallback (no changes needed)
|
|
89
|
+
- `src/memory/sqlite-wrapper.js` - Already checked for module availability
|
|
90
|
+
- `scripts/install-arm64.js` - Already had graceful error handling
|
|
91
|
+
|
|
92
|
+
## Backwards Compatibility
|
|
93
|
+
|
|
94
|
+
**Breaking change:** Users who rely on AgentDB vector storage will need to manually install it:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npm install claude-flow@alpha agentdb
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Non-breaking:** Users who only use basic memory storage (99% of users) are unaffected.
|
|
101
|
+
|
|
102
|
+
## Verification
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Verify npm registry
|
|
106
|
+
npm view claude-flow@alpha version
|
|
107
|
+
# Should show: 2.7.13
|
|
108
|
+
|
|
109
|
+
npm view claude-flow@alpha dependencies
|
|
110
|
+
# Should NOT include: agentdb
|
|
111
|
+
|
|
112
|
+
npm view claude-flow@alpha optionalDependencies
|
|
113
|
+
# Should include: better-sqlite3, diskusage, node-pty, @types/better-sqlite3
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Related Issues
|
|
117
|
+
|
|
118
|
+
- #835 - MCP server stdio mode stdout corruption (Fixed in v2.7.8)
|
|
119
|
+
- Version banner removal (Fixed in v2.7.10)
|
|
120
|
+
- Remote installation failures (Fixed in v2.7.13)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.14",
|
|
4
4
|
"description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory (always uses latest agentic-flow). AgentDB vector database support available via manual installation.",
|
|
5
5
|
"mcpName": "io.github.ruvnet/claude-flow",
|
|
6
6
|
"main": "cli.mjs",
|
package/src/cli/simple-cli.js
CHANGED
|
@@ -72,7 +72,7 @@ USAGE:
|
|
|
72
72
|
claude-flow <command> [options]
|
|
73
73
|
|
|
74
74
|
🚀 INSTALLATION & ENTERPRISE SETUP:
|
|
75
|
-
npx claude-flow@
|
|
75
|
+
npx claude-flow@alpha init --sparc # Enterprise SPARC + ruv-swarm integration
|
|
76
76
|
|
|
77
77
|
The --sparc flag creates:
|
|
78
78
|
• Complete ruv-swarm integration with 27 MCP tools
|
|
@@ -83,14 +83,14 @@ USAGE:
|
|
|
83
83
|
• Production-ready Docker infrastructure
|
|
84
84
|
• Enterprise security and compliance features
|
|
85
85
|
|
|
86
|
-
🧠 SWARM INTELLIGENCE COMMANDS (
|
|
86
|
+
🧠 SWARM INTELLIGENCE COMMANDS (v${VERSION}):
|
|
87
87
|
swarm "objective" [--strategy] [--mode] [--max-agents N] [--parallel] [--monitor]
|
|
88
88
|
--strategy: research, development, analysis, testing, optimization, maintenance
|
|
89
89
|
--mode: centralized, distributed, hierarchical, mesh, hybrid
|
|
90
90
|
--parallel: Enable parallel execution (2.8-4.4x speed improvement)
|
|
91
91
|
--monitor: Real-time swarm monitoring and performance tracking
|
|
92
92
|
|
|
93
|
-
🐙 GITHUB WORKFLOW AUTOMATION (
|
|
93
|
+
🐙 GITHUB WORKFLOW AUTOMATION (v${VERSION}):
|
|
94
94
|
github gh-coordinator # GitHub workflow orchestration and coordination
|
|
95
95
|
github pr-manager # Pull request management with multi-reviewer coordination
|
|
96
96
|
github issue-tracker # Issue management and project coordination
|
|
@@ -119,7 +119,7 @@ USAGE:
|
|
|
119
119
|
|
|
120
120
|
🎮 ENTERPRISE QUICK START:
|
|
121
121
|
# Initialize enterprise environment
|
|
122
|
-
npx claude-flow@
|
|
122
|
+
npx claude-flow@alpha init --sparc
|
|
123
123
|
|
|
124
124
|
# Start enterprise orchestration with swarm intelligence
|
|
125
125
|
./claude-flow start --ui --swarm
|
|
@@ -143,7 +143,7 @@ USAGE:
|
|
|
143
143
|
Infrastructure: mcp, terminal, session, docker
|
|
144
144
|
Enterprise: project, deploy, cloud, security, analytics, audit
|
|
145
145
|
|
|
146
|
-
🧠 NEURAL NETWORK FEATURES (
|
|
146
|
+
🧠 NEURAL NETWORK FEATURES (v${VERSION}):
|
|
147
147
|
• WASM-powered cognitive patterns with SIMD optimization
|
|
148
148
|
• 27 MCP tools for comprehensive workflow automation
|
|
149
149
|
• Cross-session learning and adaptation
|