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

Method trackExport

src/utils/usage-tracker.ts:67–74  ·  view source on GitHub ↗
(filePath: string, exportName: string)

Source from the content-addressed store, hash-verified

65 }
66
67 trackExport(filePath: string, exportName: string): void {
68 const relPath = this.toRelativePath(filePath);
69 const existing = this.exports.get(relPath) || [];
70 if (!existing.includes(exportName)) {
71 existing.push(exportName);
72 this.exports.set(relPath, existing);
73 }
74 }
75
76 private normalizeSource(source: string): string | null {
77 // Keep all imports except relative paths (we track those separately)

Callers

nothing calls this directly

Calls 3

toRelativePathMethod · 0.95
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected