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

Function identify

graph-ui/tools/lib/readability.mjs:209–216  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

207 const excluded = (node) => exclusions.some((selector) => node.closest(selector) !== null);
208
209 const identify = (node) => {
210 const testId = node.getAttribute('data-testid');
211 if (testId !== null && testId.length > 0) {
212 return `[${testId}]`;
213 }
214 const classes = (node.getAttribute('class') ?? '').split(/\s+/).filter(Boolean);
215 return classes.length > 0 ? `.${classes[0]}` : node.tagName.toLowerCase();
216 };
217
218 const path = (node) => {
219 const parts = [];

Callers 3

pathFunction · 0.85
showsMoreFunction · 0.85
scrollRegionsToEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected