claude-flow 2.7.0-alpha.12 β†’ 2.7.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/bin/claude-flow CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
3
3
 
4
- VERSION="2.7.0-alpha.12"
4
+ VERSION="2.7.0-alpha.13"
5
5
 
6
6
  # Determine the correct path based on how the script is invoked
7
7
  if [ -L "$0" ]; then
@@ -0,0 +1,47 @@
1
+ FROM node:20-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ curl \
9
+ jq \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install claude-flow@2.7.0-alpha.12 from npm
13
+ RUN npm install -g claude-flow@2.7.0-alpha.12
14
+
15
+ # Verify version
16
+ RUN claude-flow --version
17
+
18
+ # Create test directory
19
+ WORKDIR /test
20
+
21
+ # Test the init command
22
+ CMD echo "Testing claude-flow@2.7.0-alpha.12 from npm registry..." && \
23
+ claude-flow init --skip-open --project-name alpha12-test && \
24
+ echo "" && \
25
+ echo "========================================" && \
26
+ echo "βœ… VERIFICATION RESULTS" && \
27
+ echo "========================================" && \
28
+ echo "" && \
29
+ echo "πŸ“ Directory Structure:" && \
30
+ ls -la .claude/ && \
31
+ echo "" && \
32
+ echo "πŸ“‹ Skills Directory:" && \
33
+ ls -la .claude/skills/ 2>/dev/null || echo "⚠️ Skills directory not found" && \
34
+ echo "" && \
35
+ echo "πŸ“Š Skills Count:" && \
36
+ find .claude/skills -name "SKILL.md" 2>/dev/null | wc -l && \
37
+ echo "" && \
38
+ echo "πŸ”§ Statusline Script:" && \
39
+ ls -lh .claude/statusline-command.sh && \
40
+ stat -c "Permissions: %a" .claude/statusline-command.sh && \
41
+ echo "" && \
42
+ echo "✨ Testing statusline execution:" && \
43
+ bash .claude/statusline-command.sh <<< '{"model": {"display_name": "Claude"}, "workspace": {"current_dir": "/test"}}' && \
44
+ echo "" && \
45
+ echo "========================================" && \
46
+ echo "βœ… All tests passed!" && \
47
+ echo "========================================"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "2.7.0-alpha.12",
3
+ "version": "2.7.0-alpha.13",
4
4
  "description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory and AgentDB vector database (always uses latest agentic-flow)",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": "cli.mjs",
@@ -173,14 +173,14 @@ fi
173
173
  BRANCH=$(cd "$CWD" 2>/dev/null && git branch --show-current 2>/dev/null)
174
174
 
175
175
  # Start building statusline
176
- echo -ne "\\033[1m$MODEL\\033[0m in \\033[36m$DIR\\033[0m"
177
- [ -n "$BRANCH" ] && echo -ne " on \\033[33mβŽ‡ $BRANCH\\033[0m"
176
+ printf "\\033[1m$MODEL\\033[0m in \\033[36m$DIR\\033[0m"
177
+ [ -n "$BRANCH" ] && printf " on \\033[33mβŽ‡ $BRANCH\\033[0m"
178
178
 
179
179
  # Claude-Flow integration
180
180
  FLOW_DIR="$CWD/.claude-flow"
181
181
 
182
182
  if [ -d "$FLOW_DIR" ]; then
183
- echo -ne " β”‚"
183
+ printf " β”‚"
184
184
 
185
185
  # 1. Swarm Configuration & Topology
186
186
  if [ -f "$FLOW_DIR/swarm-config.json" ]; then
@@ -193,12 +193,12 @@ if [ -d "$FLOW_DIR" ]; then
193
193
  "aggressive") TOPO_ICON="⚑ring" ;;
194
194
  *) TOPO_ICON="⚑$STRATEGY" ;;
195
195
  esac
196
- echo -ne " \\033[35m$TOPO_ICON\\033[0m"
196
+ printf " \\033[35m$TOPO_ICON\\033[0m"
197
197
 
198
198
  # Count agent profiles as "configured agents"
