From 970afebd2517191eac0171bfe4f95944bb7b1015 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 8 Jan 2026 03:56:54 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-08T03:56:54Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/init/settings-generator.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts index b4c1f3f1d0..a9d09c8382 100644 --- a/v3/@claude-flow/cli/src/init/settings-generator.ts +++ b/v3/@claude-flow/cli/src/init/settings-generator.ts @@ -93,7 +93,7 @@ function generateStatusLineConfig(options: InitOptions): object { function generateHooksConfig(config: HooksConfig): object { const hooks: Record = {}; - // PreToolUse hooks + // PreToolUse hooks - using cross-platform Node.js helpers if (config.preToolUse) { hooks.PreToolUse = [ // File edit hooks with intelligence routing @@ -102,7 +102,7 @@ function generateHooksConfig(config: HooksConfig): object { hooks: [ { type: 'command', - command: 'npx @claude-flow/cli@latest hooks pre-edit --file "$TOOL_INPUT_file_path" --intelligence 2>/dev/null || true', + command: 'node .claude/helpers/hooks.mjs pre-edit --file "$TOOL_INPUT_file_path" --intelligence', timeout: config.timeout, continueOnError: config.continueOnError, }, @@ -114,7 +114,7 @@ function generateHooksConfig(config: HooksConfig): object { hooks: [ { type: 'command', - command: 'npx @claude-flow/cli@latest hooks pre-command --command "$TOOL_INPUT_command" --validate-safety 2>/dev/null || true', + command: 'node .claude/helpers/hooks.mjs pre-command --command "$TOOL_INPUT_command" --validate-safety', timeout: config.timeout, continueOnError: config.continueOnError, }, @@ -126,7 +126,7 @@ function generateHooksConfig(config: HooksConfig): object { hooks: [ { type: 'command', - command: 'npx @claude-flow/cli@latest hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt" 2>/dev/null || true', + command: 'node .claude/helpers/hooks.mjs pre-task --description "$TOOL_INPUT_prompt"', timeout: config.timeout, continueOnError: config.continueOnError, }, @@ -138,7 +138,7 @@ function generateHooksConfig(config: HooksConfig): object { hooks: [ { type: 'command', - command: 'npx @claude-flow/cli@latest hooks pre-search --pattern "$TOOL_INPUT_pattern" 2>/dev/null || true', + command: 'node .claude/helpers/hooks.mjs pre-search --pattern "$TOOL_INPUT_pattern"', timeout: 2000, continueOnError: config.continueOnError, },