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

Function getApiKeyHelperSources

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

Source from the content-addressed store, hash-verified

145 * Returns an array of file paths that have apiKeyHelper.
146 */
147export function getApiKeyHelperSources(): string[] {
148 const sources: string[] = []
149
150 const projectSettings = getSettingsForSource('projectSettings')
151 if (hasApiKeyHelper(projectSettings)) {
152 sources.push(PROJECT_SETTINGS_DISPLAY_PATH)
153 }
154
155 const localSettings = getSettingsForSource('localSettings')
156 if (hasApiKeyHelper(localSettings)) {
157 sources.push(LOCAL_SETTINGS_DISPLAY_PATH)
158 }
159
160 return sources
161}
162
163/**
164 * Check if settings have AWS commands configured

Callers 1

TrustDialogFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85
hasApiKeyHelperFunction · 0.85

Tested by

no test coverage detected