forked from wasabeef/claude-code-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
161 lines (161 loc) · 3.97 KB
/
settings.json
File metadata and controls
161 lines (161 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"cleanupPeriodDays": 30,
"env": {
"BASH_DEFAULT_TIMEOUT_MS": "600000",
"BASH_MAX_TIMEOUT_MS": "600000",
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "true",
"CLAUDE_LANGUAGE": "ja",
"SHELL": "/opt/homebrew/bin/zsh"
},
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Bash(*)",
"Edit(**)",
"Glob(**)",
"GlobTool(**)",
"Grep(**)",
"GrepTool(**)",
"LS(**)",
"MultiEdit(**)",
"Read(**)",
"TodoRead()",
"TodoWrite(**)",
"WebFetch(domain:*)",
"WebSearch(**)",
"Write(**)"
],
"deny": [
"Bash(* | bash)",
"Bash(* | sh)",
"Bash(:(){ :|:& };:)",
"Bash(> /dev/sda*)",
"Bash(apt-get install*)",
"Bash(brew install*)",
"Bash(bundle install*)",
"Bash(chmod -R 777*)",
"Bash(chmod 777*)",
"Bash(chown -R*)",
"Bash(dd*)",
"Bash(format*)",
"Bash(gem install*)",
"Bash(gh api --method DELETE*)",
"Bash(gh auth logout*)",
"Bash(gh auth refresh*)",
"Bash(gh gist create*)",
"Bash(gh gist delete*)",
"Bash(gh gpg-key add*)",
"Bash(gh gpg-key delete*)",
"Bash(gh release create*)",
"Bash(gh release delete*)",
"Bash(gh release upload*)",
"Bash(gh repo archive*)",
"Bash(gh repo clone*)",
"Bash(gh repo create*)",
"Bash(gh repo delete*)",
"Bash(gh repo deploy-key*)",
"Bash(gh repo edit*)",
"Bash(gh repo fork*)",
"Bash(gh repo rename*)",
"Bash(gh repo sync*)",
"Bash(gh repo unarchive*)",
"Bash(gh secret delete*)",
"Bash(gh secret set*)",
"Bash(gh ssh-key add*)",
"Bash(gh ssh-key delete*)",
"Bash(gh workflow disable*)",
"Bash(gh workflow enable*)",
"Bash(gh workflow run:*)",
"Bash(git checkout*)",
"Bash(git config*)",
"Bash(git rebase*)",
"Bash(git reset --hard*)",
"Bash(git restore*)",
"Bash(mkfs*)",
"Bash(npm install -g*)",
"Bash(pip install*)",
"Bash(rm -rf ../*)",
"Bash(rm -rf /)",
"Bash(rm -rf /*)",
"Bash(rm -rf ~/*)",
"Bash(sudo*)",
"Bash(yum install*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/deny-check.sh"
},
{
"type": "command",
"command": "~/.claude/scripts/check-ai-commit.sh"
}
]
},
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/preserve-file-permissions.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/ja-space-format.sh"
},
{
"type": "command",
"command": "~/.claude/scripts/auto-comment.sh"
}
]
},
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/preserve-file-permissions.sh"
}
]
}
],
"Notification": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"確認待ち\" with title \"Claude Code\"' && afplay -v 0.3 ~/.claude/assets/confirm.mp3"
}
]
}
],
"Stop": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/check-continue.sh"
},
{
"type": "command",
"command": "osascript -e 'display notification \"タスク完了\" with title \"Claude Code\"' && afplay -v 0.3 ~/.claude/assets/perfect.mp3"
}
]
}
]
}
}