chore: add PR access, typecheck stop hook and commit-msg hook
Rules in CLAUDE.md can be forgotten; hooks can't. Reads are now free, live changes still ask, and PRs go through the claude-bot account since gh doesn't work with Gitea.
This commit is contained in:
1 parent
7c2a37abdb
commit
098c1c93c2
6 files changed
+175
-4
No files matched your search
+31
-3
@@ -7,6 +7,10 @@
|
||||
"Bash(pulumi stack ls *)",
|
||||
"Bash(pulumi whoami *)",
|
||||
"Bash(pulumi version *)",
|
||||
"Bash(pulumi stack output *)",
|
||||
"Bash(pulumi stack history *)",
|
||||
"Bash(pulumi config)",
|
||||
"Bash(pulumi config get *)",
|
||||
"Bash(npm ci)",
|
||||
"Bash(npm install)",
|
||||
"Bash(npm run typecheck *)",
|
||||
@@ -14,9 +18,12 @@
|
||||
"Bash(kubectl get *)",
|
||||
"Bash(kubectl describe *)",
|
||||
"Bash(kubectl logs *)",
|
||||
"Bash(kubectl top *)",
|
||||
"Bash(kubectl config get-contexts *)",
|
||||
"Bash(git add *)",
|
||||
"Bash(git commit *)",
|
||||
"Bash(git switch *)",
|
||||
"Bash(.claude/scripts/gitea.sh GET *)",
|
||||
"WebFetch(domain:www.pulumi.com)",
|
||||
"WebFetch(domain:github.com)",
|
||||
"WebFetch(domain:raw.githubusercontent.com)",
|
||||
@@ -32,7 +39,6 @@
|
||||
"Bash(pulumi state *)",
|
||||
"Bash(pulumi config set *)",
|
||||
"Bash(pulumi config rm *)",
|
||||
"Bash(pulumi stack output *)",
|
||||
"Bash(kubectl get secret*)",
|
||||
"Bash(kubectl apply *)",
|
||||
"Bash(kubectl delete *)",
|
||||
@@ -42,16 +48,27 @@
|
||||
"Bash(ssh *)",
|
||||
"Bash(scp *)",
|
||||
"Bash(curl *)",
|
||||
"Bash(git push *)"
|
||||
"Bash(git push *)",
|
||||
"Bash(.claude/scripts/gitea.sh POST *)",
|
||||
"Bash(.claude/scripts/gitea.sh PATCH *)",
|
||||
"Bash(.claude/scripts/gitea.sh PUT *)",
|
||||
"Bash(.claude/scripts/gitea.sh DELETE *)"
|
||||
],
|
||||
"deny": [
|
||||
"Bash(env)",
|
||||
"Bash(printenv *)",
|
||||
"Bash(pulumi stack export *)",
|
||||
"Bash(pulumi *--show-secrets*)",
|
||||
"Read(**/.env)",
|
||||
"Edit(**/Pulumi.dev.yaml)"
|
||||
"Edit(**/Pulumi.dev.yaml)",
|
||||
"Read(~/.config/homelab-agent/token)",
|
||||
"Bash(*homelab-agent/token*)"
|
||||
]
|
||||
},
|
||||
"attribution": {
|
||||
"commit": "",
|
||||
"pr": ""
|
||||
},
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
@@ -63,6 +80,17 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/check-on-stop.sh",
|
||||
"timeout": 300
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user