199
199
  AGENT_COUNT=$(jq -r \'.agentProfiles | length\' "$FLOW_DIR/swarm-config.json" 2>/dev/null)
200
200
  if [ -n "$AGENT_COUNT" ] && [ "$AGENT_COUNT" != "null" ] && [ "$AGENT_COUNT" -gt 0 ]; then
201
- echo -ne " \\033[35mπŸ€– $AGENT_COUNT\\033[0m"
201
+ printf " \\033[35mπŸ€– $AGENT_COUNT\\033[0m"
202
202
  fi
203
203
  fi
204
204
  fi
@@ -220,7 +220,7 @@ if [ -d "$FLOW_DIR" ]; then
220
220
  else
221
221
  MEM_COLOR="\\033[31m" # Red
222
222
  fi
223
- echo -ne " \${MEM_COLOR}πŸ’Ύ \${MEM_PERCENT}%\\033[0m"
223
+ printf " \${MEM_COLOR}πŸ’Ύ \${MEM_PERCENT}%\\033[0m"
224
224
  fi
225
225
 
226
226
  # CPU load
@@ -234,7 +234,7 @@ if [ -d "$FLOW_DIR" ]; then
234
234
  else
235
235
  CPU_COLOR="\\033[31m" # Red
236
236
  fi
237
- echo -ne " \${CPU_COLOR}βš™ \${CPU_LOAD}%\\033[0m"
237
+ printf " \${CPU_COLOR}βš™ \${CPU_LOAD}%\\033[0m"
238
238
  fi
239
239
  fi
240
240
  fi
@@ -247,7 +247,7 @@ if [ -d "$FLOW_DIR" ]; then
247
247
  if [ "$ACTIVE" = "true" ] && [ -n "$SESSION_ID" ]; then
248
248
  # Show abbreviated session ID
249
249
  SHORT_ID=$(echo "$SESSION_ID" | cut -d\'-\' -f1)
250
- echo -ne " \\033[34mπŸ”„ $SHORT_ID\\033[0m"
250
+ printf " \\033[34mπŸ”„ $SHORT_ID\\033[0m"
251
251
  fi
252
252
  fi
253
253
 
@@ -288,7 +288,7 @@ if [ -d "$FLOW_DIR" ]; then
288
288
  else
289
289
  SUCCESS_COLOR="\\033[31m" # Red
290
290
  fi
291
- echo -ne " \${SUCCESS_COLOR}🎯 \${SUCCESS_RATE}%\\033[0m"
291
+ printf " \${SUCCESS_COLOR}🎯 \${SUCCESS_RATE}%\\033[0m"
292
292
  fi
293
293
 
294
294
  # Average Time
@@ -302,13 +302,13 @@ if [ -d "$FLOW_DIR" ]; then
302
302
  else
303
303
  TIME_STR=$(echo "$AVG_TIME" | awk \'{printf "%.1fh", $1/3600}\')
304
304
  fi
305
- echo -ne " \\033[36m⏱️ $TIME_STR\\033[0m"
305
+ printf " \\033[36m⏱️ $TIME_STR\\033[0m"
306
306
  fi
307
307
 
308
308
  # Streak (only show if > 0)
309
309
  STREAK=$(echo "$METRICS" | jq -r \'.streak // 0\')
310
310
  if [ -n "$STREAK" ] && [ "$STREAK" -gt 0 ]; then
311
- echo -ne " \\033[91mπŸ”₯ $STREAK\\033[0m"
311
+ printf " \\033[91mπŸ”₯ $STREAK\\033[0m"
312
312
  fi
313
313
  fi
314
314
  fi
@@ -317,7 +317,7 @@ if [ -d "$FLOW_DIR" ]; then
317
317
  if [ -d "$FLOW_DIR/tasks" ]; then
318
318
  TASK_COUNT=$(find "$FLOW_DIR/tasks" -name "*.json" -type f 2>/dev/null | wc -l)
319
319
  if [ "$TASK_COUNT" -gt 0 ]; then
320
- echo -ne " \\033[36mπŸ“‹ $TASK_COUNT\\033[0m"
320
+ printf " \\033[36mπŸ“‹ $TASK_COUNT\\033[0m"
321
321
  fi
322
322
  fi
323
323
 
@@ -325,7 +325,7 @@ if [ -d "$FLOW_DIR" ]; then
325
325
  if [ -f "$FLOW_DIR/hooks-state.json" ]; then
326
326
  HOOKS_ACTIVE=$(jq -r \'.enabled // false\' "$FLOW_DIR/hooks-state.json" 2>/dev/null)
327
327
  if [ "$HOOKS_ACTIVE" = "true" ]; then
328
- echo -ne " \\033[35mπŸ”—\\033[0m"
328
+ printf " \\033[35mπŸ”—\\033[0m"
329
329
  fi
330
330
  fi
331
331
  fi