MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildMemoryDiagnostics

Function buildMemoryDiagnostics

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

Source from the content-addressed store, hash-verified

264 }];
265}
266export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> {
267 const files = await getMemoryFiles();
268 const largeFiles = getLargeMemoryFiles(files);
269 const diagnostics: Diagnostic[] = [];
270 largeFiles.forEach(file => {
271 const displayPath = getDisplayPath(file.path);
272 diagnostics.push(`Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`);
273 });
274 return diagnostics;
275}
276export function buildSettingSourcesProperties(): Property[] {
277 const enabledSources = getEnabledSettingSources();
278

Callers 1

buildDiagnosticsFunction · 0.85

Calls 3

getLargeMemoryFilesFunction · 0.85
getDisplayPathFunction · 0.85
formatNumberFunction · 0.85

Tested by

no test coverage detected