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

Function readList

graph-ui/src/checklist/understanding-store.ts:61–72  ·  view source on GitHub ↗
(source: unknown)

Source from the content-addressed store, hash-verified

59}
60
61function readList(source: unknown): Record<string, string[]> {
62 if (typeof source !== 'object' || source === null || Array.isArray(source)) {
63 return {};
64 }
65 const out: Record<string, string[]> = {};
66 for (const [key, value] of Object.entries(source as Record<string, unknown>)) {
67 if (Array.isArray(value)) {
68 out[key] = value.filter((entry): entry is string => typeof entry === 'string');
69 }
70 }
71 return out;
72}
73
74/**
75 * The record of one project, or an empty one.

Callers 1

readUnderstandingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected