claude-code: init module (#7685)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
567312006a
commit
8b4ac14968
14 changed files with 589 additions and 0 deletions
55
tests/modules/programs/claude-code/expected-settings.json
Normal file
55
tests/modules/programs/claude-code/expected-settings.json
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"command": "echo 'Running bash command: $CLAUDE_TOOL_INPUT'",
|
||||
"type": "command"
|
||||
}
|
||||
],
|
||||
"matcher": "Bash"
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"command": "echo 'User submitted: $CLAUDE_USER_PROMPT'",
|
||||
"type": "command"
|
||||
}
|
||||
],
|
||||
"matcher": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"includeCoAuthoredBy": false,
|
||||
"model": "claude-3-5-sonnet-20241022",
|
||||
"permissions": {
|
||||
"additionalDirectories": [
|
||||
"../docs/"
|
||||
],
|
||||
"allow": [
|
||||
"Bash(git diff:*)",
|
||||
"Edit"
|
||||
],
|
||||
"ask": [
|
||||
"Bash(git push:*)"
|
||||
],
|
||||
"defaultMode": "acceptEdits",
|
||||
"deny": [
|
||||
"WebFetch",
|
||||
"Bash(curl:*)",
|
||||
"Read(./.env)",
|
||||
"Read(./secrets/**)"
|
||||
],
|
||||
"disableBypassPermissionsMode": "disable"
|
||||
},
|
||||
"statusLine": {
|
||||
"command": "input=$(cat); echo \"[$(echo \"$input\" | jq -r '.model.display_name')] 📁 $(basename \"$(echo \"$input\" | jq -r '.workspace.current_dir')\")\"",
|
||||
"padding": 0,
|
||||
"type": "command"
|
||||
},
|
||||
"theme": "dark"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue