MCPcopy Create free account
hub / github.com/CatMuse/HiNote / replace

Method replace

src/services/highlight/HighlightIndexStore.ts:31–37  ·  view source on GitHub ↗
(wordToFiles: Map<string, Set<string>>, fileToHighlights: Map<string, HighlightInfo[]>)

Source from the content-addressed store, hash-verified

29 }
30
31 replace(wordToFiles: Map<string, Set<string>>, fileToHighlights: Map<string, HighlightInfo[]>): void {
32 this.index = {
33 wordToFiles,
34 fileToHighlights,
35 lastUpdated: Date.now()
36 };
37 }
38
39 ensureInitialized(): void {
40 if (this.index.lastUpdated !== 0) return;

Callers 15

generateSyncMethod · 0.80
renderFileTitleMethod · 0.80
escapeRegExpMethod · 0.80
removeHighlightFormatMethod · 0.80
toSafeFileNameMethod · 0.80
fromSafeFileNameMethod · 0.80
displayMethod · 0.80
displayPromptListMethod · 0.80
shouldExcludeMethod · 0.80
normalizeContextMethod · 0.80
escapeRegExpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected