()
| 56 | * Returns an array of file paths that have bash permissions. |
| 57 | */ |
| 58 | export function getBashPermissionSources(): string[] { |
| 59 | const sources: string[] = [] |
| 60 | |
| 61 | const projectRules = getPermissionRulesForSource('projectSettings') |
| 62 | if (hasBashPermission(projectRules)) { |
| 63 | sources.push('.claude/settings.json') |
| 64 | } |
| 65 | |
| 66 | const localRules = getPermissionRulesForSource('localSettings') |
| 67 | if (hasBashPermission(localRules)) { |
| 68 | sources.push('.claude/settings.local.json') |
| 69 | } |
| 70 | |
| 71 | return sources |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Format a list of items with proper "and" conjunction. |
no test coverage detected