MCPcopy Create free account
hub / github.com/cursor/plugins / visit

Function visit

orchestrate/skills/orchestrate/scripts/cli/util.ts:199–207  ·  view source on GitHub ↗
(agentId: string)

Source from the content-addressed store, hash-verified

197 const out: TreeVictim[] = [];
198 const seen = new Set<string>();
199 const visit = (agentId: string): void => {
200 if (seen.has(agentId)) return;
201 seen.add(agentId);
202 const directHit = victims.find(v => v.agentId === agentId);
203 if (directHit) out.push(directHit);
204 for (const child of childrenByParent.get(agentId) ?? []) {
205 visit(child.agentId);
206 }
207 };
208 visit(rootAgentId);
209 return out;
210}

Callers 1

filterVictimsToSubtreeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected