Skip to content

Commit b1b01a4

Browse files
domdomeggclaude
andcommitted
[claude-code-settings] Add missing tool names to permissionRule pattern
Add LSP, TaskCreate, TaskGet, TaskList, TaskStop, TaskUpdate, and ToolSearch to the permissionRule pattern. These tools exist in Claude Code but were missing from the schema validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e84364b commit b1b01a4

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

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/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)