MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / buildMemoryDiagnostics

Function buildMemoryDiagnostics

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

Source from the content-addressed store, hash-verified

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

Callers 1

buildDiagnosticsFunction · 0.85

Calls 3

getLargeMemoryFilesFunction · 0.85
getDisplayPathFunction · 0.85
formatNumberFunction · 0.85

Tested by

no test coverage detected