mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-08T03:56:25Z - Changes: 3 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1b79b46806
commit
31631d0804
3 files changed
+19
-7
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@claude-flow/cli",
|
||||
"version": "3.0.0-alpha.43",
|
||||
"version": "3.0.0-alpha.44",
|
||||
"type": "module",
|
||||
"description": "CLI module - command parsing, prompts, output formatting",
|
||||
"main": "dist/src/index.js",
|
||||
|
||||
@@ -96,25 +96,25 @@ function generateHooksConfig(config: HooksConfig): object {
|
||||
// PreToolUse hooks
|
||||
if (config.preToolUse) {
|
||||
hooks.PreToolUse = [
|
||||
// File edit hooks
|
||||
// File edit hooks with intelligence routing
|
||||
{
|
||||
matcher: '^(Write|Edit|MultiEdit)$',
|
||||
hooks: [
|
||||
{
|
||||
type: 'command',
|
||||
command: 'if [ -n "$TOOL_INPUT_file_path" ]; then npx claude-flow@v3alpha hooks pre-edit --file "$TOOL_INPUT_file_path" 2>/dev/null; fi; exit 0',
|
||||
command: 'npx @claude-flow/cli@latest hooks pre-edit --file "$TOOL_INPUT_file_path" --intelligence 2>/dev/null || true',
|
||||
timeout: config.timeout,
|
||||
continueOnError: config.continueOnError,
|
||||
},
|
||||
],
|
||||
},
|
||||
// Bash command hooks
|
||||
// Bash command hooks with safety validation
|
||||
{
|
||||
matcher: '^Bash$',
|
||||
hooks: [
|
||||
{
|
||||
type: 'command',
|
||||
command: 'if [ -n "$TOOL_INPUT_command" ]; then npx claude-flow@v3alpha hooks pre-command --command "$TOOL_INPUT_command" 2>/dev/null; fi; exit 0',
|
||||
command: 'npx @claude-flow/cli@latest hooks pre-command --command "$TOOL_INPUT_command" --validate-safety 2>/dev/null || true',
|
||||
timeout: config.timeout,
|
||||
continueOnError: config.continueOnError,
|
||||
},
|
||||
@@ -126,12 +126,24 @@ function generateHooksConfig(config: HooksConfig): object {
|
||||
hooks: [
|
||||
{
|
||||
type: 'command',
|
||||
command: 'if [ -n "$TOOL_INPUT_prompt" ]; then npx claude-flow@v3alpha hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt" 2>/dev/null; fi; exit 0',
|
||||
command: 'npx @claude-flow/cli@latest hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt" 2>/dev/null || true',
|
||||
timeout: config.timeout,
|
||||
continueOnError: config.continueOnError,
|
||||
},
|
||||
],
|
||||
},
|
||||
// Search hooks for pattern caching
|
||||
{
|
||||
matcher: '^(Grep|Glob|Read)$',
|
||||
hooks: [
|
||||
{
|
||||
type: 'command',
|
||||
command: 'npx @claude-flow/cli@latest hooks pre-search --pattern "$TOOL_INPUT_pattern" 2>/dev/null || true',
|
||||
timeout: 2000,
|
||||
continueOnError: config.continueOnError,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -124,7 +124,7 @@
|
||||
}
|
||||
},
|
||||
"@claude-flow/cli": {
|
||||
"version": "3.0.0-alpha.43",
|
||||
"version": "3.0.0-alpha.44",
|
||||
"dependencies": {
|
||||
"@claude-flow/shared": "^3.0.0-alpha.1"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user