fix(ai workflow): align hook configs

This commit is contained in:
Tommaso Casaburi
2026-06-27 14:25:56 +07:00
parent 9c269d9dfa
commit 9e027a0159
2 changed files with 84 additions and 54 deletions
+25 -10
View File
@@ -1,37 +1,52 @@
{ {
"version": 1,
"hooks": { "hooks": {
"afterFileEdit": [ "PostToolUse": [
{ {
"command": ".claude/hooks/format.sh", "matcher": "Edit|Write|apply_patch",
"hooks": [
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/format.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".claude/hooks/yarn-install.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/yarn-install.sh\"",
"timeout": 120 "timeout": 120
}, },
{ {
"command": ".claude/hooks/react-pattern-review.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
} }
]
}
], ],
"stop": [ "Stop": [
{ {
"command": ".claude/hooks/sync-git-branches.sh", "hooks": [
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/sync-git-branches.sh\"",
"timeout": 60 "timeout": 60
}, },
{ {
"command": ".claude/hooks/react-pattern-review.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".claude/hooks/code-quality-review-reminder.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/code-quality-review-reminder.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".claude/hooks/verify.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/verify.sh\"",
"timeout": 60 "timeout": 60
} }
] ]
} }
]
}
} }
+25 -10
View File
@@ -1,37 +1,52 @@
{ {
"version": 1,
"hooks": { "hooks": {
"afterFileEdit": [ "PostToolUse": [
{ {
"command": ".cursor/hooks/format.sh", "matcher": "Edit|Write|apply_patch",
"hooks": [
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/format.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".cursor/hooks/yarn-install.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/yarn-install.sh\"",
"timeout": 120 "timeout": 120
}, },
{ {
"command": ".cursor/hooks/react-pattern-review.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
} }
]
}
], ],
"stop": [ "Stop": [
{ {
"command": ".cursor/hooks/sync-git-branches.sh", "hooks": [
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/sync-git-branches.sh\"",
"timeout": 60 "timeout": 60
}, },
{ {
"command": ".cursor/hooks/react-pattern-review.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".cursor/hooks/code-quality-review-reminder.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/code-quality-review-reminder.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".cursor/hooks/verify.sh", "type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/verify.sh\"",
"timeout": 60 "timeout": 60
} }
] ]
} }
]
}
} }