MCPcopy Index your code
hub / github.com/codeaashu/claude-code / buildMemoryDiagnostics

Function buildMemoryDiagnostics

src/utils/status.tsx:116–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }];
115}
116export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> {
117 const files = await getMemoryFiles();
118 const largeFiles = getLargeMemoryFiles(files);
119 const diagnostics: Diagnostic[] = [];
120 largeFiles.forEach(file => {
121 const displayPath = getDisplayPath(file.path);
122 diagnostics.push(`Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`);
123 });
124 return diagnostics;
125}
126export function buildSettingSourcesProperties(): Property[] {
127 const enabledSources = getEnabledSettingSources();
128

Callers 1

buildDiagnosticsFunction · 0.85

Calls 5

getLargeMemoryFilesFunction · 0.85
getDisplayPathFunction · 0.85
formatNumberFunction · 0.85
forEachMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected