mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-31 05:13:39 +00:00
fix(npm): hooks init now generates npx ruvector commands
The hooks init command now generates settings.json with npx ruvector hooks instead of ruvector hooks, ensuring commands work without global installation. Bumps to v0.1.40 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9cfc509cb6
commit
5f26fbbbd5
2 changed files with 7 additions and 7 deletions
|
|
@ -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'));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue