MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / node

Function node

dashboard/test/graph-explorer-state.test.mjs:10–19  ·  view source on GitHub ↗
(id, kind, filePath, extra = {})

Source from the content-addressed store, hash-verified

8const state = await importBundledModule(statePath);
9
10function node(id, kind, filePath, extra = {}) {
11 return {
12 id,
13 kind,
14 name: extra.name || id,
15 qualified_name: extra.qualified_name || id,
16 file_path: filePath,
17 ...extra,
18 };
19}
20
21function edge(source, target, kind = "calls", extra = {}) {
22 return { source, target, kind, ...extra };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected