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

Function buildTwinViewModel

graph-ui/src/twin/render-model.ts:381–394  ·  view source on GitHub ↗
(ir: SemanticIR, presentation: ResolvedPresentation)

Source from the content-addressed store, hash-verified

379 * sentences that explain the emptiness.
380 */
381export function buildTwinViewModel(ir: SemanticIR, presentation: ResolvedPresentation): TwinViewModel {
382 switch (presentation.depth) {
383 case 0:
384 return narrative(ir, presentation);
385 case 1:
386 return junior(ir, presentation);
387 case 3:
388 return senior(ir, presentation);
389 case 4:
390 return architect(ir, presentation);
391 default:
392 return technical(ir, presentation);
393 }
394}
395
396/**
397 * The fields every level shares, so a new level cannot forget one.

Callers 4

TwinPanelFunction · 0.90
withGroupFunction · 0.90

Calls 5

narrativeFunction · 0.85
juniorFunction · 0.85
seniorFunction · 0.85
architectFunction · 0.85
technicalFunction · 0.85

Tested by 1

withGroupFunction · 0.72