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

Function flowHighlightOf

graph-ui/src/pseudocode/flow-model.ts:201–211  ·  view source on GitHub ↗
(line: PseudocodeLine)

Source from the content-addressed store, hash-verified

199 * highlight; the editor still follows it, which is where that fact lives.
200 */
201export function flowHighlightOf(line: PseudocodeLine): FlowHighlight {
202 if (line.kind !== 'step') {
203 return {};
204 }
205 // Sanitised exactly as the builder sanitises them, so what is compared is
206 // the string the drawing actually holds rather than the one the fact did.
207 return {
208 participant: line.targetFile === undefined ? undefined : sanitizeLabel(baseNameOf(line.targetFile)),
209 message: line.targetName === undefined ? undefined : sanitizeLabel(line.targetName),
210 };
211}
212
213/** The last path segment of a URI, which is what a lifeline is labelled with. */
214export function baseNameOf(uri: string): string {

Callers 2

flow-model.test.tsFile · 0.90
flowArrowForFunction · 0.85

Calls 2

sanitizeLabelFunction · 0.85
baseNameOfFunction · 0.85

Tested by

no test coverage detected