Auto commit Sat Mar 21 11:01:02 PM CDT 2026
This commit is contained in:
@@ -3,7 +3,6 @@ package com.mindmachine.mvp.domain
|
||||
enum class VisualPattern { FLASH, PULSE }
|
||||
enum class SessionMode { AUDIO_VISUAL, AUDIO_ONLY, VISUAL_ONLY }
|
||||
enum class RuntimeState { IDLE, COUNTDOWN, RUNNING, PAUSED, INTERRUPTED, COMPLETED, STOPPED, ERROR }
|
||||
enum class CountdownPreference(val seconds: Int) { OFF(0), FIVE(5), TEN(10) }
|
||||
|
||||
data class SessionPreset(
|
||||
val id: String,
|
||||
@@ -34,28 +33,54 @@ data class SessionConfig(
|
||||
data class AppSettings(
|
||||
val safetyAcknowledged: Boolean = false,
|
||||
val safetyAcknowledgedVersion: Int = 0,
|
||||
val countdownPreference: CountdownPreference = CountdownPreference.FIVE,
|
||||
val countdownSeconds: Int = 5,
|
||||
val defaultModePreference: SessionMode = SessionMode.AUDIO_VISUAL,
|
||||
val showHolderGuidanceBeforeSession: Boolean = false,
|
||||
val showImmersiveProgressBar: Boolean = true,
|
||||
val lastPresetId: String? = null,
|
||||
)
|
||||
|
||||
object Presets {
|
||||
val builtIn = listOf(
|
||||
SessionPreset(
|
||||
"relax", "Relax", "Gentle pulse, slower beat", 10 * 60,
|
||||
VisualPattern.PULSE, 167, 60, 200f, 6f,
|
||||
"deep_release", "Deep Release", "Slow descent into calm with a soft ending", 18 * 60,
|
||||
VisualPattern.PULSE, 260, 52, 180f, 4.5f,
|
||||
"Stop if discomfort occurs.", 1
|
||||
),
|
||||
SessionPreset(
|
||||
"focus", "Focus", "Steady flash, conservative alert beat", 15 * 60,
|
||||
VisualPattern.FLASH, 100, 65, 220f, 10f,
|
||||
"laser_focus", "Laser Focus", "Progressive ramp to sharp attention and steady drive", 16 * 60,
|
||||
VisualPattern.FLASH, 120, 66, 220f, 12f,
|
||||
"Use in a safe seated place only.", 2
|
||||
),
|
||||
SessionPreset(
|
||||
"sleep", "Sleep Prep", "Slow pulse, low intensity", 20 * 60,
|
||||
VisualPattern.PULSE, 333, 45, 180f, 3f,
|
||||
"Do not use while doing other activities.", 3
|
||||
"creative_drift", "Creative Drift", "Alternating intensity waves for idea exploration", 22 * 60,
|
||||
VisualPattern.PULSE, 190, 58, 205f, 8f,
|
||||
"Use only in a safe resting environment.", 3
|
||||
),
|
||||
SessionPreset(
|
||||
"reset_breath", "Reset Breath", "Gentle rhythmic arcs designed for breathing cadence", 12 * 60,
|
||||
VisualPattern.PULSE, 300, 46, 170f, 5.5f,
|
||||
"Do not use while driving or operating machinery.", 4
|
||||
),
|
||||
SessionPreset(
|
||||
"night_rampdown", "Night Rampdown", "Long taper from busy mind to pre-sleep stillness", 28 * 60,
|
||||
VisualPattern.PULSE, 360, 40, 160f, 2.8f,
|
||||
"Do not use while doing other activities.", 5
|
||||
),
|
||||
SessionPreset(
|
||||
"power_warmup", "Power Warmup", "Short energizing ladder for pre-work momentum", 9 * 60,
|
||||
VisualPattern.FLASH, 95, 68, 245f, 14f,
|
||||
"Use in a safe seated place only.", 6
|
||||
),
|
||||
SessionPreset(
|
||||
"body_scan", "Body Scan", "Balanced mid-tempo sweep with a centered finish", 20 * 60,
|
||||
VisualPattern.PULSE, 210, 50, 190f, 6.8f,
|
||||
"Stop immediately for dizziness or discomfort.", 7
|
||||
),
|
||||
SessionPreset(
|
||||
"storm_to_still", "Storm to Still", "Starts active, then settles into deep quiet", 24 * 60,
|
||||
VisualPattern.FLASH, 150, 61, 215f, 9f,
|
||||
"Use only in a safe resting environment.", 8
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user