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

Function getBashPermissionSources

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

Source from the content-addressed store, hash-verified

56 * Returns an array of file paths that have bash permissions.
57 */
58export function getBashPermissionSources(): string[] {
59 const sources: string[] = []
60
61 const projectRules = getPermissionRulesForSource('projectSettings')
62 if (hasBashPermission(projectRules)) {
63 sources.push('.claude/settings.json')
64 }
65
66 const localRules = getPermissionRulesForSource('localSettings')
67 if (hasBashPermission(localRules)) {
68 sources.push('.claude/settings.local.json')
69 }
70
71 return sources
72}
73
74/**
75 * Format a list of items with proper "and" conjunction.

Callers 1

TrustDialogFunction · 0.85

Calls 3

hasBashPermissionFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected