()
| 27 | } |
| 28 | |
| 29 | export function getHooksSources(): string[] { |
| 30 | const sources: string[] = [] |
| 31 | |
| 32 | const projectSettings = getSettingsForSource('projectSettings') |
| 33 | if (hasHooks(projectSettings)) { |
| 34 | sources.push('.claude/settings.json') |
| 35 | } |
| 36 | |
| 37 | const localSettings = getSettingsForSource('localSettings') |
| 38 | if (hasHooks(localSettings)) { |
| 39 | sources.push('.claude/settings.local.json') |
| 40 | } |
| 41 | |
| 42 | return sources |
| 43 | } |
| 44 | |
| 45 | function hasBashPermission(rules: PermissionRule[]): boolean { |
| 46 | return rules.some( |
no test coverage detected