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:
Claude Agent
2026-01-22 14:42:48 +00:00
parent b375456c13
commit db47652b5c
3 changed files with 31 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "ralph",
"description": "Autonomous loop for PRD implementation with Claude Code - context detection, adaptive questions, browser verification",
"version": "1.2.0",
"version": "1.2.1",
"author": {
"name": "Romfast Team"
}

View File

@@ -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)"
]
}
}