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

Function overviewDrafts

graph-ui/src/compiler/card-compiler.ts:436–452  ·  view source on GitHub ↗
(packet: FactPacket, rank: number)

Source from the content-addressed store, hash-verified

434}
435
436function overviewDrafts(packet: FactPacket, rank: number): Draft[] {
437 const facts = packet.overview;
438 if (facts === undefined) {
439 return [];
440 }
441 const groups = facts.groups.map((group) => `${group.name} (${group.symbolCount})`);
442 return [{
443 kind: 'overview',
444 lines: [
445 `The project ${facts.projectName ?? ''} holds ${facts.totalSymbols} symbols and `
446 + `${facts.totalRelations} relations across ${facts.fileCount} indexed files.`,
447 `Languages: ${listOf(facts.languages)}.`,
448 groups.length === 0 ? 'The index names no groups.' : `Groups: ${listOf(groups)}.`,
449 ],
450 rank,
451 }];
452}
453
454function compareDrafts(packet: FactPacket, rank: number): Draft[] {
455 const other = packet.compareWith;

Callers 1

compileCardsFunction · 0.85

Calls 1

listOfFunction · 0.85

Tested by

no test coverage detected