csharpdeeb25a2 | 1 | #nullable enable |
| 2 | |
| 3 | using CascadeIDE.Features.Chat; |
| 4 | |
| 5 | namespace CascadeIDE.Features.Cockpit; |
| 6 | |
| 7 | /// <summary>Сессия Cockpit Command Line (ADR 0138). Буфер CCL отделён от composer.</summary> |
| 8 | public interface ICockpitCommandLineSession |
| 9 | { |
| 10 | bool IsOpen { get; } |
| 11 | |
| 12 | CockpitCommandLineHostKind ActiveHost { get; } |
| 13 | |
| 14 | string BufferText { get; set; } |
| 15 | |
| 16 | int CaretIndex { get; set; } |
| 17 | |
| 18 | string? PreviewSummary { get; } |
| 19 | |
| 20 | SlashCommandPreviewKind PreviewKind { get; } |
| 21 | |
| 22 | /// <summary>Текст для ToolTip / screen reader, когда pill не несёт полное сообщение.</summary> |
| 23 | string? PreviewAccessibilityToolTip { get; } |
| 24 | |
| 25 | void Open(CockpitCommandLineHostKind? host = null, string initialText = "/"); |
| 26 | |
| 27 | void Close(); |
| 28 | |
| 29 | void RefreshPreview(); |
| 30 | |
| 31 | Task<CockpitCommandLineCommitResult> TryCommitAsync(CancellationToken cancellationToken = default); |
| 32 | } |
| 33 | |
View only · write via MCP/CIDE