MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / formatMemoryScopeText

Function formatMemoryScopeText

src/memory/store.ts:218–224  ·  view source on GitHub ↗
(scope?: MemoryScope)

Source from the content-addressed store, hash-verified

216}
217
218export function formatMemoryScopeText(scope?: MemoryScope): string {
219 if (!scope || scope.kind === 'global') return '';
220 if (scope.kind === 'file') {
221 return scope.file;
222 }
223 return `${scope.file} ${scope.symbol}`;
224}
225
226export function buildMemoryIdentityParts(memory: {
227 type: MemoryType;

Callers 3

getMemoryTextMatchCountFunction · 0.85
filterStrongMemoriesFunction · 0.85
filterMemoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected