104 lines
2.6 KiB
JSON
104 lines
2.6 KiB
JSON
{
|
|
"_description": "너드나비스 조직 공용 Claude Code permission + hook 설정 (SOT). PD님 일괄 승인 원칙 + 자동 동기화 hook(B안, 2026-04-15 PD님 승인). 모든 PC·모든 worktree 동일 적용. 개발실/·기획실/에도 동일 사본 배치 (setup_windows.ps1이 동기 복제).",
|
|
"permissions": {
|
|
"allow": [
|
|
"Read",
|
|
"Glob",
|
|
"Grep",
|
|
"TodoWrite",
|
|
"Edit",
|
|
"Write",
|
|
"MultiEdit",
|
|
"NotebookEdit",
|
|
"Bash(git:*)",
|
|
"Bash(gh:*)",
|
|
"Bash(ls:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(head:*)",
|
|
"Bash(tail:*)",
|
|
"Bash(grep:*)",
|
|
"Bash(rg:*)",
|
|
"Bash(find:*)",
|
|
"Bash(echo:*)",
|
|
"Bash(pwd)",
|
|
"Bash(cd:*)",
|
|
"Bash(mkdir:*)",
|
|
"Bash(touch:*)",
|
|
"Bash(cp:*)",
|
|
"Bash(mv:*)",
|
|
"Bash(diff:*)",
|
|
"Bash(wc:*)",
|
|
"Bash(sort:*)",
|
|
"Bash(uniq:*)",
|
|
"Bash(tr:*)",
|
|
"Bash(sed:*)",
|
|
"Bash(awk:*)",
|
|
"Bash(xxd:*)",
|
|
"Bash(printf:*)",
|
|
"Bash(true)",
|
|
"Bash(false)",
|
|
"Bash(powershell.exe:*)",
|
|
"Bash(powershell:*)",
|
|
"Bash(fsutil:*)",
|
|
"Bash(cmd:*)",
|
|
"Bash(npm:*)",
|
|
"Bash(npx:*)",
|
|
"Bash(node:*)",
|
|
"Bash(python:*)",
|
|
"Bash(python3:*)",
|
|
"Bash(pytest:*)",
|
|
"Bash(dotnet:*)",
|
|
"WebFetch",
|
|
"WebSearch"
|
|
],
|
|
"deny": [
|
|
"Bash(rm:*)",
|
|
"Bash(rmdir:*)",
|
|
"Bash(sudo:*)",
|
|
"Bash(dd:*)",
|
|
"Bash(mkfs:*)",
|
|
"Bash(format:*)",
|
|
"Bash(chmod 777:*)",
|
|
"Bash(chown:*)",
|
|
"Bash(shutdown:*)",
|
|
"Bash(reboot:*)",
|
|
"Write(/etc/**)",
|
|
"Write(/System/**)",
|
|
"Write(C:/Windows/**)",
|
|
"Write(C:\\Windows\\**)",
|
|
"Edit(/etc/**)",
|
|
"Edit(/System/**)",
|
|
"Edit(C:/Windows/**)",
|
|
"Edit(C:\\Windows\\**)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "git fetch origin 2>/dev/null; CHANGES=$(git log --oneline HEAD..origin/main 2>/dev/null | head -10); if [ -n \"$CHANGES\" ]; then echo '📌 [SessionStart] origin/main 변경 검출:'; echo \"$CHANGES\"; echo '→ 권장: git merge origin/main --no-edit'; else echo '✅ [SessionStart] main 동기화 상태'; fi"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "bash scripts/inbox_scan.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash scripts/git_fetch_throttle.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|