Initial commit
This commit is contained in:
48
hooks/gates.json.backup
Normal file
48
hooks/gates.json.backup
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"gates": {
|
||||
"plan-compliance": {
|
||||
"description": "Verify work follows the active plan",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "BLOCK"
|
||||
},
|
||||
"plugin-path": {
|
||||
"description": "Verify plugin path resolution in subagents",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "CONTINUE"
|
||||
},
|
||||
"check": {
|
||||
"description": "Run project quality checks (formatting, linting, types)",
|
||||
"keywords": ["lint", "check", "format", "quality", "clippy", "typecheck"],
|
||||
"command": "echo '[PLACEHOLDER] Quality checks passed. TODO: Configure with actual project check command (e.g., mise run check, npm run lint, cargo clippy)'",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "BLOCK"
|
||||
},
|
||||
"test": {
|
||||
"description": "Run project test suite",
|
||||
"keywords": ["test", "testing", "spec", "verify"],
|
||||
"command": "echo '[PLACEHOLDER] Tests passed. TODO: Configure with actual project test command (e.g., mise run test, npm test, cargo test)'",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "BLOCK"
|
||||
},
|
||||
"build": {
|
||||
"description": "Run project build",
|
||||
"keywords": ["build", "compile", "package"],
|
||||
"command": "echo '[PLACEHOLDER] Build passed. TODO: Configure with actual project build command (e.g., mise run build, npm run build, cargo build)'",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "CONTINUE"
|
||||
}
|
||||
},
|
||||
"hooks": {
|
||||
"UserPromptSubmit": {
|
||||
"gates": ["check", "test", "build"]
|
||||
},
|
||||
"PostToolUse": {
|
||||
"enabled_tools": ["Edit", "Write", "mcp__serena__replace_symbol_body"],
|
||||
"gates": ["check"]
|
||||
},
|
||||
"SubagentStop": {
|
||||
"enabled_agents": ["rust-agent", "code-review-agent", "ultrathink-debugger"],
|
||||
"gates": ["check", "test"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user