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

Function joinNames

graph-ui/src/twin/strings.ts:527–535  ·  view source on GitHub ↗
(names: readonly string[])

Source from the content-addressed store, hash-verified

525
526/** A short English list that never hides its last member. */
527export function joinNames(names: readonly string[]): string {
528 if (names.length <= 1) {
529 return names[0] ?? '';
530 }
531 if (names.length === 2) {
532 return `${names[0]} and ${names[1]}`;
533 }
534 return `${names.slice(0, -1).join(', ')}, and ${names[names.length - 1]}`;
535}
536
537/** Lead-in to the clickable names. The only identifiers the narrative depth shows. */
538export const PROSE_CHIPS_LEAD = 'The parts it leans on, in the order they come up:';

Callers 5

overviewClausesFunction · 0.90
contextLinesFunction · 0.90
proseCallsFunction · 0.85
proseReadsFunction · 0.85
proseThrowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected