csharpdeeb25a2 | 1 | using CommunityToolkit.Mvvm.Input; |
| 2 | using CascadeIDE.Features.Agent.Environment; |
| 3 | |
| 4 | namespace CascadeIDE.Features.Shell; |
| 5 | |
| 6 | /// <summary>Relay: уровень безопасности автономного агента (поле на <see cref="ViewModels.MainWindowViewModel"/>).</summary> |
| 7 | public sealed partial class ShellChromeViewModel |
| 8 | { |
| 9 | [RelayCommand] |
| 10 | private void SetSafetyObserve() => _host.SafetyLevel = AgentSafetyLevel.Observe; |
| 11 | |
| 12 | [RelayCommand] |
| 13 | private void SetSafetyConfirm() => _host.SafetyLevel = AgentSafetyLevel.Confirm; |
| 14 | |
| 15 | [RelayCommand] |
| 16 | private void SetSafetyAutonomous() => _host.SafetyLevel = AgentSafetyLevel.Autonomous; |
| 17 | } |
| 18 | |
View only · write via MCP/CIDE