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