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

Function isUserFacingPath

src/utils/computerUse/appNames.ts:112–121  ·  view source on GitHub ↗
(path: string, homeDir: string | undefined)

Source from the content-addressed store, hash-verified

110const APP_NAME_MAX_COUNT = 50
111
112function isUserFacingPath(path: string, homeDir: string | undefined): boolean {
113 if (PATH_ALLOWLIST.some(root => path.startsWith(root))) return true
114 if (homeDir) {
115 const userApps = homeDir.endsWith('/')
116 ? `${homeDir}Applications/`
117 : `${homeDir}/Applications/`
118 if (path.startsWith(userApps)) return true
119 }
120 return false
121}
122
123function isNoisyName(name: string): boolean {
124 return NAME_PATTERN_BLOCKLIST.some(re => re.test(name))

Callers 1

filterAppsForDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected