MCPcopy
hub / github.com/codeaashu/claude-code / checkPermissions

Function checkPermissions

src/tools/FileEditTool/FileEditTool.ts:125–132  ·  view source on GitHub ↗
(input, context)

Source from the content-addressed store, hash-verified

123 return pattern => matchWildcardPattern(pattern, file_path)
124 },
125 async checkPermissions(input, context): Promise<PermissionDecision> {
126 const appState = context.getAppState()
127 return checkWritePermissionForTool(
128 FileEditTool,
129 input,
130 appState.toolPermissionContext,
131 )
132 },
133 renderToolUseMessage,
134 renderToolResultMessage,
135 renderToolUseRejectedMessage,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected