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

Function sectionVisible

graph-ui/src/twin/render-model.ts:433–438  ·  view source on GitHub ↗

True when the reader has asked for at least one of the lenses this section answers.

(name: string, facets: ReadonlySet<Facet>)

Source from the content-addressed store, hash-verified

431
432/** True when the reader has asked for at least one of the lenses this section answers. */
433function sectionVisible(name: string, facets: ReadonlySet<Facet>): boolean {
434 const owners = SECTION_FACETS[name];
435 // A section nobody claimed is shown: a new family should be visible by
436 // default rather than invisible until somebody remembers to map it.
437 return owners === undefined || owners.some(facet => facets.has(facet));
438}
439
440function labelsFor(terminology: TerminologyLevel): Readonly<Record<string, string>> {
441 return terminology === 'plain' ? SECTION_LABELS_PLAIN : SECTION_LABELS_TECHNICAL;

Callers 1

visibleSectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected