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

Function chatCandidateLabel

graph-ui/src/chat/chat-strings.ts:87–96  ·  view source on GitHub ↗
(
    name: string,
    filePath: string | undefined,
    line: number | undefined,
)

Source from the content-addressed store, hash-verified

85
86/** One candidate, as the list writes it: the name, the file, the line. */
87export function chatCandidateLabel(
88 name: string,
89 filePath: string | undefined,
90 line: number | undefined,
91): string {
92 const where = filePath === undefined || filePath.length === 0
93 ? 'no file in the index'
94 : line === undefined ? filePath : `${filePath}:${line}`;
95 return `${name} (${where})`;
96}
97
98/** The tooltip of a candidate. It names the act and not the thing. */
99export function chatCandidateTitle(name: string): string {

Callers 1

ChoiceListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected