MCPcopy Create free account
hub / github.com/Noumena-Network/code / getGcpCommandsSources

Function getGcpCommandsSources

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

Source from the content-addressed store, hash-verified

199 * Returns an array of file paths that have gcpAuthRefresh.
200 */
201export function getGcpCommandsSources(): string[] {
202 const sources: string[] = []
203
204 const projectSettings = getSettingsForSource('projectSettings')
205 if (hasGcpCommands(projectSettings)) {
206 sources.push(PROJECT_SETTINGS_DISPLAY_PATH)
207 }
208
209 const localSettings = getSettingsForSource('localSettings')
210 if (hasGcpCommands(localSettings)) {
211 sources.push(LOCAL_SETTINGS_DISPLAY_PATH)
212 }
213
214 return sources
215}
216
217/**
218 * Check if settings have dangerous environment variables configured.

Callers 1

TrustDialogFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85
hasGcpCommandsFunction · 0.85

Tested by

no test coverage detected