Skip to content

Commit 2880327

Browse files
committed
feat: add settings configuration for command permissions in Claude
- Introduced a new settings.json file to define permissions for various Bash commands and set the default mode to bypassPermissions. - Updated the version in package.json to v0.28.7.
1 parent 827b84f commit 2880327

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.claude/settings.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(pnpm install --filter dokploy)",
5+
"Bash(git log --oneline --all --grep=\"mongo.*restore\\\\|restore.*mongo\\\\|mongorestore\" -i)",
6+
"Bash(grep -n \"export const deployCompose\\\\|export const deployApplication\" /Users/siumauricio/Documents/Github/dokploy/packages/server/src/services/*.ts)",
7+
"Bash(ls /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/)",
8+
"Bash(cat /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId].tsx)",
9+
"Bash(git show ba1f4dbd:apps/dokploy/pages/dashboard/project/[projectId].tsx)",
10+
"Bash(ss -tlnp)",
11+
"Bash(gh issue view 3890)",
12+
"Bash(npx vitest run apps/dokploy/__test__/cluster/upload.test.ts)",
13+
"Bash(grep -E '\"\"test\"\"')",
14+
"Bash(pnpm vitest run apps/dokploy/__test__/cluster/upload.test.ts)",
15+
"Bash(pnpm test)",
16+
"Bash(grep -l \"webserver\\\\|web_server\\\\|settings\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/drizzle/*.sql)",
17+
"Bash(grep -r \"webServerSettings\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/drizzle/*.sql)",
18+
"Bash(grep -E \"\\(apps|packages\\)/.*\\\\.\\(ts|tsx\\)$\")",
19+
"Bash(pnpm -F dokploy exec tsc --noEmit)",
20+
"Bash(grep -n -A 2 -B 2 \"<title>\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx)",
21+
"Bash(grep '\"\"version\"\"')",
22+
"Bash(npm view better-auth version)",
23+
"Bash(find /Users/siumauricio/Documents/Github/dokploy/node_modules/.pnpm/@better-auth+core@1.5.4*/node_modules/@better-auth/core -type f \\\\\\( -name \"*.d.ts\" -o -name \"*.d.mts\" -o -name \"organization*\" -o -name \"access*\" -o -name \"*rbac*\" \\\\\\))",
24+
"Bash(pnpm dlx @better-auth/cli generate --output auth-schema-generated.ts --config src/lib/auth-cli.ts)",
25+
"Bash(perl -0777 -i -pe 's/\\\\t\\\\t\\\\t\\\\t\\\\/\\\\/ Additional check for environment access for members\\\\n\\\\t\\\\t\\\\t\\\\tif \\\\\\(ctx\\\\.user\\\\.role === \"\"member\"\"\\\\\\) \\\\{\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\\\\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.user\\\\.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tinput\\\\.environmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.session\\\\.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\\\);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\}/\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.user.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tinput.environmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.session.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\);/' apps/dokploy/server/api/routers/environment.ts)",
26+
"Bash(perl -0777 -i -pe 's/\\\\t\\\\t\\\\t\\\\t\\\\/\\\\/ Allow users to rename environments to any name, including \"\"production\"\"\\\\n\\\\t\\\\t\\\\t\\\\tif \\\\\\(ctx\\\\.user\\\\.role === \"\"member\"\"\\\\\\) \\\\{\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\\\\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.user\\\\.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tenvironmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.session\\\\.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\\\);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\}\\\\n\\\\t\\\\t\\\\t\\\\tconst currentEnvironment/\\\\t\\\\t\\\\t\\\\t\\\\/\\\\/ Allow users to rename environments to any name, including \"\"production\"\"\\\\n\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.user.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tenvironmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.session.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\);\\\\n\\\\t\\\\t\\\\t\\\\tconst currentEnvironment/' apps/dokploy/server/api/routers/environment.ts)",
27+
"Bash(perl -0777 -i -pe 's/\\(\\\\t\\\\t\\\\t\\)try \\\\{\\\\n\\\\t\\\\t\\\\t\\\\tif \\\\\\(ctx\\\\.user\\\\.role === \"\"member\"\"\\\\\\) \\\\{\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\\\\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.user\\\\.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tinput\\\\.environmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tctx\\\\.session\\\\.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\\\);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\}\\\\n\\\\t\\\\t\\\\t\\\\tconst environment = await findEnvironmentById\\\\\\(input\\\\.environmentId\\\\\\);/$1try {\\\\n\\\\t\\\\t\\\\t\\\\tawait checkEnvironmentAccess\\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.user.id,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tinput.environmentId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tctx.session.activeOrganizationId,\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\"\"read\"\",\\\\n\\\\t\\\\t\\\\t\\\\t\\);\\\\n\\\\t\\\\t\\\\t\\\\tconst environment = await findEnvironmentById\\(input.environmentId\\);/' apps/dokploy/server/api/routers/environment.ts)",
28+
"Bash(perl -i -0777 -pe 's/\\\\{[\\(\\\\s]*auth\\\\?\\\\.role === \"\"owner\"\" \\\\|\\\\|\\\\s*auth\\\\?\\\\.role === \"\"admin\"\" \\\\|\\\\|\\\\s*auth\\\\?\\\\.canDeleteServices\\\\\\)\\\\s*&& \\\\\\(\\\\s*<DeleteService id=\\\\{redisId\\\\} type=\"\"redis\"\" \\\\/>\\\\s*\\\\\\)\\\\}/{permissions?.service.delete \\\\&\\\\& \\(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<DeleteService id={redisId} type=\"\"redis\"\" \\\\/>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\)}/s' \"apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/redis/[redisId].tsx\")",
29+
"Bash(/Users/siumauricio/Documents/Github/dokploy/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc --noEmit --project apps/dokploy/tsconfig.json)",
30+
"Bash(pnpm run:*)"
31+
],
32+
"defaultMode": "bypassPermissions",
33+
"additionalDirectories": [
34+
"/Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose"
35+
]
36+
}
37+
}

apps/dokploy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.28.6",
3+
"version": "v0.28.7",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",

0 commit comments

Comments
 (0)