diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index 4456b1254e..6c20b6e895 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/cli", - "version": "3.0.0-alpha.30", + "version": "3.0.0-alpha.31", "type": "module", "description": "CLI module - command parsing, prompts, output formatting", "main": "dist/src/index.js", diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts index ffb09f26a2..8808838514 100644 --- a/v3/@claude-flow/cli/src/init/settings-generator.ts +++ b/v3/@claude-flow/cli/src/init/settings-generator.ts @@ -208,7 +208,8 @@ function generateHooksConfig(config: HooksConfig): object { hooks: [ { type: 'command', - command: 'npx claude-flow@v3alpha hooks route --task "$PROMPT" --intelligence --include-explanation', + // Only run route if PROMPT is non-empty; use shell test to skip gracefully + command: '[ -n "$PROMPT" ] && npx claude-flow@v3alpha hooks route -t "$PROMPT" --intelligence || true', timeout: config.timeout, continueOnError: config.continueOnError, }, diff --git a/v3/package-lock.json b/v3/package-lock.json index f960f5a92c..6a064a067a 100644 --- a/v3/package-lock.json +++ b/v3/package-lock.json @@ -124,7 +124,7 @@ } }, "@claude-flow/cli": { - "version": "3.0.0-alpha.30", + "version": "3.0.0-alpha.31", "dependencies": { "@claude-flow/shared": "^3.0.0-alpha.1" },