| 1 | #nullable enable |
| 2 | |
| 3 | using CascadeIDE.Cockpit.Channels.EnvironmentReadiness; |
| 4 | using CascadeIDE.Contracts; |
| 5 | using CascadeIDE.Models; |
| 6 | |
| 7 | namespace CascadeIDE.Cockpit.ComputingUnits.EnvironmentReadiness; |
| 8 | |
| 9 | /// <summary> |
| 10 | /// CCU «Environment Readiness snapshot»: единая точка сборки строк готовности окружения (ADR 0023/0097). |
| 11 | /// Оркеструет построение снимка по входному контексту канала без привязки к ViewModel. |
| 12 | /// </summary> |
| 13 | [ComputingUnit] |
| 14 | public sealed class EnvironmentReadinessSnapshotUnit : ICockpitComputeUnit |
| 15 | { |
| 16 | public static EnvironmentReadinessSnapshotUnit Default { get; } = new(); |
| 17 | |
| 18 | private EnvironmentReadinessSnapshotUnit() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | public Task<IReadOnlyList<AnnunciatorLampItem>> BuildAsync(in EnvironmentReadinessChannelContext context) => |
| 23 | EnvironmentReadinessSnapshotBuilder.BuildAllRowsAsync( |
| 24 | context.Settings, |
| 25 | context.SolutionPath, |
| 26 | context.Lsp, |
| 27 | context.IsMcpStdioHost, |
| 28 | context.ActiveAiProvider, |
| 29 | context.CancellationToken); |
| 30 | } |
| 31 | |
View only · write via MCP/CIDE