MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / normalizeSource

Method normalizeSource

src/utils/usage-tracker.ts:76–80  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

74 }
75
76 private normalizeSource(source: string): string | null {
77 // Keep all imports except relative paths (we track those separately)
78 if (source.startsWith('.')) return null;
79 return source;
80 }
81
82 private toRelativePath(fullPath: string): string {
83 // Take last 4 path segments for readability

Callers 2

trackImportMethod · 0.95
getUsagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected