MCPcopy Create free account
hub / github.com/Alfredredbird/CyberKelp / ensureAllNotesLoaded

Function ensureAllNotesLoaded

script.js:348–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346// --- Search ---------------------------------------------------
347
348async function ensureAllNotesLoaded() {
349 await Promise.all(NOTES.map(async (note) => {
350 if (!noteCache.has(note.path)) {
351 const res = await fetch(note.path);
352 if (!res.ok) return;
353 noteCache.set(note.path, await res.text());
354 }
355 }));
356}
357
358async function handleSearchInput() {
359 const q = searchInput.value.trim().toLowerCase();

Callers 2

handleSearchInputFunction · 0.85
buildGraphDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected