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

Function readIndexJobs

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

Source from the content-addressed store, hash-verified

55
56/** The job table. Anything that is not an array of records reads as no jobs. */
57export function readIndexJobs(raw: unknown): IndexJob[] {
58 if (!Array.isArray(raw)) {
59 return [];
60 }
61 return raw.filter(isRecord).map((job) => ({
62 slot: optionalNumber(job['slot']) ?? -1,
63 status: readJobStatus(job['status']),
64 path: text(job['path']),
65 error: text(job['error']),
66 }));
67}
68
69export interface IndexStarted {
70 slot: number;

Callers 2

indexJobsMethod · 0.90

Calls 3

optionalNumberFunction · 0.85
readJobStatusFunction · 0.85
textFunction · 0.70

Tested by

no test coverage detected