chore(telemetry): #7 closure — gate verification + .catch consistency + spec fix

- Add .catch(...) to telemetry.cleanupOldFiles fire-and-forget for consistency
  with backup.runDaily pattern (M1 from T10 code review).
- Mark Roadmap §3 #7 as completed (✓).
- Correct spec: tray:exportTelemetry was never an IPC channel — tray callbacks
  run in main process directly. Replace with "트레이 콜백 (main 내부)".

Closes v0.2.3 task 1 of 7. Next task: #4 휴지통 (migration v3).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
altair823
2026-05-01 17:37:00 +09:00
parent fe24ff577f
commit 5c97397cbe
2 changed files with 5 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ v0.2.2 ────────[ dogfood 동결, 병렬 진행 ]─────
각 항목 PR 범위 라인. 세부 결정 (decision-pending) 은 항목 시작 시 mini-brainstorm.
### #7 Telemetry skeleton (1번)
### #7 Telemetry skeleton (1번) ✓ 완료
**In:**
- `TelemetryService` (`src/main/services/TelemetryService.ts`):
@@ -86,7 +86,7 @@ v0.2.2 ────────[ dogfood 동결, 병렬 진행 ]─────
- 트레이 메뉴 "사용 로그 내보내기...":
- 폴더 다이얼로그 → `events.jsonl` (최근 14일 concat) + `stats.md` (집계 마크다운) zip
- `stats.md` 내용: 항목별 일자별 카운트 표 + 핵심 ratio (AI 성공률, ollama uptime%, recall opened/shown, expired batched/shown 등)
- IPC: `tray:exportTelemetry`
- 트레이 콜백 (main 내부 — 별도 IPC 채널 불필요)
- 단위 테스트: emit, rotation, privacy invariant 거부, stats 집계, export zip
**Out:** 자동 업로드 / 원격 telemetry (모두 로컬), 실시간 대시보드 UI, opt-out 토글 (로컬이라 불필요), 14일 보존 기간 사용자 설정