Five-slice navigable map of the entire codebase under
docs/architecture-map/. Each slice is a self-contained
breadcrumbed sub-tree:
01-frontend (16) Svelte/SvelteKit UI
02-tauri-runtime (26) src-tauri commands + lifecycle
03-audio-transcription (16) audio + transcription crates
04-llm-formatting-mcp (19) llm, ai-formatting, mcp, cloud
05-core-storage-hotkey-build core, storage, hotkey, workspace,
(26) CI, dev glue
Plus master README.md and data-flow-end-to-end.md tracing
audio bytes from microphone to FTS5 search to MCP read.
Generated by 5 parallel subagents on 2026/05/09 against
HEAD 3c47000. Each page has YAML frontmatter, file:line code
refs, sibling cross-links, plain-English summaries.
Aggregated debt surfaced (full lists in master README):
RB-08 macOS power assertion, schema head drift v14 vs v15,
VAD blocked on ort version conflict, streaming primitives
not wired into live.rs, no prompt versioning, MCP has no
auth, cloud-providers in-memory keystore, SettingsPage
2 484 LOC, commands/live.rs 1 737 LOC, dual theme system,
brand rename to Lumenote pending across the codebase.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5.1 KiB
5.1 KiB
name, type, slice, last_verified
| name | type | slice | last_verified |
|---|---|---|---|
| Commands index | architecture-map-page | 02-tauri-runtime | 2026/05/09 |
Commands index
Where you are: Architecture map → Tauri runtime → Commands
Plain English summary. This is the registry of every Tauri command file. Each .rs file under src-tauri/src/commands/ either declares one or more #[tauri::command] functions invoked from the frontend, or is a utility (state, security, power) that the command files share. The full list of commands actually exposed to the frontend is registered via the tauri::generate_handler! macro in src-tauri/src/lib.rs:321.
At a glance
- Path:
src-tauri/src/commands/. - 22 command modules (declare
#[tauri::command]s) plus 3 utility modules (mod.rs,power.rs,security.rs). - 71
#[tauri::command]functions registered inlib.rs. A handful of additional#[tauri::command]functions exist in source but are NOT registered (notably the smallclipboard::copy_to_clipboardIS registered; nothing meaningful is unregistered as of last verification). - Total LOC across
commands/: 6,939 (Rust source, excluding tests folder).
Module list
| Module | LOC | Registered commands | One-liner |
|---|---|---|---|
| audio | 540 | 4 | Native cpal mic capture, list devices, save WAV |
| clipboard | 11 | 1 | Copy text to system clipboard via arboard |
| diagnostics | 534 | 6 | Panic hook, frontend error log, crash files, diagnostic-report bundler, OS info |
| feedback | 110 | 2 | HITL feedback capture and retrieval (Phase 2) |
| fs | 44 | 1 | Write UTF-8 text to a user-chosen path (Phase 9) |
| hardware | 69 | 2 | Probe RAM/CPU/GPU, rank models for current hardware |
| hotkey | 105 | 5 | evdev hotkey listener bridge (Linux Wayland-compatible) |
| intentions | 308 | 5 | Phase 7 implementation-intention rules CRUD |
| live | 1,737 | 2 | Live transcription session orchestration (the big one) |
| llm | 423 | 10 | LLM model lifecycle, transcript cleanup, content tags |
| meeting | 50 | 1 | Process-list poll for known meeting apps (Phase 8) |
| models | 691 | 13 | Whisper / Parakeet model registry, download, load, runtime capabilities |
| mod | 114 | n/a | build_initial_prompt helper + module re-exports |
| nudges | 63 | 1 | Phase 6 nudge delivery via tauri-plugin-notification |
| paste | 790 | 3 | Auto-insert at cursor across Linux/macOS/Windows |
| power | 208 | 0 | macOS App Nap power assertion (no commands) |
| profiles | 185 | 9 | Profile + profile-term CRUD, auto-learn from edits |
| rituals | 43 | 2 | Morning triage last-shown sentinel (Phase 5) |
| security | 30 | 0 | ensure_main_window defence-in-depth helper |
| tasks | 402 | 11 | Task CRUD, decompose-and-store, extract-from-transcript |
| transcription | 413 | 3 | Transcribe PCM (Whisper / Parakeet), transcribe file |
| transcripts | 253 | 8 | Transcripts CRUD + FTS5 search + meta patches |
| tts | 444 | 3 | Read aloud via spd-say / say / PowerShell SAPI (Phase 4) |
| update | 16 | 2 | Updater placeholder (returns "disabled" until signing wired) |
| windows | 197 | 4 | Open / close the secondary windows (preview, viewer, task float) |
Per-command page assignments
- Big files have their own page: audio, live, paste, models, diagnostics, llm, tts, transcription, tasks, transcripts, intentions, profiles, windows, hotkey, feedback.
- Utilities collapsed into one page: Power assertions and security covers
power.rsandsecurity.rs. - Small modules grouped: Small commands covers
clipboard.rs,fs.rs,hardware.rs,meeting.rs,nudges.rs,rituals.rs,update.rs. - Module entry: mod.md covers
mod.rs(re-exports +build_initial_prompthelper).
How to navigate
- Looking for a frontend
invoke('foo', ...)call? Search forpub async fn fooorpub fn fooundercommands/. The page for that file lists all its commands with arg + return signatures. - Looking for an event the frontend listens for? See the slice README's "events emitted" section, or grep for the event name across
commands/. - Looking for ACL gotchas? Pages flag the commands that include an
ensure_main_windowguard.
See also
- Slice README — back to the top of slice 02.
- App lifecycle —
lib.rs::runis what registers everything listed here. - Capabilities and ACL — the permission set that gates every invocation.