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

Function getHooksSources

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

Source from the content-addressed store, hash-verified

30}
31
32export function getHooksSources(): string[] {
33 const sources: string[] = []
34
35 const projectSettings = getSettingsForSource('projectSettings')
36 if (hasHooks(projectSettings)) {
37 sources.push(PROJECT_SETTINGS_DISPLAY_PATH)
38 }
39
40 const localSettings = getSettingsForSource('localSettings')
41 if (hasHooks(localSettings)) {
42 sources.push(LOCAL_SETTINGS_DISPLAY_PATH)
43 }
44
45 return sources
46}
47
48function hasBashPermission(rules: PermissionRule[]): boolean {
49 return rules.some(

Callers 1

TrustDialogFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85
hasHooksFunction · 0.85

Tested by

no test coverage detected