MCPcopy Create free account
hub / github.com/Ark0N/Codeman / deduplicatePaths

Method deduplicatePaths

src/bash-tool-parser.ts:302–336  ·  view source on GitHub ↗

* Given multiple paths, deduplicate and return the "best" paths. * Uses smart equivalence checking: * - Standard normalization for relative vs absolute paths * - Detects likely typos (e.g., /file.txt when workingDir/file.txt exists) * - Prefers paths inside the working directory * - P

(paths: string[])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

extractFilePathsMethod · 0.95

Calls 6

isPathInWorkingDirMethod · 0.95
normalizePathMethod · 0.95
pathsAreEquivalentMethod · 0.95
pushMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected