Client (apps/even-client): pure interaction reducer with generation-based stale-result rejection, HUD renderer, measured pagination, Even Hub SDK 0.0.16 adapter, bridge HTTP client, phone pairing/status/diagnostics page. Bridge (services/bridge): device pairing and revocable expiring credentials, turn engine with idempotent submit, cancel, deadlines and restart recovery, Hermes Runs API adapter, OpenAI-compatible STT adapter, operator CLI. Contract (packages/contracts): versioned schemas, types and error codes. Tests: 122 unit/integration (fakes), 6 simulator scenarios (Even Hub simulator 0.9.5), 9 scenarios against a real Hermes v0.23.1 gateway with a stub model. No real STT, real model or physical device has been exercised; see docs/test-evidence.md and docs/device-test-plan.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
102 lines
4.4 KiB
Markdown
102 lines
4.4 KiB
Markdown
# Hermeven
|
|
|
|
Hermeven makes Even Realities G2 glasses an interface to a Hermes Agent that you run yourself.
|
|
Tap, ask a question out loud, read a short answer on the display, ask a follow-up.
|
|
|
|
Even supplies the microphone, gestures and display. Hermes stays in charge of the agent: its
|
|
identity, memory, conversation, model, tools and approval rules. Hermeven is the glasses app and a
|
|
small bridge between the two.
|
|
|
|
## Status: first software slice, not yet run on glasses
|
|
|
|
| Path | State |
|
|
|---|---|
|
|
| Client, bridge and contract | Implemented. |
|
|
| Automated tests with fakes (122) | Passing. |
|
|
| Client in Even's official simulator | Passing (6 scenarios). Simulator only. |
|
|
| Bridge against a real Hermes gateway | Passing (9 scenarios) with a **stub model**. |
|
|
| Real speech-to-text | **Not run.** No provider was configured. |
|
|
| Real model, real tools, approval flow | **Not run.** |
|
|
| Physical G2, ring, locked-phone use, battery | **Not run.** See `docs/device-test-plan.md`. |
|
|
|
|
The product's first goal needs the microphone to work while the phone is locked in a pocket.
|
|
Even's documentation says capture stops if the app's WebView is suspended. That is the first
|
|
thing to test on a device and it is not known to work.
|
|
|
|
## How it fits together
|
|
|
|
```
|
|
G2 <-Bluetooth-> Even phone app (WebView: apps/even-client)
|
|
| HTTPS + device credential
|
|
services/bridge --> speech-to-text endpoint you choose
|
|
|
|
|
your Hermes API server
|
|
```
|
|
|
|
- `packages/contracts`: the versioned bridge contract (schemas, types, error codes).
|
|
- `services/bridge`: pairing, the turn lifecycle, the Hermes and STT adapters, the operator CLI.
|
|
- `apps/even-client`: the glasses app and its phone page.
|
|
- `tests`: fakes, integration, simulator and real-Hermes suites.
|
|
|
|
## Quick start (no glasses needed)
|
|
|
|
```sh
|
|
npm ci
|
|
cp .env.example .env # set HERMES_API_KEY; add HERMEVEN_ALLOWED_ORIGINS=http://localhost:5173
|
|
npm run bridge # terminal 1
|
|
npm run client:dev # terminal 2, then open http://localhost:5173
|
|
npm run bridge:cli -- pair # terminal 3: prints a one-time pairing code
|
|
```
|
|
|
|
Enter `http://127.0.0.1:8787` and the code in the page, then use "Typed question". Full
|
|
instructions, including building for the glasses, are in `docs/setup.md`.
|
|
|
|
## Using it on the glasses
|
|
|
|
| You do | It does |
|
|
|---|---|
|
|
| Tap | Start recording. The display shows `● REC` and a timer the whole time. |
|
|
| Tap again | Stop and send. Recording also stops by itself after 30 seconds. |
|
|
| Swipe down / up | Next / previous page of the answer. |
|
|
| Tap on an answer | Ask a follow-up in the same conversation. |
|
|
| Double tap | Cancel what is in progress, or go back. At "Ready" it opens the system exit dialog. |
|
|
| Tap, then long press | The system menu, with "New conversation" and "Cancel request". |
|
|
|
|
Cancelling stops the agent as soon as Hermes can; it does not undo anything the agent already did.
|
|
If the agent needs an approval, the display says so and you approve it where you normally manage
|
|
the agent. Hermeven never approves anything for you.
|
|
|
|
These gestures are a first binding and have only been exercised in the simulator.
|
|
|
|
## Tests
|
|
|
|
```sh
|
|
npm run typecheck
|
|
npm test # unit and integration, fakes only
|
|
npm run test:simulator # opens Even's simulator window
|
|
npm run test:real-hermes # real `hermes gateway` in a throwaway home, stub model
|
|
```
|
|
|
|
What each suite does and does not show is in `docs/test-evidence.md`.
|
|
|
|
## Documentation
|
|
|
|
| Document | Contents |
|
|
|---|---|
|
|
| `docs/feasibility.md` | What Even and Hermes actually provide, with sources and a status for each claim. |
|
|
| `docs/compatibility.md` | Versions used and tested. |
|
|
| `docs/architecture.md` | Components, state machine, how ambiguous outcomes are classified. |
|
|
| `docs/bridge-api.md` | The bridge contract. |
|
|
| `docs/security.md` | Threat model, controls, known gaps. |
|
|
| `docs/setup.md` | Running, building, operating. |
|
|
| `docs/device-test-plan.md` | The physical-device checklist. Not yet run. |
|
|
| `docs/test-evidence.md` | Commands run and their real results. |
|
|
| `docs/decisions/` | Decision records. |
|
|
| `docs/handoff/` | Review handoffs. |
|
|
| `docs/build-in-public/` | Unpublished drafts. Nothing is published automatically. |
|
|
|
|
## Not in this slice
|
|
|
|
Wake words, always-on listening, camera features, text-to-speech, multiple agents, billing, store
|
|
launch, and running alongside Even's native captions (the public SDK does not offer it).
|