Files
gh-tobyhede-turboshovel-plugin/hooks/gates.json
2025-11-30 09:02:16 +08:00

44 lines
1.4 KiB
JSON

{
"gates": {
"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. Configure with actual project check command (e.g., 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. Configure with actual project test command (e.g., npm test, cargo test)'",
"on_pass": "CONTINUE",
"on_fail": "BLOCK"
},
"build": {
"description": "Run project build",
"keywords": ["build", "compile", "package"],
"command": "echo '[PLACEHOLDER] Build passed. Configure with actual project build command (e.g., npm run build, cargo build)'",
"on_pass": "CONTINUE",
"on_fail": "CONTINUE"
}
},
"hooks": {
"UserPromptSubmit": {
"gates": ["check", "test", "build"]
},
"PostToolUse": {
"enabled_tools": ["Edit", "Write"],
"gates": ["check"]
},
"SubagentStop": {
"enabled_agents": [],
"gates": ["check", "test"]
}
}
}