(toolInput)
| 68 | function normalizeToolName(toolName) { |
| 69 | if (!toolName) return 'Unknown'; |
| 70 | const lower = String(toolName).toLowerCase(); |
| 71 | return TOOL_MAP[lower] || toolName; |
| 72 | } |
| 73 | |
| 74 | function normalizePathFields(toolInput) { |
| 75 | const normalized = { ...(toolInput || {}) }; |
| 76 | if (typeof normalized.file_path === 'string') normalized.file_path = normalized.file_path.replace(/\\/g, '/'); |
| 77 | if (typeof normalized.path === 'string') normalized.path = normalized.path.replace(/\\/g, '/'); |
| 78 | return normalized; |
no outgoing calls
no test coverage detected