MCPcopy
hub / github.com/afar1/fieldtheory-cli / rebuildIndex

Function rebuildIndex

src/cli.ts:774–779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772 const program = new Command();
773
774 async function rebuildIndex(): Promise<number> {
775 process.stderr.write(' Building search index...\n');
776 const idx = await buildIndex();
777 process.stderr.write(` \u2713 ${idx.recordCount} bookmarks indexed (${idx.newRecords} new)\n`);
778 return idx.newRecords;
779 }
780
781 async function classifyNew(override?: string): Promise<void> {
782 const engine = await resolveEngine({ override });

Callers 1

buildCliFunction · 0.85

Calls 2

buildIndexFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected