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

Function path

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

Source from the content-addressed store, hash-verified

216 };
217
218 const path = (node) => {
219 const parts = [];
220 let current = node;
221 for (let i = 0; i < 4 && current !== null && current !== document.body; i += 1) {
222 parts.unshift(identify(current));
223 current = current.parentElement;
224 }
225 return parts.join(' > ');
226 };
227
228 const ownText = (node) => {
229 let text = '';

Callers 1

PROBEFunction · 0.70

Calls 1

identifyFunction · 0.85

Tested by

no test coverage detected