fix(ralph): Use correct Bash(command) format for permissions
settings.json permissions must use uppercase tool names with command in parentheses per Claude Code docs (e.g., "Bash(npm run dev)" not "npm run dev"). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -87,15 +87,13 @@ mkdir -p .claude
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"npm run dev",
|
||||
"npm run build",
|
||||
"npm run lint",
|
||||
"npm run typecheck",
|
||||
"npx prisma generate",
|
||||
"npx prisma migrate dev",
|
||||
"npx prisma db push",
|
||||
"npm test",
|
||||
"npm run test:*"
|
||||
"Bash(npm run dev)",
|
||||
"Bash(npm run build)",
|
||||
"Bash(npm run lint)",
|
||||
"Bash(npm run typecheck)",
|
||||
"Bash(npx prisma:*)",
|
||||
"Bash(npm test)",
|
||||
"Bash(npm run test:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -106,12 +104,12 @@ mkdir -p .claude
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"npm start",
|
||||
"npm run dev",
|
||||
"npm run build",
|
||||
"npm run lint",
|
||||
"npm test",
|
||||
"npm run test:*"
|
||||
"Bash(npm start)",
|
||||
"Bash(npm run dev)",
|
||||
"Bash(npm run build)",
|
||||
"Bash(npm run lint)",
|
||||
"Bash(npm test)",
|
||||
"Bash(npm run test:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -122,14 +120,14 @@ mkdir -p .claude
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"uvicorn * --reload",
|
||||
"python -m pytest",
|
||||
"ruff check .",
|
||||
"ruff format .",
|
||||
"mypy .",
|
||||
"pip install *",
|
||||
"alembic upgrade head",
|
||||
"alembic revision *"
|
||||
"Bash(uvicorn:*)",
|
||||
"Bash(python -m pytest:*)",
|
||||
"Bash(pytest:*)",
|
||||
"Bash(ruff check:*)",
|
||||
"Bash(ruff format:*)",
|
||||
"Bash(mypy:*)",
|
||||
"Bash(pip install:*)",
|
||||
"Bash(alembic:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -140,11 +138,11 @@ mkdir -p .claude
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"go run .",
|
||||
"go build",
|
||||
"go test ./...",
|
||||
"golangci-lint run",
|
||||
"go mod tidy"
|
||||
"Bash(go run:*)",
|
||||
"Bash(go build:*)",
|
||||
"Bash(go test:*)",
|
||||
"Bash(golangci-lint:*)",
|
||||
"Bash(go mod:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -155,9 +153,9 @@ mkdir -p .claude
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"npm run *",
|
||||
"npm test",
|
||||
"npm start"
|
||||
"Bash(npm run:*)",
|
||||
"Bash(npm test)",
|
||||
"Bash(npm start)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user