컨텍스트 카드 모델별 사용량 가시화 보강
Some checks failed
Release Gate / gate (push) Has been cancelled

- AX Agent 하단 컨텍스트 카드에 현재 서비스·모델 기준 오늘 사용량을 함께 표시하고 hover에서 현재 모델 usage·compact 이후 usage·오늘 상위 모델 usage를 확인할 수 있게 함

- UsageStatisticsService에 오늘 통계 스냅샷 API를 추가하고 long-safe 토큰 포맷 경로를 넣어 per-model 집계가 커져도 K/M 단위로 안정적으로 표시되게 함

- README.md와 docs/DEVELOPMENT.md에 2026-04-05 00:34 (KST) 기준 이력을 반영함

- 검증: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\ / 경고 0 / 오류 0
This commit is contained in:
2026-04-05 00:22:56 +09:00
parent d40b80ee96
commit f9fd144bd0
4 changed files with 102 additions and 1 deletions

View File

@@ -141,6 +141,16 @@ internal static class UsageStatisticsService
return result;
}
/// <summary>오늘자 통계 스냅샷을 반환합니다.</summary>
public static DailyUsageStats GetTodaySnapshot()
{
EnsureInitialized();
lock (_lock)
{
return CloneToday();
}
}
// ─── 내부 ────────────────────────────────────────────────────────────────
private static void EnsureInitialized()