using System.Windows.Media; using AxCopilot.Services; using AxCopilot.Services.Agent; namespace AxCopilot.Views; public partial class ChatWindow { private bool IsDebugTranscriptMode() => string.Equals(_settings.Settings.Llm.AgentLogLevel, "debug", StringComparison.OrdinalIgnoreCase); private string GetTranscriptBadgeLabel(AgentEvent evt) => AgentTranscriptDisplayCatalog.GetEventBadgeLabel(evt); private string GetTranscriptTaskCategory(TaskRunStore.TaskRun task) => AgentTranscriptDisplayCatalog.GetTaskCategoryLabel(task.Kind, task.Title); private string GetTranscriptDisplayName(string? rawName, bool slashPrefix = false) => AgentTranscriptDisplayCatalog.GetDisplayName(rawName, slashPrefix); private string GetTranscriptEventSummary(AgentEvent evt, string displayName) => AgentTranscriptDisplayCatalog.BuildEventSummary(evt, displayName); private bool ShouldIncludeRecentTaskSummary(IReadOnlyCollection activeTasks) => IsDebugTranscriptMode() || activeTasks.Count == 0; }