MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readIndexStarted

Function readIndexStarted

graph-ui/src/projects/projects-model.ts:75–78  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

73
74/** The acknowledgement of POST /api/index. */
75export function readIndexStarted(raw: unknown): IndexStarted {
76 const record = isRecord(raw) ? raw : {};
77 return { slot: optionalNumber(record['slot']) ?? -1, path: text(record['path']) };
78}
79
80/** True while at least one job is still running, which is when the panel keeps asking. */
81export function anyIndexing(jobs: readonly IndexJob[]): boolean {

Callers 2

startIndexMethod · 0.90

Calls 3

optionalNumberFunction · 0.85
isRecordFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected