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

Function top

graph-ui/src/browser-ai/workflow-facts.ts:130–130  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

128 if (!lines.length) return undefined;
129 const level = Math.min(...lines.map(line => line.keyIndent));
130 const top = (key: string) => lines.findIndex(line => line.keyIndent === level && !line.dash && line.key === key);
131 const on = top('on'), jobs = top('jobs'), name = top('name');
132 if (on < 0 || jobs < 0) return undefined;
133 const triggers = lines[on].value ? flow(lines[on].value).map(event => ({ event })) : children(lines, on).flatMap(index => {

Callers 1

workflowFactsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected