MCPcopy
hub / github.com/claude-code-best/claude-code / buildMemoryDiagnostics

Function buildMemoryDiagnostics

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

Source from the content-addressed store, hash-verified

147}
148
149export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> {
150 const files = await getMemoryFiles();
151 const largeFiles = getLargeMemoryFiles(files);
152
153 const diagnostics: Diagnostic[] = [];
154
155 largeFiles.forEach(file => {
156 const displayPath = getDisplayPath(file.path);
157 diagnostics.push(
158 `Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`,
159 );
160 });
161
162 return diagnostics;
163}
164
165export function buildSettingSourcesProperties(): Property[] {
166 const enabledSources = getEnabledSettingSources();

Callers 1

buildDiagnosticsFunction · 0.85

Calls 4

getLargeMemoryFilesFunction · 0.85
getDisplayPathFunction · 0.85
formatNumberFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected