1 write to OpenCode
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
42
OpenCode
= new OpenCodeAgentClient(ExecutionContext, Environment);
30 references to OpenCode
Aspire.Cli.Tests (30)
Agents\AgentConfigurationTestContext.cs (1)
43
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\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, _context.Sources));
Agents\SkillSourceTests.cs (2)
211
context.
OpenCode
.GetIntegrationConfigPath(scope, context.Project),
424
context.
OpenCode
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project), """{"skills":[]}""");
Commands\AgentInitCommandTests.cs (3)
934
context.
OpenCode
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project), config.ToJsonString());
1141
IAgentClient client = agent == "copilot" ? context.Copilot : context.
OpenCode
;
1366
var path = context.
OpenCode
.GetMcpConfigPath(scope, context.Project);
Commands\ConfigSourceCommandTests.cs (1)
271
_ => context.
OpenCode