diff --git a/npm/packages/ruvector/bin/cli.js b/npm/packages/ruvector/bin/cli.js index a0342008d..9a951fcd3 100755 --- a/npm/packages/ruvector/bin/cli.js +++ b/npm/packages/ruvector/bin/cli.js @@ -2277,15 +2277,15 @@ hooksCmd.command('init').description('Initialize hooks in current project').opti } settings.hooks = settings.hooks || {}; settings.hooks.PreToolUse = [ - { matcher: 'Edit|Write|MultiEdit', hooks: ['ruvector hooks pre-edit "$TOOL_INPUT_file_path"'] }, - { matcher: 'Bash', hooks: ['ruvector hooks pre-command "$TOOL_INPUT_command"'] } + { matcher: 'Edit|Write|MultiEdit', hooks: ['npx ruvector hooks pre-edit "$TOOL_INPUT_file_path"'] }, + { matcher: 'Bash', hooks: ['npx ruvector hooks pre-command "$TOOL_INPUT_command"'] } ]; settings.hooks.PostToolUse = [ - { matcher: 'Edit|Write|MultiEdit', hooks: ['ruvector hooks post-edit "$TOOL_INPUT_file_path"'] }, - { matcher: 'Bash', hooks: ['ruvector hooks post-command "$TOOL_INPUT_command"'] } + { matcher: 'Edit|Write|MultiEdit', hooks: ['npx ruvector hooks post-edit "$TOOL_INPUT_file_path"'] }, + { matcher: 'Bash', hooks: ['npx ruvector hooks post-command "$TOOL_INPUT_command"'] } ]; - settings.hooks.SessionStart = ['ruvector hooks session-start']; - settings.hooks.Stop = ['ruvector hooks session-end']; + settings.hooks.SessionStart = ['npx ruvector hooks session-start']; + settings.hooks.Stop = ['npx ruvector hooks session-end']; fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2)); console.log(chalk.green('✅ Hooks initialized in .claude/settings.json')); }); diff --git a/npm/packages/ruvector/package.json b/npm/packages/ruvector/package.json index 866632e4b..fabe6616b 100644 --- a/npm/packages/ruvector/package.json +++ b/npm/packages/ruvector/package.json @@ -1,6 +1,6 @@ { "name": "ruvector", - "version": "0.1.39", + "version": "0.1.40", "description": "High-performance vector database for Node.js with automatic native/WASM fallback", "main": "dist/index.js", "types": "dist/index.d.ts",