Files
hermeven/deploy/bridge.env.example
DanandClaude Fable 5.2 e1d183b54d Opening menu and hands-free mode: call an agent by name (0.3.0)
The app now opens on a menu, which is the root page: "Hands free" first,
"Agents" second. Agents is the 0.2.0 app unchanged. Hands free is the same
agents, conversations and question path with one flag set: the microphone
listens while the app is at rest and the app does not leave by itself.
The mode is never remembered; every launch starts at the menu with the
microphone closed, and double tap at Ready returns to the menu and closes
it.

Client: a loudness-only speech segmenter (core/vad.ts) cuts the stream
into utterances; each goes to the bridge for a wake check. "Wendy, <q>"
becomes a text turn to Wendy, with what was heard shown while she works.
A name alone starts a recording that sends itself when the speaker stops.
The status line starts with a dot for exactly as long as the microphone is
open at rest. In wake mode every microphone open and close goes through
one serialised reconciler; without the option the old path is untouched.

Bridge: POST /v1/wake transcribes one utterance in memory and reports
whether it BEGAN with an agent's name (first word of the display name, or
an alias from HERMEVEN_AGENT_<ID>_WAKE). Exact match only; a near miss is
reported as one word and never acted on. Creates no turn, stores nothing,
returns and logs nothing that was not addressed to an agent. One check at
a time per device, HERMEVEN_WAKE_CHECKS_PER_MINUTE (30).

Docs: decision 0004, bridge API, security gaps 3c/3d, device plan D.
The manifest's microphone description changed.

Not reviewed, not deployed, not uploaded, not device-tested.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 10:52:06 -08:00

34 lines
1.7 KiB
Bash

# /etc/hermeven/bridge.env on the droplet (chmod 600, owned by the hermeven user).
HERMES_BASE_URL=http://127.0.0.1:8642
HERMES_API_KEY=replace-with-the-hermes-api-server-key
HERMES_PROFILE_LABEL=default
# Optional: more agents on the glasses (swipe at Ready to choose). Each is another profile of the
# same Hermes gateway and needs its OWN key: add API_SERVER_KEY to that profile's .env on the
# Hermes side, then repeat it here. See docs/bridge-api.md, "More than one agent".
# HERMEVEN_AGENT_NAME=Pepper
# HERMEVEN_AGENTS=wendy,cody
# HERMEVEN_AGENT_WENDY_API_KEY=replace-with-wendy-profile-api-server-key
# HERMEVEN_AGENT_CODY_API_KEY=replace-with-cody-profile-api-server-key
# Each agent is called by voice with the first word of its name. If the speech model writes a
# name another way (the phone's Diagnostics shows near misses), add those spellings:
# HERMEVEN_AGENT_CODY_WAKE=kody,codi
# HERMEVEN_AGENT_WAKE=peper
HERMEVEN_HOST=127.0.0.1
HERMEVEN_PORT=8787
# Caddy is in front, so the client address comes from its forwarded header.
HERMEVEN_TRUST_PROXY=true
HERMEVEN_DB_PATH=/var/lib/hermeven/hermeven.sqlite
# An app installed through Even Hub is served from http://127.0.0.1:<port>, with a new port on
# every launch, so it needs the loopback any-port entry below. Remove it if you only ever load
# the page from this bridge's own hostname (QR sideload), which needs no entry.
HERMEVEN_ALLOWED_ORIGINS=http://127.0.0.1:*
# Built-in speech-to-text (the default). The model is pinned and verified; the running service
# never downloads it and only reads this directory. Populate it at deploy time with
# npm run bridge:cli -- fetch-model
STT_PROVIDER=builtin
STT_MODEL=whisper-base
STT_MODEL_DIR=/opt/hermeven/models