1.7 KiB
1.7 KiB
M1 — shell
Exit criterion (BUILD-SPEC §10): hotkey opens/closes panel; a sound plays on open.
Plan
- Workspace skeleton per §3 (
apps/,crates/,resources/,skills/,docs/). core::resources— slot manifest loader (variants, gain, category, bed), path-escape guard, missing-file report; never panics.- Placeholder generator — original media for every §8 slot so the app runs without real media.
voice::bus::AudioBus— category gains, bed mutual exclusion; rodio backend on its own thread.- Desktop shell — accessory app (no Dock), tray, notch panel (status level, all Spaces,
excluded from capture, shown without taking focus),
slot://protocol for UI media. - Hotkey — poll
CGEventSourceFlagsStatefor ctrl+option (no permission needed). - Permissions wizard — Mic, Screen Recording, Accessibility, Speech, Files: detect, request, deep-link to System Settings.
Decisions (simplest option that preserves behaviour)
| Decision | Why | Follow-up |
|---|---|---|
| Hotkey by polling modifier state at 50 Hz | Works before any permission; no event tap | TODO(M4): swallow chord / detect extra keys via event tap once Accessibility is granted |
Panel is an NSWindow shown with orderFrontRegardless |
Doesn't steal focus when it appears | TODO(M3): non-activating NSPanel so clicks inside also keep focus |
Escape via CGEventSourceKeyState + in-panel keydown |
No event tap needed | Verify whether it needs Input Monitoring on a clean Mac |
| Files & Folders checked only on click | Checking triggers the TCC prompt itself | — |
| Waveform is animated, not live | Mic arrives in M2 | TODO(M2): drive from mic RMS |
--show-panel flag |
Smoke test without input | — |