MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getGcpCommandsSources

Function getGcpCommandsSources

src/components/TrustDialog/utils.ts:198–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 * Returns an array of file paths that have gcpAuthRefresh.
197 */
198export 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.

Callers 1

TrustDialogFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
hasGcpCommandsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected