1 write to OpenCode
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
39
OpenCode
= new OpenCodeAgentClient(ExecutionContext, Environment);
30 references to OpenCode
Aspire.Cli.Tests (30)
Agents\AgentConfigurationTestContext.cs (1)
40
Clients = [Copilot, ClaudeCode,
OpenCode
];
Agents\AgentConfigurationTests.cs (4)
295
var path = _context.
OpenCode
.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project);
299
await _context.
OpenCode
.UpdateIntegrationConfigAsync(
302
var (mcp, mcpPath) = await _context.
OpenCode
.ReadMcpConfigAsync(
304
_context.
OpenCode
.UpdateMcpConfig(mcp, mcpPath, configureServer: true, AgentConfigurationScope.Global);
Agents\LocalAspireSkillsTests.cs (5)
77
var result = Scan([_context.Copilot, _context.
OpenCode
]);
114
var result = Scan([_context.
OpenCode
]);
144
var result = Scan([_context.
OpenCode
]);
164
var result = Scan([_context.
OpenCode
]);
224
var result = LocalAspireSkills.Find(outside, _context.Project, [_context.
OpenCode
],
Agents\OpenCodeAgentClientTests.cs (19)
57
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, AgentConfigurationScope.Project);
84
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, AgentConfigurationScope.Project);
110
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, scope);
132
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, AgentConfigurationScope.Project);
147
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, AgentConfigurationScope.Project);
158
var result = await _context.ConfigureMcpAsync(_context.
OpenCode
, AgentConfigurationScope.Project);
174
var results = await _context.ConfigureIntegrationAsync(scope, [_context.
OpenCode
]).DefaultTimeout();
178
var repeated = await _context.ConfigureIntegrationAsync(scope, [_context.
OpenCode
]);
196
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
222
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
253
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
275
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
293
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
313
var results = await _context.ConfigureIntegrationAsync(scope, [_context.
OpenCode
]);
331
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [_context.
OpenCode
]);
351
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.
OpenCode
]);
356
Assert.Equal(_context.
OpenCode
.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project), result.TargetPath);
378
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.
OpenCode
]);
387
Assert.True(_context.
OpenCode
.HasIntegrationRegistration(_context.Project, AgentConfigurationScope.Project, TestContext.Current.CancellationToken));
Commands\AgentInitCommandTests.cs (1)
1313
var path = context.
OpenCode
.GetMcpConfigPath(scope, context.Project);