Skip to content

Source map

Reference. One line per file across the four SPM targets plus the host app. Maintained by the human; expect drift between releases - check the commit dates if a row looks suspicious.

FileModuleRole
ReactionBus.swiftYameteCoreActor: multi-subscriber fan-out, pre-fan-out enricher, 500 ms timeout fallback
Reaction.swiftYameteCoreReaction enum (impact + 31 event cases), ReactionKind, FusedImpact, sensitivity gate math
FiredReaction.swiftYameteCoreEnriched reaction: soundURL, clipDuration, faceIndices, publishedAt
ReactionsConfig.swiftYameteCorePer-event synthesized intensities, debounce windows, bus buffer depth, LED PWM constants
Constants.swiftYameteCoreDetection parameter ranges, hardware constants
Defaults.swiftYameteCoreFactory default values for all thresholds and timing
Domain.swiftYameteCoreVec3, SensorID, ImpactTier enum, OnceCleanup, responder protocols
Envelope.swiftYameteCoreShared LED/flash animation envelope: attack, hold, decay timing from clipDuration + intensity
SignalProcessing.swiftYameteCoreHighPassFilter, LowPassFilter (first-order IIR, 3-axis)
Logging.swiftYameteCoreAppLog dual-sink (os.Logger + file), 24-hour retention
VisualResponseMode.swiftYameteCoreVisualResponseMode enum (off / overlay / notification) for legacy compat
SensorAdapter.swiftSensorKitSensorSource and EventSource protocols, SensorImpact, SensorError
ImpactDetection.swiftSensorKitImpactFusion: fan-in, consensus gate, rearm, sensitivity gate, publishes Reaction.impact
ImpactDetector.swiftSensorKitPer-sensor 6-gate pipeline: warmup, spike, rise, crest, confirm, intensity
AccelerometerReader.swiftSensorKitBMI286 HID reader, bandpass filters, ImpactDetector, watchdog
MicrophoneAdapter.swiftSensorKitAVAudioEngine tap, DC-block filter, ImpactDetector
HeadphoneMotionAdapter.swiftSensorKitCMHeadphoneMotionManager, connection probe, ImpactDetector
EventSources.swiftSensorKitOriginal infrastructure EventSource implementations: USBSource, PowerSource, AudioPeripheralSource, BluetoothSource, ThunderboltSource, DisplayHotplugSource, SleepWakeSource
AudioPlayer.swiftResponseKitSound pool, intensity-based clip selection (peekSound), NSSound multi-device playback
ScreenFlash.swiftResponseKitBorderless overlay windows, window pool, per-screen face rendering, animated envelope
LEDFlash.swiftResponseKitCaps Lock LED PWM (IOKit HID), keyboard brightness spring oscillation (CoreBrightness), crash-recovery sentinel
NotificationResponder.swiftResponseKitUNUserNotificationCenter, tier phrases, 40-locale resolution
FaceLibrary.swiftResponseKitShared singleton face image cache, selectIndices() dedup scoring for enricher
FaceRenderer.swiftResponseKitSVG template loader, placeholder resolution, light/dark palette
AudioDevice.swiftResponseKitCore Audio device enumeration, UID resolution, change notifications
OutputConfig.swiftResponseKitAudioOutputConfig, FlashOutputConfig, LEDOutputConfig, NotificationOutputConfig, OutputConfigProvider protocol
Yamete.swiftYameteAppOrchestrator: owns bus, all sources, all outputs, lifecycle wiring, settings observation
SettingsStore.swiftYameteApp@Observable UserDefaults persistence, all detection/response params, validation, OutputConfigProvider
MenuBarFace.swiftYameteAppBus subscriber: impact-only face swap in NSStatusItem, daily impact counter
StatusBarController.swiftYameteAppNSStatusItem ownership, menu bar icon and popover management
EventSettings.swiftYameteAppEventSourceDefaults, ReactionToggleMatrix for per-output per-reaction toggle persistence
AppleSPUDevice.swiftSensorKitRef-counted broker for the Apple Silicon SPU HID handle: accel, gyro, ALS share one open device, decode their own bytes from the same input report, three-phase teardown when the last subscriber releases
GyroscopeSource.swiftSensorKitSPU HID usage 9 subscriber, GyroDetector pipeline, deg/s magnitude. App Store builds gate availability on _last_event_timestamp activity probe via dispatchGyro.
GyroDetector.swiftSensorKitSix-gate consensus pipeline tuned for gyroscope rotational spikes
LidAngleSource.swiftSensorKitOwns its own IOHIDManager matching the dedicated lid HID device (Vendor 0x05AC / Product 0x8104 / UsagePage 0x0020 / Usage 0x008A). Polls Feature Report 1 at 30 Hz, decodes UInt16 LE bytes [1..2] as whole degrees, feeds the state machine. NOT on the SPU broker.
LidAngleStateMachine.swiftSensorKitclosed/opening/open/closing transitions, slam-rate gate, EMA-smoothed Δangle/Δt
AmbientLightSource.swiftSensorKitSPU HID usage 5 subscriber, two-second ring buffer + step detector. App Store builds gate availability on _last_event_timestamp activity probe via dispatchAls.
AmbientLightDetector.swiftSensorKitStep gates (lights flipped, sensor covered) with separate percent + floor/ceiling thresholds
ThermalSource.swiftSensorKitNSProcessInfo.thermalStateDidChangeNotification observer, cold-start suppressed, per-state dedup
KeyboardActivitySource.swiftSensorKitCGEvent tap (key-press rate threshold), MockEventMonitor in tests
MouseActivitySource.swiftSensorKitCGEvent tap (mouse-down + scroll-wheel), TCC-aware, RealEventMonitor seam
TrackpadActivitySource.swiftSensorKitNSEvent monitor + IOKit HID multitouch listener for circling/contact/sliding/tapping
HIDDeviceMonitor.swiftSensorKitReal/Mock seam for IOHIDManager device queries. used by KeyboardActivitySource and others
EventMonitor.swiftSensorKitReal/Mock seam for CGEvent tap subscription
MicrophoneEngineDriver.swiftSensorKitReal/Mock seam for AVAudioEngine. keeps MicrophoneAdapter testable without spinning up a real engine
HeadphoneMotionDriver.swiftSensorKitReal/Mock seam for CMHeadphoneMotionManager
AudioPlaybackDriver.swiftResponseKitReal/Mock seam for NSSound playback
SystemVolumeDriver.swiftResponseKitVolume read/write via Core Audio
VolumeSpikeResponder.swiftResponseKitVolume-spike output: bumps system volume on impact via SystemVolumeDriver
HapticEngineDriver.swiftResponseKitReal/Mock seam for CoreHaptics (CHHapticEngine + transient pattern)
HapticResponder.swiftResponseKitTrackpad haptic feedback subscriber wired through HapticEngineDriver
LEDBrightnessDriver.swiftResponseKitReal/Mock seam for IOKit Caps Lock LED
DisplayBrightnessDriver.swiftResponseKitReal/Mock seam for CoreBrightness keyboard/display brightness
DisplayBrightnessFlash.swiftResponseKitDisplay-backlight pulse output (spring envelope)
DisplayTintDriver.swiftResponseKitReal/Mock seam for display tint via CoreGraphics gamma table
DisplayTintFlash.swiftResponseKitDisplay-tint pulse output (gradient overlay via tint table)
ReactiveOutput.swiftResponseKitOutput protocol the bus dispatches against. every responder conforms
SystemNotificationDriver.swiftResponseKitReal/Mock seam for UNUserNotificationCenter
Updater.swiftYameteAppGitHub releases version check, update prompt (Direct build only)

Test surface details have moved to Testing.

Engineered with excessive care for a deeply unnecessary purpose.