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

Function moduleLabel

graph-ui/src/pseudocode/flow-model.ts:348–354  ·  view source on GitHub ↗
(node: FlowNode)

Source from the content-addressed store, hash-verified

346
347/** The lifeline one node is drawn on: its file, or its own name when it has no file. */
348export function moduleLabel(node: FlowNode): string {
349 const uri = node.ref.uri;
350 if (uri.length === 0) {
351 return sanitizeLabel(node.ref.name) || 'unknown';
352 }
353 return sanitizeLabel(baseNameOf(uri)) || sanitizeLabel(node.ref.name) || 'unknown';
354}
355
356/**
357 * Which arrow of the box one step lights up, or none.

Callers 1

flowSequenceFunction · 0.70

Calls 2

sanitizeLabelFunction · 0.85
baseNameOfFunction · 0.85

Tested by

no test coverage detected