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
+42 -27
View File
@@ -1,36 +1,51 @@
{ {
"version": 1,
"hooks": { "hooks": {
"afterFileEdit": [ "PostToolUse": [
{ {
"command": ".claude/hooks/format.sh", "matcher": "Edit|Write|apply_patch",
"timeout": 10 "hooks": [
}, {
{ "type": "command",
"command": ".claude/hooks/yarn-install.sh", "command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/format.sh\"",
"timeout": 120 "timeout": 10
}, },
{ {
"command": ".claude/hooks/react-pattern-review.sh", "type": "command",
"timeout": 10 "command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/yarn-install.sh\"",
"timeout": 120
},
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/react-pattern-review.sh\"",
"timeout": 10
}
]
} }
], ],
"stop": [ "Stop": [
{ {
"command": ".claude/hooks/sync-git-branches.sh", "hooks": [
"timeout": 60 {
}, "type": "command",
{ "command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/sync-git-branches.sh\"",
"command": ".claude/hooks/react-pattern-review.sh", "timeout": 60
"timeout": 10 },
}, {
{ "type": "command",
"command": ".claude/hooks/code-quality-review-reminder.sh", "command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".claude/hooks/verify.sh", "type": "command",
"timeout": 60 "command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/code-quality-review-reminder.sh\"",
"timeout": 10
},
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hooks/verify.sh\"",
"timeout": 60
}
]
} }
] ]
} }
+42 -27
View File
@@ -1,36 +1,51 @@
{ {
"version": 1,
"hooks": { "hooks": {
"afterFileEdit": [ "PostToolUse": [
{ {
"command": ".cursor/hooks/format.sh", "matcher": "Edit|Write|apply_patch",
"timeout": 10 "hooks": [
}, {
{ "type": "command",
"command": ".cursor/hooks/yarn-install.sh", "command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/format.sh\"",
"timeout": 120 "timeout": 10
}, },
{ {
"command": ".cursor/hooks/react-pattern-review.sh", "type": "command",
"timeout": 10 "command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/yarn-install.sh\"",
"timeout": 120
},
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/react-pattern-review.sh\"",
"timeout": 10
}
]
} }
], ],
"stop": [ "Stop": [
{ {
"command": ".cursor/hooks/sync-git-branches.sh", "hooks": [
"timeout": 60 {
}, "type": "command",
{ "command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/sync-git-branches.sh\"",
"command": ".cursor/hooks/react-pattern-review.sh", "timeout": 60
"timeout": 10 },
}, {
{ "type": "command",
"command": ".cursor/hooks/code-quality-review-reminder.sh", "command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/react-pattern-review.sh\"",
"timeout": 10 "timeout": 10
}, },
{ {
"command": ".cursor/hooks/verify.sh", "type": "command",
"timeout": 60 "command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/code-quality-review-reminder.sh\"",
"timeout": 10
},
{
"type": "command",
"command": "bash \"$(git rev-parse --show-toplevel)/.cursor/hooks/verify.sh\"",
"timeout": 60
}
]
} }
] ]
} }