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.
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/sparc/architect.md +51 -24
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/tdd.md +59 -30
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/settings.json +9 -29
- package/.claude/settings.local.json +7 -4
- package/CHANGELOG.md +14 -0
- package/bin/claude-flow +1 -1
- package/package.json +1 -1
- package/src/cli/help-text.js +1 -1
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-commands/init/templates/settings.json +4 -4
package/.claude/settings.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"env": {
|
|
3
|
-
"CLAUDE_FLOW_AUTO_COMMIT": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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
|
+
}
|
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
package/package.json
CHANGED
package/src/cli/help-text.js
CHANGED
package/src/cli/simple-cli.js
CHANGED
|
@@ -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.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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
|
}
|