Skip to content

Commit 7812f03

Browse files
authored
[claude-code-settings] Add missing tool names to permissionRule pattern (SchemaStore#5363)
Co-authored-by: domdomegg <domdomegg@users.noreply.github.com>
1 parent e84364b commit 7812f03

3 files changed

Lines changed: 3 additions & 35 deletions

File tree

src/schemas/json/claude-code-settings.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"permissionRule": {
66
"type": "string",
77
"description": "Tool permission rule. See https://code.claude.com/docs/en/settings#permission-rule-syntax",
8-
"pattern": "^((Bash|Edit|ExitPlanMode|Glob|Grep|KillShell|LS|MultiEdit|NotebookEdit|NotebookRead|Read|Skill|Task|TaskOutput|TodoWrite|WebFetch|WebSearch|Write)(\\((?=.*[^)*?])[^)]+\\))?|mcp__.*)$",
8+
"pattern": "^((Bash|Edit|ExitPlanMode|Glob|Grep|KillShell|LS|LSP|MultiEdit|NotebookEdit|NotebookRead|Read|Skill|Task|TaskCreate|TaskGet|TaskList|TaskOutput|TaskStop|TaskUpdate|TodoWrite|ToolSearch|WebFetch|WebSearch|Write)(\\((?=.*[^)*?])[^)]+\\))?|mcp__.*)$",
99
"examples": [
1010
"Bash",
1111
"Bash(npm run build)",
@@ -482,20 +482,6 @@
482482
"items": {
483483
"$ref": "#/$defs/hookMatcher"
484484
}
485-
},
486-
"TeammateIdle": {
487-
"type": "array",
488-
"description": "Hooks that run when a teammate agent is about to go idle. Exit code 2 sends feedback and keeps the teammate working.",
489-
"items": {
490-
"$ref": "#/$defs/hookMatcher"
491-
}
492-
},
493-
"TaskCompleted": {
494-
"type": "array",
495-
"description": "Hooks that run when a task is being marked as completed. Exit code 2 prevents completion with feedback.",
496-
"items": {
497-
"$ref": "#/$defs/hookMatcher"
498-
}
499485
}
500486
}
501487
},

src/test/claude-code-settings/hooks-complete.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,6 @@
160160
]
161161
}
162162
],
163-
"TaskCompleted": [
164-
{
165-
"hooks": [
166-
{
167-
"command": "echo 'Task completed' >> /tmp/claude-teams.log",
168-
"type": "command"
169-
}
170-
]
171-
}
172-
],
173-
"TeammateIdle": [
174-
{
175-
"hooks": [
176-
{
177-
"command": "echo 'Teammate going idle' >> /tmp/claude-teams.log",
178-
"type": "command"
179-
}
180-
]
181-
}
182-
],
183163
"UserPromptSubmit": [
184164
{
185165
"hooks": [

src/test/claude-code-settings/permissions-advanced.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"Grep",
77
"Read(~/projects/**)",
88
"Edit(~/projects/**)",
9+
"ToolSearch",
10+
"LSP",
911
"NotebookEdit",
1012
"TodoWrite",
1113
"WebFetch(domain:github.com)",

0 commit comments

Comments
 (0)