MCPcopy Create free account
hub / github.com/codeaashu/claude-code / preparePermissionMatcher

Function preparePermissionMatcher

src/tools/FileWriteTool/FileWriteTool.ts:132–134  ·  view source on GitHub ↗
({ file_path })

Source from the content-addressed store, hash-verified

130 }
131 },
132 async preparePermissionMatcher({ file_path }) {
133 return pattern => matchWildcardPattern(pattern, file_path)
134 },
135 async checkPermissions(input, context): Promise<PermissionDecision> {
136 const appState = context.getAppState()
137 return checkWritePermissionForTool(

Callers

nothing calls this directly

Calls 1

matchWildcardPatternFunction · 0.50

Tested by

no test coverage detected