MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseNameList

Function parseNameList

src/index.ts:169–177  ·  view source on GitHub ↗

A JSON list of names from metadata, or null when absent or unreadable.

(value: string | null)

Source from the content-addressed store, hash-verified

167
168/** A JSON list of names from metadata, or null when absent or unreadable. */
169function parseNameList(value: string | null): string[] | null {
170 if (!value) return null;
171 try {
172 const parsed: unknown = JSON.parse(value);
173 return Array.isArray(parsed) && parsed.every((n) => typeof n === 'string') ? parsed : null;
174 } catch {
175 return null;
176 }
177}
178
179/**
180 * CODEGRAPH_SYNTH_MIN_INTERVAL_MS: the least time between two repo-wide

Callers 2

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected