2 instantiations of CopilotAgentClient
Aspire.Cli.Tests (2)
Agents\AgentConfigurationTestContext.cs (1)
40
Copilot = new
CopilotAgentClient
(ExecutionContext, Environment, NullLogger<CopilotAgentClient>.Instance);
Agents\TelemetryHookConfiguratorTests.cs (1)
427
new
CopilotAgentClient
(executionContext, environment, NullLogger<CopilotAgentClient>.Instance),
21 references to CopilotAgentClient
aspire (5)
Agents\AspireSkills\LocalAspireSkills.cs (2)
25
private static readonly string[] s_universalSkillOwners = [
CopilotAgentClient
.ClientId, OpenCodeAgentClient.ClientId];
32
(Path.Combine(".github", "skills"), [
CopilotAgentClient
.ClientId]),
Agents\Copilot\CopilotAgentClient.cs (1)
14
CliExecutionContext context, IEnvironment environment, ILogger<
CopilotAgentClient
> logger)
Commands\AgentInitCommand.cs (1)
372
defaultClients = [_clients.Single(client => string.Equals(client.Id,
CopilotAgentClient
.ClientId, StringComparisons.AgentClientId))];
Program.cs (1)
628
builder.Services.AddSingleton<IAgentClient,
CopilotAgentClient
>();
Aspire.Cli.Tests (16)
Agents\AgentConfigurationTestContext.cs (1)
40
Copilot = new CopilotAgentClient(ExecutionContext, Environment, NullLogger<
CopilotAgentClient
>.Instance);
Agents\AgentTelemetryHookTests.cs (1)
354
Regex.IsMatch(toolName, $"^(?:{
CopilotAgentClient
.TelemetryHookMatcher})$", RegexOptions.ECMAScript);
Agents\TelemetryHookConfiguratorTests.cs (11)
25
var result = await configurator.ConfigureAsync([
CopilotAgentClient
.ClientId], CancellationToken.None).DefaultTimeout();
27
Assert.Equal([(
CopilotAgentClient
.ClientId, TelemetryHookStatus.Configured)], GetOutcomes(result));
37
Assert.Equal(
CopilotAgentClient
.TelemetryHookMatcher, (string)entry["matcher"]!);
53
[
CopilotAgentClient
.ClientId, ClaudeCodeAgentClient.ClientId, OpenCodeAgentClient.ClientId],
57
[(
CopilotAgentClient
.ClientId, TelemetryHookStatus.Configured), (ClaudeCodeAgentClient.ClientId, TelemetryHookStatus.Configured)],
76
[
CopilotAgentClient
.ClientId, ClaudeCodeAgentClient.ClientId],
80
[(
CopilotAgentClient
.ClientId, TelemetryHookStatus.WriteFailed), (ClaudeCodeAgentClient.ClientId, TelemetryHookStatus.Configured)],
97
await configurator.ConfigureAsync([
CopilotAgentClient
.ClientId], CancellationToken.None).DefaultTimeout();
241
? [
CopilotAgentClient
.ClientId, ClaudeCodeAgentClient.ClientId]
246
? [(
CopilotAgentClient
.ClientId, TelemetryHookStatus.Configured), (ClaudeCodeAgentClient.ClientId, TelemetryHookStatus.MalformedConfig)]
427
new CopilotAgentClient(executionContext, environment, NullLogger<
CopilotAgentClient
>.Instance),
Commands\AgentInitCommandTests.cs (1)
1384
Assert.Equal([
CopilotAgentClient
.ClientId], hooks.SelectedClientIds);
Commands\InitCommandTests.cs (1)
1108
.Single(client => string.Equals(client.Id,
CopilotAgentClient
.ClientId, StringComparisons.AgentClientId));
Utils\CliTestHelper.cs (1)
200
services.AddSingleton<IAgentClient,
CopilotAgentClient
>();