MCPcopy
hub / github.com/upstash/context7 / getSelectedAgents

Function getSelectedAgents

packages/cli/src/commands/remove.ts:91–100  ·  view source on GitHub ↗
(options: UninstallOptions)

Source from the content-addressed store, hash-verified

89}
90
91function getSelectedAgents(options: UninstallOptions): SetupAgent[] {
92 const agents: SetupAgent[] = [];
93 if (options.claude) agents.push("claude");
94 if (options.cursor) agents.push("cursor");
95 if (options.opencode) agents.push("opencode");
96 if (options.codex) agents.push("codex");
97 if (options.antigravity) agents.push("antigravity");
98 if (options.gemini) agents.push("gemini");
99 return agents;
100}
101
102async function promptAgents(detected: SetupAgent[]): Promise<SetupAgent[] | null> {
103 const choices = detected.map((name) => ({

Callers 1

resolveAgentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected