MCPcopy
hub / github.com/Dimillian/CodexMonitor / parseCollabAgentRefs

Function parseCollabAgentRefs

src/utils/threadItems.collab.ts:39–50  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

37}
38
39function parseCollabAgentRefs(value: unknown) {
40 if (!value) {
41 return [];
42 }
43 if (Array.isArray(value)) {
44 return value
45 .map((entry) => parseCollabAgentRef(entry))
46 .filter((entry): entry is CollabAgentRef => Boolean(entry));
47 }
48 const single = parseCollabAgentRef(value);
49 return single ? [single] : [];
50}
51
52function mergeCollabAgentRefs(...lists: CollabAgentRef[][]) {
53 const byThreadId = new Map<string, CollabAgentRef>();

Callers 1

parseCollabToolCallItemFunction · 0.85

Calls 1

parseCollabAgentRefFunction · 0.85

Tested by

no test coverage detected