mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
- bash-guard: block awk (was missing from blocked commands) - post-compact: replace fragile sed JSON escaping with jq -n --arg - track-read: deduplicate entries before appending to .read-tracker - settings: remove redundant Edit→require-read hook (built-in handles it) - settings: add ENABLE_LSP_TOOL=1 for inline LSP diagnostics
89 lines
1.8 KiB
JSON
89 lines
1.8 KiB
JSON
{
|
|
"attribution": {
|
|
"commit": "",
|
|
"pr": ""
|
|
},
|
|
"includeCoAuthoredBy": false,
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git status*)",
|
|
"Bash(git diff*)",
|
|
"Bash(git log*)",
|
|
"Bash(git branch*)",
|
|
"Bash(git show*)",
|
|
"Bash(git fetch*)",
|
|
"Bash(git checkout*)",
|
|
"Bash(uv run*)",
|
|
"Bash(uv sync*)",
|
|
"Bash(uv pip*)",
|
|
"Bash(prek*)",
|
|
"Bash(make*)",
|
|
"Bash(gh *)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/bash-guard.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/require-read.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Read",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/track-read.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/post-edit-lint.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreCompact": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/post-compact.sh",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"statusLine": {
|
|
"type": "command",
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/status-line.sh"
|
|
},
|
|
"enableAllProjectMcpServers": true,
|
|
"env": {
|
|
"ENABLE_LSP_TOOL": "1"
|
|
}
|
|
}
|