()
| 196 | * Returns an array of file paths that have gcpAuthRefresh. |
| 197 | */ |
| 198 | export function getGcpCommandsSources(): string[] { |
| 199 | const sources: string[] = [] |
| 200 | |
| 201 | const projectSettings = getSettingsForSource('projectSettings') |
| 202 | if (hasGcpCommands(projectSettings)) { |
| 203 | sources.push('.claude/settings.json') |
| 204 | } |
| 205 | |
| 206 | const localSettings = getSettingsForSource('localSettings') |
| 207 | if (hasGcpCommands(localSettings)) { |
| 208 | sources.push('.claude/settings.local.json') |
| 209 | } |
| 210 | |
| 211 | return sources |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Check if settings have dangerous environment variables configured. |
no test coverage detected