Bridge: an owner-configured list of agents (HERMEVEN_AGENTS). Each extra agent is another profile of the same Hermes gateway, reached at /p/<profile> with that profile's own key. GET /v1/agents lists ids and names; POST /v1/conversations takes an optional agent_id checked against the list. A conversation belongs to one agent (migration v3) and its turns are submitted, polled and stopped at that agent. /v1/device is unchanged so clients built earlier keep working. Client: at Ready a swipe moves between agents; the name is shown through the exchange; each agent keeps its own conversation; a follow-up goes to the agent that answered. Reopened within the conversation window it opens on the last agent, otherwise on the default. With one agent, or a bridge without /v1/agents, nothing changes. Also: contract section G, server survey and key evidence, the 0.1.2 upload, and the CODY-020 correction. Not reviewed, not deployed, not uploaded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
30 lines
1.5 KiB
Bash
30 lines
1.5 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
|
|
|
|
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
|