MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / cliNode

Function cliNode

src/bin/codegraph.ts:436–438  ·  view source on GitHub ↗

Compact node shape retained by the CLI's existing JSON lists.

(node: Node)

Source from the content-addressed store, hash-verified

434
435/** Compact node shape retained by the CLI's existing JSON lists. */
436function cliNode(node: Node) {
437 return { name: node.name, kind: node.kind, filePath: node.filePath, startLine: node.startLine };
438}
439
440/** Call-site lines `codegraph callers` prints for one caller; `--json` lists them all. */
441const CLI_CALL_SITES_SHOWN = 10;

Callers 3

cliDefinitionFunction · 0.85
rowFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected