MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readability

Function readability

graph-ui/tools/smoke-w7c.mjs:553–571  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

551 await mkdir(OUT_DIR, { recursive: true });
552
553 const readability = async (name) => {
554 const top = await measureReadability(page, READABILITY_EXCLUSIONS);
555 const scrolled = await scrollRegionsToEnd(page, READABILITY_EXCLUSIONS);
556 await page.waitForTimeout(200);
557 const bottom = await measureReadability(page, READABILITY_EXCLUSIONS);
558 await resetScroll(page, READABILITY_EXCLUSIONS);
559 extras.readability.push({
560 name,
561 scrolledRegions: scrolled.length,
562 top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped },
563 bottom: {
564 candidates: bottom.candidates,
565 overlaps: bottom.overlaps,
566 clipped: bottom.clipped,
567 },
568 });
569 report.overlapViolations += top.overlaps.length + bottom.overlaps.length;
570 report.clippingViolations += top.clipped.length + bottom.clipped.length;
571 };
572
573 await openApp(page, origin);
574

Callers 1

mainFunction · 0.70

Calls 4

measureReadabilityFunction · 0.90
scrollRegionsToEndFunction · 0.90
resetScrollFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected