MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isUserFacingPath

Function isUserFacingPath

source code/utils/computerUse/appNames.ts:114–123  ·  view source on GitHub ↗
(path: string, homeDir: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

filterAppsForDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected