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

Function isCodeEditingTool

src/hooks/toolPermission/permissionLogging.ts:35–37  ·  view source on GitHub ↗
(toolName: string)

Source from the content-addressed store, hash-verified

33const CODE_EDITING_TOOLS = ['Edit', 'Write', 'NotebookEdit']
34
35function isCodeEditingTool(toolName: string): boolean {
36 return CODE_EDITING_TOOLS.includes(toolName)
37}
38
39// Builds OTel counter attributes for code editing tools, enriching with
40// language when the tool's target file path can be extracted from input

Callers 2

logPermissionDecisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected