Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix: v2.7.12 - Move agentdb to optionalDependencies to avoid better-sqlite3 build failures

rUva7e6211fac25
diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json
index b91e5c2849..f4125e45d3 100644
--- a/.claude-flow/metrics/system-metrics.json
+++ b/.claude-flow/metrics/system-metrics.json
@@ -22,5 +22,89 @@
"cpuLoad": 0.08375,
"platform": "linux",
"uptime": 15758.23
+ },
+ {
+ "timestamp": 1761363865005,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5122899968,
+ "memoryFree": 62304641024,
+ "memoryUsagePercent": 7.597637245302792,
+ "memoryEfficiency": 92.40236275469721,
+ "cpuCount": 16,
+ "cpuLoad": 0.11,
+ "platform": "linux",
+ "uptime": 15788.26
+ },
+ {
+ "timestamp": 1761363895015,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 4892737536,
+ "memoryFree": 62534803456,
+ "memoryUsagePercent": 7.256289439029821,
+ "memoryEfficiency": 92.74371056097019,
+ "cpuCount": 16,
+ "cpuLoad": 0.185,
+ "platform": "linux",
+ "uptime": 15818.27
+ },
+ {
+ "timestamp": 1761363925046,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 4673609728,
+ "memoryFree": 62753931264,
+ "memoryUsagePercent": 6.931306791322117,
+ "memoryEfficiency": 93.06869320867789,
+ "cpuCount": 16,
+ "cpuLoad": 0.115625,
+ "platform": "linux",
+ "uptime": 15848.3
+ },
+ {
+ "timestamp": 1761363955076,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 4796198912,
+ "memoryFree": 62631342080,
+ "memoryUsagePercent": 7.113115562925613,
+ "memoryEfficiency": 92.88688443707439,
+ "cpuCount": 16,
+ "cpuLoad": 0.07,
+ "platform": "linux",
+ "uptime": 15878.33
+ },
+ {
+ "timestamp": 1761363985106,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5161082880,
+ "memoryFree": 62266458112,
+ "memoryUsagePercent": 7.654265310687129,
+ "memoryEfficiency": 92.34573468931288,
+ "cpuCount": 16,
+ "cpuLoad": 0.125,
+ "platform": "linux",
+ "uptime": 15908.36
+ },
+ {
+ "timestamp": 1761364015111,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5034360832,
+ "memoryFree": 62393180160,
+ "memoryUsagePercent": 7.466327197958036,
+ "memoryEfficiency": 92.53367280204196,
+ "cpuCount": 16,
+ "cpuLoad": 0.1775,
+ "platform": "linux",
+ "uptime": 15938.36
+ },
+ {
+ "timestamp": 1761364045111,
+ "memoryTotal": 67427540992,
+ "memoryUsed": 5043056640,
+ "memoryFree": 62384484352,
+ "memoryUsagePercent": 7.479223720465111,
+ "memoryEfficiency": 92.52077627953489,
+ "cpuCount": 16,
+ "cpuLoad": 0.13375,
+ "platform": "linux",
+ "uptime": 15968.36
}
]
\ No newline at end of file
diff --git a/.npmrc b/.npmrc
index e4362138a5..b9ed006f4e 100644
--- a/.npmrc
+++ b/.npmrc
@@ -1,5 +1,2 @@
-# Ignore optional dependency failures
-optional=true
-
# Don't fail installation if optional dependencies fail to build
-ignore-scripts=false
+# Note: better-sqlite3 is in optionalDependencies and will be gracefully skipped if build fails
diff --git a/bin/claude-flow b/bin/claude-flow
index 34d4fe921f..fc18c14597 100755
--- a/bin/claude-flow
+++ b/bin/claude-flow
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
-VERSION="2.7.10"
+VERSION="2.7.11"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/package-lock.json b/package-lock.json
index e037e975c5..82c5b7026e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "claude-flow",
- "version": "2.7.11",
+ "version": "2.7.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-flow",
- "version": "2.7.11",
+ "version": "2.7.12",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index ab7b8adaa4..67846ae4c1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "2.7.11",
+ "version": "2.7.12",
"description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory and AgentDB vector database (always uses latest agentic-flow)",
"mcpName": "io.github.ruvnet/claude-flow",
"main": "cli.mjs",
@@ -120,8 +120,6 @@
"@anthropic-ai/claude-code": "^2.0.1",
"@anthropic-ai/sdk": "^0.65.0",
"@modelcontextprotocol/sdk": "^1.0.4",
- "@types/better-sqlite3": "^7.6.13",
- "agentdb": "^1.3.9",
"agentic-flow": "*",
"blessed": "^0.1.81",
"chalk": "^4.1.2",
@@ -143,9 +141,11 @@
"yaml": "^2.8.0"
},
"optionalDependencies": {
+ "agentdb": "^1.3.9",
"better-sqlite3": "^12.2.0",
"diskusage": "^1.1.3",
- "node-pty": "^1.0.0"
+ "node-pty": "^1.0.0",
+ "@types/better-sqlite3": "^7.6.13"
},
"devDependencies": {
"@babel/core": "^7.28.0",
diff --git a/tests/docker-test-npx-install.sh b/tests/docker-test-npx-install.sh
new file mode 100755
index 0000000000..95d1b97d37
--- /dev/null
+++ b/tests/docker-test-npx-install.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+# Docker test for npx installation without build tools
+
+set -e
+
+echo "🐳 Testing npx claude-flow@alpha in minimal Docker environment (no build tools)..."
+echo ""
+
+# Create a minimal Dockerfile without build tools
+cat > /tmp/Dockerfile.npx-test <<'EOF'
+FROM node:20-alpine
+
+# Deliberately DON'T install build tools to simulate Codespaces/remote environments
+# RUN apk add --no-cache python3 make g++
+
+# Just install basic npm
+RUN npm install -g npm@latest
+
+WORKDIR /test
+
+# Test npx installation
+CMD ["sh", "-c", "npx [email protected] --version 2>&1"]
+EOF
+
+echo "Building Docker image..."
+docker build -t claude-flow-npx-test -f /tmp/Dockerfile.npx-test /tmp
+
+echo ""
+echo "Running npx test..."
+docker run --rm claude-flow-npx-test
+
+echo ""
+echo "✅ Docker test completed!"