|
| 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 | +} |
0 commit comments