MCPcopy
hub / github.com/claude-code-best/claude-code / getHooksSources

Function getHooksSources

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

Source from the content-addressed store, hash-verified

27}
28
29export function getHooksSources(): string[] {
30 const sources: string[] = []
31
32 const projectSettings = getSettingsForSource('projectSettings')
33 if (hasHooks(projectSettings)) {
34 sources.push('.claude/settings.json')
35 }
36
37 const localSettings = getSettingsForSource('localSettings')
38 if (hasHooks(localSettings)) {
39 sources.push('.claude/settings.local.json')
40 }
41
42 return sources
43}
44
45function hasBashPermission(rules: PermissionRule[]): boolean {
46 return rules.some(

Callers 1

TrustDialogFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
hasHooksFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected