mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 06:17:23 +01:00
One tap at /voice opens the microphone and reads the briefing; from then on the loop is listen → transcribe → act → speak → listen, with the phone in a pocket. Twelve spoken commands (status, what's waiting, approve/reject by number, tell <project> to …, what failed, pause/resume, say that again, quiet, help, end) go through the seams the screen already uses — decideAction, injectPrompt, fleet-pause, askLoki — so the page and the headphones cannot disagree. Between turns the phone polls /api/voice/snapshot every 20 s and announces the diff: a run finished or failed, a new approval, the builder offline or back, a project starting work. Bounded to five per poll. - config/no-screen.ts: the vocabulary SSOT, read by the parser, the spoken help and the public page; the test feeds every example phrase through the parser. - lib/voice/commands.ts: an explicit grammar (pure, 35 checks). A bare "yes" is not an approval, a bare "stop" is "be quiet", a sentence naming no project is a question. - lib/voice/briefing.ts: the fleet as sentences, and the snapshot diff (pure, 12 checks). lib/voice/fleet-snapshot.ts reads the same tables as Control; approvals ride only with the private zone open. - hooks/use-voice-conversation.ts: say() for unasked lines (now while listening, queued while busy, held for one listen after an interruption) and idle: "listen" so silence re-arms instead of pausing. The Loki page's Talk button is unchanged. - hooks/use-media-session.ts: a generated silent loop holds the media session so the headphone button is the orb tap; next = briefing. - lib/fleet-pause.ts: resumeFleetProjects, the mirror of pause. - /no-screen public page (nav, matcher, audit lists, copy-truth), the sidebar entry under Command, the demo-sandbox classification. - content/thoughts/the-fleet-in-your-ear.md with a committed SVG, a sequence diagram and the seam table; ROADMAP + CHANGELOG entries. Not yet verified on a locked iPhone in a pocket; the page, the essay and the roadmap say so. Claude-Session: https://claude.ai/code/session_01YKx4TPejLvFR9Uj4xrTf6Y Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>