Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions src/schemas/json/claude-code-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"$defs": {
"permissionRule": {
"type": "string",
"description": "Tool permission rule. See https://code.claude.com/docs/en/settings#permission-rule-syntax",
"description": "Tool permission rule.\nSee https://code.claude.com/docs/en/settings#permission-rule-syntax\nSee https://code.claude.com/docs/en/settings#tools-available-to-claude for full list of tools available to Claude.",
"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__.*)$",
"examples": [
"Bash",
Expand Down Expand Up @@ -53,6 +53,10 @@
"async": {
"type": "boolean",
"description": "Run this hook asynchronously without blocking Claude Code"
},
"statusMessage": {
"type": "string",
"description": "Custom spinner message displayed while the hook runs"
}
}
},
Expand Down Expand Up @@ -80,6 +84,10 @@
"type": "number",
"description": "Optional timeout in seconds (default: 30)",
"exclusiveMinimum": 0
},
"statusMessage": {
"type": "string",
"description": "Custom spinner message displayed while the hook runs"
}
}
},
Expand Down Expand Up @@ -107,6 +115,10 @@
"type": "number",
"description": "Optional timeout in seconds (default: 60)",
"exclusiveMinimum": 0
},
"statusMessage": {
"type": "string",
"description": "Custom spinner message displayed while the hook runs"
}
}
}
Expand All @@ -120,7 +132,7 @@
"properties": {
"matcher": {
"type": "string",
"description": "Optional pattern to match tool names, case-sensitive (only applicable for PreToolUse and PostToolUse)"
"description": "Optional pattern to match event contexts, case-sensitive. Behavior depends on event type. See https://code.claude.com/docs/en/hooks#matcher-patterns for event-specific details and examples"
},
"hooks": {
"type": "array",
Expand Down Expand Up @@ -277,7 +289,7 @@
}
},
"additionalProperties": false,
"description": "Tool usage permissions configuration. See https://code.claude.com/docs/en/permissions and https://code.claude.com/docs/en/settings#permission-settings",
"description": "Tool usage permissions configuration.\nSee https://code.claude.com/docs/en/permissions and https://code.claude.com/docs/en/settings#permission-settings\nSee https://code.claude.com/docs/en/settings#tools-available-to-claude for full list of tools available to Claude.",
"examples": [
{
"allow": ["Bash(git add:*)"],
Expand All @@ -296,6 +308,14 @@
"type": "string",
"description": "Override the default model used by Claude Code. See https://code.claude.com/docs/en/model-config"
},
"availableModels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Restrict which models users can select. When defined, users can only switch between these model options. See https://code.claude.com/docs/en/model-config#restrict-model-selection",
"examples": [["sonnet", "haiku"]]
},
"effortLevel": {
"type": "string",
"enum": ["low", "medium", "high"],
Expand Down
3 changes: 3 additions & 0 deletions src/test/claude-code-settings/hooks-complete.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"hooks": [
{
"command": "git diff",
"statusMessage": "Reviewing changes",
"type": "command"
}
],
Expand Down Expand Up @@ -57,6 +58,7 @@
"hooks": [
{
"command": "echo 'About to write file' >> /tmp/claude-log.txt",
"statusMessage": "Preparing to write file",
"type": "command"
}
],
Expand Down Expand Up @@ -109,6 +111,7 @@
"hooks": [
{
"prompt": "Check if all tasks are complete before stopping: $ARGUMENTS",
"statusMessage": "Verifying task completion",
"timeout": 30,
"type": "prompt"
}
Expand Down
1 change: 1 addition & 0 deletions src/test/claude-code-settings/modern-complete-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"pr": ""
},
"autoUpdatesChannel": "stable",
"availableModels": ["sonnet", "haiku"],
"cleanupPeriodDays": 60,
"disabledMcpjsonServers": ["untrusted-server"],
"effortLevel": "high",
Expand Down