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

Function parseStringArray

packages/db/src/workspace-channels.ts:136–143  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

134}
135
136function parseStringArray(json: string): string[] {
137 try {
138 const parsed = JSON.parse(json) as unknown;
139 return Array.isArray(parsed) ? parsed.filter((item): item is string => typeof item === "string") : [];
140 } catch {
141 return [];
142 }
143}

Callers 1

mapStoredChannelRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected