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

Function categorizeToolName

src/utils/streamlinedTransform.ts:52–58  ·  view source on GitHub ↗
(toolName: string)

Source from the content-addressed store, hash-verified

50const COMMAND_TOOLS = [...SHELL_TOOL_NAMES, 'Tmux', TASK_STOP_TOOL_NAME]
51
52function categorizeToolName(toolName: string): keyof ToolCounts {
53 if (SEARCH_TOOLS.some(t => toolName.startsWith(t))) return 'searches'
54 if (READ_TOOLS.some(t => toolName.startsWith(t))) return 'reads'
55 if (WRITE_TOOLS.some(t => toolName.startsWith(t))) return 'writes'
56 if (COMMAND_TOOLS.some(t => toolName.startsWith(t))) return 'commands'
57 return 'other'
58}
59
60function createEmptyToolCounts(): ToolCounts {
61 return {

Callers 1

accumulateToolUsesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected