From 2880327e94349a7a9597ea0dbf60c5ea5b41c6ff Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 17 Mar 2026 18:18:04 -0600 Subject: [PATCH] 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. --- .claude/settings.json | 37 +++++++++++++++++++++++++++++++++++++ apps/dokploy/package.json | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 000000000..b3a98c864 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,37 @@ +{ + "permissions": { + "allow": [ + "Bash(pnpm install --filter dokploy)", + "Bash(git log --oneline --all --grep=\"mongo.*restore\\\\|restore.*mongo\\\\|mongorestore\" -i)", + "Bash(grep -n \"export const deployCompose\\\\|export const deployApplication\" /Users/siumauricio/Documents/Github/dokploy/packages/server/src/services/*.ts)", + "Bash(ls /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/)", + "Bash(cat /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId].tsx)", + "Bash(git show ba1f4dbd:apps/dokploy/pages/dashboard/project/[projectId].tsx)", + "Bash(ss -tlnp)", + "Bash(gh issue view 3890)", + "Bash(npx vitest run apps/dokploy/__test__/cluster/upload.test.ts)", + "Bash(grep -E '\"\"test\"\"')", + "Bash(pnpm vitest run apps/dokploy/__test__/cluster/upload.test.ts)", + "Bash(pnpm test)", + "Bash(grep -l \"webserver\\\\|web_server\\\\|settings\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/drizzle/*.sql)", + "Bash(grep -r \"webServerSettings\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/drizzle/*.sql)", + "Bash(grep -E \"\\(apps|packages\\)/.*\\\\.\\(ts|tsx\\)$\")", + "Bash(pnpm -F dokploy exec tsc --noEmit)", + "Bash(grep -n -A 2 -B 2 \"\" /Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/mysql/[mysqlId].tsx)", + "Bash(grep '\"\"version\"\"')", + "Bash(npm view better-auth version)", + "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*\" \\\\\\))", + "Bash(pnpm dlx @better-auth/cli generate --output auth-schema-generated.ts --config src/lib/auth-cli.ts)", + "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)", + "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)", + "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)", + "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\")", + "Bash(/Users/siumauricio/Documents/Github/dokploy/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc --noEmit --project apps/dokploy/tsconfig.json)", + "Bash(pnpm run:*)" + ], + "defaultMode": "bypassPermissions", + "additionalDirectories": [ + "/Users/siumauricio/Documents/Github/dokploy/apps/dokploy/pages/dashboard/project/[projectId]/environment/[environmentId]/services/compose" + ] + } +} diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index fd7486674..a8f3d4a26 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -1,6 +1,6 @@ { "name": "dokploy", - "version": "v0.28.6", + "version": "v0.28.7", "private": true, "license": "Apache-2.0", "type": "module",