// // DebugSeed.swift // Keging // // 검증용 런치 인자 (DEBUG 전용) — CLAUDE.md §14 // -seedStats: 지난 35일 결정적 가짜 기록으로 교체 (통계 화면 QA) // #if DEBUG import Foundation @MainActor enum DebugSeed { static func applyLaunchArguments() { if CommandLine.arguments.contains("-seedStats") { seedStats() } // 완주 경로 검증용 초단축 세팅 (수축 1초·이완 1초·2회) if CommandLine.arguments.contains("-quickConfig") { SettingsStore.shared.config = WorkoutConfig(contractSeconds: 1, relaxSeconds: 1, reps: 2) } } private static func seedStats() { let calendar = Calendar.current let today = calendar.startOfDay(for: Date()) var records: [SessionRecord] = [] for dayOffset in 0..<35 { guard let day = calendar.date(byAdding: .day, value: -dayOffset, to: today) else { continue } let sets = (dayOffset * 7 + 3) % 4 // 0~3세트 결정적 패턴 for index in 0..