csharp4405de34 | 1 | using CommunityToolkit.Mvvm.ComponentModel; |
| 2 | |
| 3 | using CascadeIDE.Features.Agent.Environment; |
| 4 | |
| 5 | namespace CascadeIDE.ViewModels; |
| 6 | |
| 7 | /// <summary>Элемент очереди задач в Power mode (уровень безопасности и состояние).</summary> |
| 8 | public sealed partial class PowerTaskQueueItemViewModel : ObservableObject |
| 9 | { |
| 10 | [ObservableProperty] |
| 11 | private string _title = ""; |
| 12 | |
| 13 | /// <summary>safety.observe / safety.confirm / safety.autonomous</summary> |
| 14 | [ObservableProperty] |
| 15 | private string _safetyLevel = AgentSafetyLevel.Confirm; |
| 16 | |
| 17 | /// <summary>Pending, Queued, Paused, Running и т.д.</summary> |
| 18 | [ObservableProperty] |
| 19 | private string _state = "Pending"; |
| 20 | |
| 21 | public string DisplayLine => $"{Title} [{SafetyLevel}] {State}"; |
| 22 | } |
| 23 | |
View only · write via MCP/CIDE