feat(claude): добавлена глобальная конфигурация разрешений

- Зачем:
  - сократить количество запросов подтверждения при рутинных операциях
    (чтение файлов, git status/log/diff, docker ps/logs, сборка/тесты).
- Что:
  - создан claude/.claude/settings.json с секцией permissions.allow —
    авторазрешены безопасные bash-команды: чтение файлов, текстовая
    обработка, git read-only + git add, docker read-only, curl/wget,
    файловые операции (mkdir/cp/mv/touch), dev-инструменты (npm/bun/go/...).
  - опасные операции (git commit/push/rm/docker stop) остаются на запрос.
  - обновлён .gitignore stow-пакета: settings.json добавлен в исключения.
- Проверка:
  - cat ~/.claude/settings.json — должен быть симлинк на файл в dotfiles.
  - ls -la ~/.claude/settings.json — проверить, что это symlink.
This commit is contained in:
ddadmin committed 2026-03-10 22:03:08 +03:00
1 parent 063736fed5
commit 328f70f16c
2 files changed
+113

No files matched your search

+1
View File
@@ -2,3 +2,4 @@
*
!skills
!.gitignore
!settings.json
+112
View File
@@ -0,0 +1,112 @@
{
"model": "opus",
"statusLine": {
"type": "command",
"command": "bash /home/dementev/.claude/statusline-command.sh"
},
"effortLevel": "high",
"permissions": {
"allow": [
"Bash(cat *)",
"Bash(ls)",
"Bash(ls *)",
"Bash(wc *)",
"Bash(head *)",
"Bash(tail *)",
"Bash(find *)",
"Bash(tree)",
"Bash(tree *)",
"Bash(file *)",
"Bash(stat *)",
"Bash(diff *)",
"Bash(realpath *)",
"Bash(readlink *)",
"Bash(basename *)",
"Bash(dirname *)",
"Bash(sort *)",
"Bash(uniq *)",
"Bash(cut *)",
"Bash(awk *)",
"Bash(sed *)",
"Bash(grep *)",
"Bash(rg *)",
"Bash(jq *)",
"Bash(yq *)",
"Bash(tr *)",
"Bash(echo *)",
"Bash(printf *)",
"Bash(which *)",
"Bash(type *)",
"Bash(command -v *)",
"Bash(env)",
"Bash(env *)",
"Bash(printenv)",
"Bash(printenv *)",
"Bash(pwd)",
"Bash(uname *)",
"Bash(whoami)",
"Bash(id)",
"Bash(date)",
"Bash(date *)",
"Bash(hostname)",
"Bash(git log*)",
"Bash(git diff*)",
"Bash(git status*)",
"Bash(git show*)",
"Bash(git branch*)",
"Bash(git remote -v*)",
"Bash(git remote show*)",
"Bash(git tag*)",
"Bash(git stash list*)",
"Bash(git rev-parse*)",
"Bash(git ls-files*)",
"Bash(git blame*)",
"Bash(git shortlog*)",
"Bash(git config --get*)",
"Bash(git config --list*)",
"Bash(git fetch*)",
"Bash(git add*)",
"Bash(docker ps*)",
"Bash(docker logs*)",
"Bash(docker inspect*)",
"Bash(docker images*)",
"Bash(docker stats*)",
"Bash(docker info*)",
"Bash(docker version*)",
"Bash(docker compose ps*)",
"Bash(docker compose logs*)",
"Bash(curl *)",
"Bash(wget *)",
"Bash(mkdir *)",
"Bash(cp *)",
"Bash(mv *)",
"Bash(touch *)",
"Bash(chmod *)",
"Bash(ln *)",
"Bash(npm *)",
"Bash(npx *)",
"Bash(yarn *)",
"Bash(pnpm *)",
"Bash(bun *)",
"Bash(go *)",
"Bash(cargo *)",
"Bash(make *)",
"Bash(python *)",
"Bash(python3 *)",
"Bash(pip *)",
"Bash(pip3 *)",
"Bash(pytest *)",
"Bash(node *)",
"Bash(deno *)",
"Bash(stow *)"
]
}
}