MCPcopy Create free account
hub / github.com/SethGammon/Citadel / normalizePathFields

Function normalizePathFields

core/hooks/normalize-event.js:70–75  ·  view source on GitHub ↗
(toolInput)

Source from the content-addressed store, hash-verified

68function normalizeToolName(toolName) {
69 if (!toolName) return 'Unknown';
70 const lower = String(toolName).toLowerCase();
71 return TOOL_MAP[lower] || toolName;
72}
73
74function 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;

Callers 2

createEnvelopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected