MCPcopy Create free account
hub / github.com/SamuelZ12/longcut / ensureTranscriptIndex

Function ensureTranscriptIndex

lib/topic-utils.ts:294–300  ·  view source on GitHub ↗
(
  existingIndex: TranscriptIndex | null,
  transcript: TranscriptSegment[],
)

Source from the content-addressed store, hash-verified

292}
293
294function ensureTranscriptIndex(
295 existingIndex: TranscriptIndex | null,
296 transcript: TranscriptSegment[],
297): TranscriptIndex {
298 if (existingIndex) return existingIndex;
299 return buildTranscriptIndex(transcript);
300}
301
302export function hydrateTopicsWithTranscript(
303 topics: Topic[] | null | undefined,

Callers 1

Calls 1

buildTranscriptIndexFunction · 0.90

Tested by

no test coverage detected