claude-flow 3.7.0-alpha.39 → 3.7.0-alpha.40

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.
@@ -131,7 +131,10 @@ const handlers = {
131
131
  },
132
132
 
133
133
  'pre-bash': () => {
134
- var cmd = (hookInput.command || prompt).toLowerCase();
134
+ // String() wrap is belt-and-suspenders for #2017: even if a future regression
135
+ // re-binds `prompt` or `hookInput.command` to a non-string, `.toLowerCase()`
136
+ // can no longer throw a TypeError that the global try/catch would swallow.
137
+ var cmd = String(hookInput.command || toolInput.command || prompt || '').toLowerCase();
135
138
  var dangerous = ['rm -rf /', 'format c:', 'del /s /q c:\\', ':(){:|:&};:'];
136
139
  for (var i = 0; i < dangerous.length; i++) {
137
140
  if (cmd.includes(dangerous[i])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.7.0-alpha.39",
3
+ "version": "3.7.0-alpha.40",
4
4
  "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.7.0-alpha.39",
3
+ "version": "3.7.0-alpha.40",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",