MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / parseAliases

Function parseAliases

packages/core/src/query/member-ops.ts:12–21  ·  view source on GitHub ↗
(raw: string | null)

Source from the content-addressed store, hash-verified

10// ==================== Helpers ====================
11
12function parseAliases(raw: string | null): string[] {
13 if (!raw) return []
14 try {
15 const parsed = JSON.parse(raw)
16 if (!Array.isArray(parsed)) return []
17 return parsed.filter((item): item is string => typeof item === 'string' && item.trim().length > 0)
18 } catch {
19 return []
20 }
21}
22
23// ==================== Public API ====================
24

Callers 1

mergeMembersFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected