MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / parseStringArray

Function parseStringArray

packages/db/src/workspace-tasks.ts:170–177  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

168}
169
170function parseStringArray(json: string): string[] {
171 try {
172 const parsed = JSON.parse(json) as unknown;
173 return Array.isArray(parsed) ? parsed.filter((item): item is string => typeof item === "string") : [];
174 } catch {
175 return [];
176 }
177}

Callers 1

mapStoredTaskRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected