Files
AX-Copilot-Codex/src/AxCopilot/Services/NotificationService.cs
lacvet 0336904258 AX Commander 비교본 런처 기능 대량 이식
변경 목적: Agent Compare 아래 비교본의 개발 문서와 런처 소스를 기준으로 현재 AX Commander에 빠져 있던 신규 런처 기능을 동일한 흐름으로 옮겨, 비교본 수준의 기능 폭을 현재 제품에 반영했습니다.

핵심 수정사항: 비교본의 신규 런처 핸들러 다수를 src/AxCopilot/Handlers로 이식하고 App.xaml.cs 등록 흐름에 연결했습니다. 빠른 링크, 파일 태그, 알림 센터, 포모도로, 파일 브라우저, 핫키 관리, OCR, 세션/스케줄/매크로, Git/정규식/네트워크/압축/해시/UUID/JWT/QR 등 AX Commander 기능을 추가했습니다.

핵심 수정사항: 신규 기능이 실제 동작하도록 AppSettings 확장, SchedulerService/FileTagService/NotificationCenterService/IconCacheService/UrlTemplateEngine/PomodoroService 추가, 배치 이름변경/세션/스케줄/매크로 편집 창 추가, NotificationService와 Symbols 보강, QR/OCR용 csproj 의존성과 Windows 타겟 프레임워크를 반영했습니다.

문서 반영: README.md와 docs/DEVELOPMENT.md에 비교본 기반 런처 기능 이식 이력과 검증 결과를 업데이트했습니다.

검증 결과: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\ 실행 기준 경고 0개, 오류 0개를 확인했습니다.
2026-04-05 00:59:45 +09:00

28 lines
1.0 KiB
C#

namespace AxCopilot.Services;
/// <summary>
/// 트레이 아이콘 풍선 알림을 핸들러/서비스에서 표시하기 위한 전달 서비스.
/// App.xaml.cs의 SetupTrayIcon 이후 Initialize()로 초기화됩니다.
/// </summary>
internal static class NotificationService
{
private static Action<string, string>? _showBalloon;
/// <summary>App.xaml.cs에서 NotifyIcon 연결 시 호출</summary>
public static void Initialize(Action<string, string> showBalloon)
=> _showBalloon = showBalloon;
/// <summary>트레이 풍선 알림을 표시합니다.</summary>
public static void Notify(string title, string message)
{
NotifyBalloonOnly(title, message);
NotificationCenterService.Record(title, message, NotificationType.Info);
}
internal static void NotifyBalloonOnly(string title, string message)
=> _showBalloon?.Invoke(title, message);
public static void LogOnly(string title, string message)
=> NotificationCenterService.Record(title, message, NotificationType.Info);
}