MCPcopy Index your code
hub / github.com/modem-dev/hunk / sectionGeometryCacheSlot

Function sectionGeometryCacheSlot

src/ui/diff/diffSectionGeometry.ts:112–114  ·  view source on GitHub ↗

Resolve which bounded per-file cache slot owns one geometry variant.

(visibleAgentNotes: VisibleAgentNote[])

Source from the content-addressed store, hash-verified

110
111/** Resolve which bounded per-file cache slot owns one geometry variant. */
112function sectionGeometryCacheSlot(visibleAgentNotes: VisibleAgentNote[]) {
113 return visibleAgentNotes.length > 0 ? "notes" : "base";
114}
115
116/** Read one cached geometry entry when the exact active variant is still retained. */
117function getCachedSectionGeometry(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected