3 writes to Id
aspire (3)
Agents\AgentClient.cs (3)
23Id = "copilot", 46Id = "claude", 58Id = "opencode",
12 references to Id
aspire (7)
Agents\AgentClient.cs (1)
126public override string ToString() => Id;
Commands\AgentInitCommand.cs (6)
94var supportedClients = string.Join(",", AgentClient.All.Select(static client => client.Id)); 110var selected = ConsoleInteractionService.MatchChoices(value, AgentClient.All, static client => client.Id); 123[.. AgentClient.All.Select(static client => new CompletionItem(client.Id)), 266var matchedClients = ConsoleInteractionService.MatchChoices(requestedAgents, AgentClient.All, static client => client.Id); 270requestedAgents, string.Join(",", AgentClient.All.Select(static client => client.Id)), 299binding: agentsBinding.WithDefault(string.Join(",", defaultClients.Select(static client => client.Id))),
Aspire.Cli.Tests (5)
Commands\AgentInitClientSelectionTests.cs (5)
172Assert.Equal(expectedClients.Split(','), agentPrompt.PreSelected.Cast<AgentClient>().Select(client => client.Id)); 177var defaults = AgentClient.All.Where(client => expectedClients.Split(',').Contains(client.Id)).ToArray(); 1041var client = AgentClient.All.Single(client => client.Id == clientId); 1094var client = AgentClient.All.Single(client => client.Id == clientId); 1127var client = AgentClient.All.Single(client => client.Id == clientId);