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

Function categorizeToolName

source code/utils/streamlinedTransform.ts:54–60  ·  view source on GitHub ↗
(toolName: string)

Source from the content-addressed store, hash-verified

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

Callers 1

accumulateToolUsesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected