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

Function lastSegment

graph-ui/src/tours/entry-walk.ts:69–74  ·  view source on GitHub ↗

The display name of a qualified name, for a sentence that names a caller.

(qualifiedName: string | undefined)

Source from the content-addressed store, hash-verified

67
68/** The display name of a qualified name, for a sentence that names a caller. */
69function lastSegment(qualifiedName: string | undefined): string {
70 if (qualifiedName === undefined || qualifiedName.length === 0) {
71 return 'the previous step';
72 }
73 return qualifiedName.split('.').pop() ?? qualifiedName;
74}
75
76/**
77 * The forward walk over one closure, as a tour document.

Callers 1

entryWalkTourFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected