ruvector 0.1.41 → 0.1.42
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.
- package/bin/cli.js +6 -6
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -2277,15 +2277,15 @@ hooksCmd.command('init').description('Initialize hooks in current project').opti
|
|
|
2277
2277
|
}
|
|
2278
2278
|
settings.hooks = settings.hooks || {};
|
|
2279
2279
|
settings.hooks.PreToolUse = [
|
|
2280
|
-
{ matcher:
|
|
2281
|
-
{ matcher:
|
|
2280
|
+
{ matcher: 'Edit|Write|MultiEdit', hooks: [{ type: 'command', command: 'npx ruvector hooks pre-edit "$TOOL_INPUT_file_path"' }] },
|
|
2281
|
+
{ matcher: 'Bash', hooks: [{ type: 'command', command: 'npx ruvector hooks pre-command "$TOOL_INPUT_command"' }] }
|
|
2282
2282
|
];
|
|
2283
2283
|
settings.hooks.PostToolUse = [
|
|
2284
|
-
{ matcher:
|
|
2285
|
-
{ matcher:
|
|
2284
|
+
{ matcher: 'Edit|Write|MultiEdit', hooks: [{ type: 'command', command: 'npx ruvector hooks post-edit "$TOOL_INPUT_file_path"' }] },
|
|
2285
|
+
{ matcher: 'Bash', hooks: [{ type: 'command', command: 'npx ruvector hooks post-command "$TOOL_INPUT_command"' }] }
|
|
2286
2286
|
];
|
|
2287
|
-
settings.hooks.SessionStart = [{ type: 'command', command: 'npx ruvector hooks session-start' }];
|
|
2288
|
-
settings.hooks.Stop = [{ type: 'command', command: 'npx ruvector hooks session-end' }];
|
|
2287
|
+
settings.hooks.SessionStart = [{ hooks: [{ type: 'command', command: 'npx ruvector hooks session-start' }] }];
|
|
2288
|
+
settings.hooks.Stop = [{ hooks: [{ type: 'command', command: 'npx ruvector hooks session-end' }] }];
|
|
2289
2289
|
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
2290
2290
|
console.log(chalk.green('✅ Hooks initialized in .claude/settings.json'));
|
|
2291
2291
|
});
|