claude-flow 2.0.0-alpha.69 → 2.0.0-alpha.70

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.
Files changed (72) hide show
  1. package/.claude/commands/analysis/README.md +9 -0
  2. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  3. package/.claude/commands/analysis/performance-report.md +25 -0
  4. package/.claude/commands/analysis/token-usage.md +25 -0
  5. package/.claude/commands/automation/README.md +9 -0
  6. package/.claude/commands/automation/auto-agent.md +122 -0
  7. package/.claude/commands/automation/smart-spawn.md +25 -0
  8. package/.claude/commands/automation/workflow-select.md +25 -0
  9. package/.claude/commands/coordination/README.md +9 -0
  10. package/.claude/commands/coordination/agent-spawn.md +25 -0
  11. package/.claude/commands/coordination/swarm-init.md +85 -0
  12. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  13. package/.claude/commands/github/README.md +11 -0
  14. package/.claude/commands/github/code-review.md +25 -0
  15. package/.claude/commands/github/github-swarm.md +121 -0
  16. package/.claude/commands/github/issue-triage.md +25 -0
  17. package/.claude/commands/github/pr-enhance.md +26 -0
  18. package/.claude/commands/github/repo-analyze.md +25 -0
  19. package/.claude/commands/hooks/README.md +11 -0
  20. package/.claude/commands/hooks/post-edit.md +117 -0
  21. package/.claude/commands/hooks/post-task.md +112 -0
  22. package/.claude/commands/hooks/pre-edit.md +113 -0
  23. package/.claude/commands/hooks/pre-task.md +111 -0
  24. package/.claude/commands/hooks/session-end.md +118 -0
  25. package/.claude/commands/memory/README.md +9 -0
  26. package/.claude/commands/memory/memory-persist.md +25 -0
  27. package/.claude/commands/memory/memory-search.md +25 -0
  28. package/.claude/commands/memory/memory-usage.md +25 -0
  29. package/.claude/commands/monitoring/README.md +9 -0
  30. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  31. package/.claude/commands/monitoring/real-time-view.md +25 -0
  32. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  33. package/.claude/commands/optimization/README.md +9 -0
  34. package/.claude/commands/optimization/cache-manage.md +25 -0
  35. package/.claude/commands/optimization/parallel-execute.md +25 -0
  36. package/.claude/commands/optimization/topology-optimize.md +25 -0
  37. package/.claude/commands/sparc/architect.md +51 -24
  38. package/.claude/commands/sparc/ask.md +97 -0
  39. package/.claude/commands/sparc/code.md +89 -0
  40. package/.claude/commands/sparc/debug.md +83 -0
  41. package/.claude/commands/sparc/devops.md +109 -0
  42. package/.claude/commands/sparc/docs-writer.md +80 -0
  43. package/.claude/commands/sparc/integration.md +83 -0
  44. package/.claude/commands/sparc/mcp.md +117 -0
  45. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  46. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  47. package/.claude/commands/sparc/security-review.md +80 -0
  48. package/.claude/commands/sparc/sparc.md +111 -0
  49. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  50. package/.claude/commands/sparc/supabase-admin.md +348 -0
  51. package/.claude/commands/sparc/tdd.md +59 -30
  52. package/.claude/commands/sparc/tutorial.md +79 -0
  53. package/.claude/commands/sparc.md +166 -0
  54. package/.claude/commands/training/README.md +9 -0
  55. package/.claude/commands/training/model-update.md +25 -0
  56. package/.claude/commands/training/neural-train.md +25 -0
  57. package/.claude/commands/training/pattern-learn.md +25 -0
  58. package/.claude/commands/workflows/README.md +9 -0
  59. package/.claude/commands/workflows/workflow-create.md +25 -0
  60. package/.claude/commands/workflows/workflow-execute.md +25 -0
  61. package/.claude/commands/workflows/workflow-export.md +25 -0
  62. package/.claude/helpers/github-setup.sh +28 -0
  63. package/.claude/helpers/quick-start.sh +19 -0
  64. package/.claude/helpers/setup-mcp.sh +18 -0
  65. package/.claude/settings.json +9 -29
  66. package/.claude/settings.local.json +7 -4
  67. package/CHANGELOG.md +14 -0
  68. package/bin/claude-flow +1 -1
  69. package/package.json +1 -1
  70. package/src/cli/help-text.js +1 -1
  71. package/src/cli/simple-cli.js +1 -1
  72. package/src/cli/simple-commands/init/templates/settings.json +4 -4
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "env": {
3
- "CLAUDE_FLOW_AUTO_COMMIT": "true",
3
+ "CLAUDE_FLOW_AUTO_COMMIT": "false",
4
4
  "CLAUDE_FLOW_AUTO_PUSH": "false",
5
5
  "CLAUDE_FLOW_HOOKS_ENABLED": "true",
6
6
  "CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
7
7
  "CLAUDE_FLOW_REMOTE_EXECUTION": "true",
8
- "CLAUDE_FLOW_GITHUB_INTEGRATION": "true",
9
- "CLAUDE_FLOW_CHECKPOINT_ENABLED": "true",
10
- "CLAUDE_FLOW_MEMORY_PERSISTENCE": "true",
11
- "CLAUDE_FLOW_NEURAL_OPTIMIZATION": "true",
12
- "CLAUDE_FLOW_AUTO_LEARNING": "true"
8
+ "CLAUDE_FLOW_GITHUB_INTEGRATION": "true"
13
9
  },
14
10
  "permissions": {
15
11
  "allow": [
@@ -44,20 +40,16 @@
44
40
  "hooks": [
45
41
  {
46
42
  "type": "command",
47
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.command // \"\"')\" | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
48
- },
49
- {
50
- "type": "command",
51
- "command": "npx claude-flow@alpha memory store \"cmd_pre_$(date +%s)\" \"$CLAUDE_COMMAND\" --namespace commands"
43
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
52
44
  }
53
45
  ]
54
46
  },
55
47
  {
56
- "matcher": "Write|Edit|MultiEdit",
48
+ "matcher": "Write|Edit|MultiEdit",
57
49
  "hooks": [
58
50
  {
59
51
  "type": "command",
60
- "command": "echo \"[PreEdit] File: $CLAUDE_EDITED_FILE\""
52
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
61
53
  }
62
54
  ]
63
55
  }
@@ -68,11 +60,7 @@
68
60
  "hooks": [
69
61
  {
70
62
  "type": "command",
71
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.command // \"\"')\" | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
72
- },
73
- {
74
- "type": "command",
75
- "command": "npx claude-flow@alpha training pattern-learn --operation bash-command --outcome success"
63
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
76
64
  }
77
65
  ]
78
66
  },
@@ -81,11 +69,7 @@
81
69
  "hooks": [
82
70
  {
83
71
  "type": "command",
84
- "command": "echo \"[PostEdit] File: $CLAUDE_EDITED_FILE\""
85
- },
86
- {
87
- "type": "command",
88
- "command": "npx claude-flow@alpha training pattern-learn --operation file-edit --outcome success"
72
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
89
73
  }
90
74
  ]
91
75
  }
@@ -95,11 +79,7 @@
95
79
  "hooks": [
96
80
  {
97
81
  "type": "command",
98
- "command": "echo \"[Stop] Session ended - training neural networks\""
99
- },
100
- {
101
- "type": "command",
102
- "command": "npx claude-flow@alpha training neural-train --data recent --model general-predictor --epochs 5"
82
+ "command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
103
83
  }
104
84
  ]
105
85
  }
@@ -107,4 +87,4 @@
107
87
  },
108
88
  "includeCoAuthoredBy": true,
109
89
  "enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
110
- }
90
+ }
@@ -1,6 +1,9 @@
1
1
  {
2
- "enabledMcpjsonServers": [
3
- "claude-flow"
4
- ],
5
- "enableAllProjectMcpServers": true
2
+ "permissions": {
3
+ "allow": [
4
+ "mcp__ruv-swarm",
5
+ "mcp__claude-flow"
6
+ ],
7
+ "deny": []
8
+ }
6
9
  }
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ 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.70] - 2025-01-22
9
+
10
+ ### 🔧 Critical Quote Handling Fix
11
+ - **Hook Commands**: Fixed "Unterminated quoted string" errors in all hook commands
12
+ - Replaced complex `printf` and nested quotes with simpler `cat | jq | tr | xargs` pipeline
13
+ - Used `jq -r '.field // empty'` instead of problematic `'.field // ""'` syntax
14
+ - All hook commands now use consistent: `cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {}`
15
+ - Fixed both init template and current settings.json files
16
+
17
+ ### 🛠️ Command Improvements
18
+ - **Simplified Pipeline**: More reliable command parsing without quote conflicts
19
+ - **Better Error Handling**: Clean failures instead of shell syntax errors
20
+ - **Consistent Syntax**: All hook commands use identical, tested patterns
21
+
8
22
  ## [2.0.0-alpha.69] - 2025-01-22
9
23
 
10
24
  ### 🔧 Critical Fix
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.0.0-alpha.69"
4
+ VERSION="2.0.0-alpha.70"
5
5
 
6
6
  # Determine the correct path based on how the script is invoked
7
7
  if [ -L "$0" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "2.0.0-alpha.69",
3
+ "version": "2.0.0-alpha.70",
4
4
  "description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
5
5
  "main": "cli.mjs",
6
6
  "bin": {
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { HelpFormatter } from './help-formatter.js';
7
7
 
8
- export const VERSION = '2.0.0-alpha.69';
8
+ export const VERSION = '2.0.0-alpha.70';
9
9
 
10
10
  export const MAIN_HELP = `
11
11
  🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
@@ -27,7 +27,7 @@ import process from 'process';
27
27
  import readline from 'readline';
28
28
  import { getMainHelp, getCommandHelp, getStandardizedCommandHelp } from './help-text.js';
29
29
 
30
- const VERSION = '2.0.0-alpha.69';
30
+ const VERSION = '2.0.0-alpha.70';
31
31
 
32
32
  function printHelp(plain = false) {
33
33
  console.log(getMainHelp(plain));
@@ -40,7 +40,7 @@
40
40
  "hooks": [
41
41
  {
42
42
  "type": "command",
43
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.command // \"\")\" | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
43
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
44
44
  }
45
45
  ]
46
46
  },
@@ -49,7 +49,7 @@
49
49
  "hooks": [
50
50
  {
51
51
  "type": "command",
52
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.file_path // .tool_input.path // \"\")\" | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
52
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
53
53
  }
54
54
  ]
55
55
  }
@@ -60,7 +60,7 @@
60
60
  "hooks": [
61
61
  {
62
62
  "type": "command",
63
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.command // \"\")\" | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
63
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
64
64
  }
65
65
  ]
66
66
  },
@@ -69,7 +69,7 @@
69
69
  "hooks": [
70
70
  {
71
71
  "type": "command",
72
- "command": "printf '%s\\0' \"$(cat | jq -r '.tool_input.file_path // .tool_input.path // \"\")\" | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
72
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
73
73
  }
74
74
  ]
75
75
  }