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

Function buildCollabDetail

src/utils/threadItems.collab.ts:279–291  ·  view source on GitHub ↗
(
  sender: CollabAgentRef | undefined,
  receivers: CollabAgentRef[],
)

Source from the content-addressed store, hash-verified

277}
278
279function buildCollabDetail(
280 sender: CollabAgentRef | undefined,
281 receivers: CollabAgentRef[],
282) {
283 const detailParts = [sender ? `From ${formatCollabAgentLabel(sender)}` : ""]
284 .concat(
285 receivers.length > 0
286 ? `→ ${receivers.map((entry) => formatCollabAgentLabel(entry)).join(", ")}`
287 : "",
288 )
289 .filter(Boolean);
290 return detailParts.join(" ");
291}
292
293function buildCollabOutput(prompt: string, statuses: CollabAgentStatus[]) {
294 const promptText = prompt.trim();

Callers 2

parseCollabToolCallItemFunction · 0.85

Calls 1

formatCollabAgentLabelFunction · 0.70

Tested by

no test coverage detected