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

@@ -18,7 +18,7 @@
"name": "ralph", "name": "ralph",
"source": "./plugins/ralph", "source": "./plugins/ralph",
"description": "Autonomous loop for PRD implementation - context detection, adaptive questions, browser verification", "description": "Autonomous loop for PRD implementation - context detection, adaptive questions, browser verification",
"version": "1.2.0", "version": "1.2.1",
"keywords": ["ralph", "prd", "autonomous", "agent", "loop", "browser", "verification"] "keywords": ["ralph", "prd", "autonomous", "agent", "loop", "browser", "verification"]
} }
] ]

View File

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

View File

@@ -87,15 +87,13 @@ mkdir -p .claude
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"npm run dev", "Bash(npm run dev)",
"npm run build", "Bash(npm run build)",
"npm run lint", "Bash(npm run lint)",
"npm run typecheck", "Bash(npm run typecheck)",
"npx prisma generate", "Bash(npx prisma:*)",
"npx prisma migrate dev", "Bash(npm test)",
"npx prisma db push", "Bash(npm run test:*)"
"npm test",
"npm run test:*"
] ]
} }
} }
@@ -106,12 +104,12 @@ mkdir -p .claude
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"npm start", "Bash(npm start)",
"npm run dev", "Bash(npm run dev)",
"npm run build", "Bash(npm run build)",
"npm run lint", "Bash(npm run lint)",
"npm test", "Bash(npm test)",
"npm run test:*" "Bash(npm run test:*)"
] ]
} }
} }
@@ -122,14 +120,14 @@ mkdir -p .claude
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"uvicorn * --reload", "Bash(uvicorn:*)",
"python -m pytest", "Bash(python -m pytest:*)",
"ruff check .", "Bash(pytest:*)",
"ruff format .", "Bash(ruff check:*)",
"mypy .", "Bash(ruff format:*)",
"pip install *", "Bash(mypy:*)",
"alembic upgrade head", "Bash(pip install:*)",
"alembic revision *" "Bash(alembic:*)"
] ]
} }
} }
@@ -140,11 +138,11 @@ mkdir -p .claude
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"go run .", "Bash(go run:*)",
"go build", "Bash(go build:*)",
"go test ./...", "Bash(go test:*)",
"golangci-lint run", "Bash(golangci-lint:*)",
"go mod tidy" "Bash(go mod:*)"
] ]
} }
} }
@@ -155,9 +153,9 @@ mkdir -p .claude
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"npm run *", "Bash(npm run:*)",
"npm test", "Bash(npm test)",
"npm start" "Bash(npm start)"
] ]
} }
} }