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