Commit Graph
17 Commits
Author SHA1 Message Date
James Babcock fcea0b369a Merge branch 'main' of https://github.com/jimrandomh/faceclaw into ring-health-fixes 2026-11-01 11:00:38 -08:00
James Babcock 22f869d31c notes/ LLM memories doesn't go in git 2026-10-25 14:20:39 -07:00
James Babcock 4f8c082b52 Merge branch 'main' into ring-health-fixes 2026-10-25 01:06:38 -07:00
James Babcock de653f0fbb Hermes integration survives restarts, fix error hadling, increase turn length limit 2026-10-17 13:52:43 -07:00
James Babcock 825559aa82 Merge commit 'd9924ee' into hermes-integration 2026-10-17 13:45:43 -07:00
James Babcock 5bf809d733 Bugfixes in iOS Transcribe and Whisper server integration 2026-10-17 13:43:52 -07:00
FilipAlexanderandClaude Opus 5.5 d9924eedcd Assistant: add a Hermes agent backend
A "Hermes agent" assistant model talks to a Hermes Agent gateway's
OpenAI-compatible API server (streamed /v1/chat/completions), with Hermes URL
and key settings under Assistant. Hermes keeps the conversation: each
assistant session maps to one X-Hermes-Session-Id and only the latest user
message is sent. Faceclaw's own tools are not offered to it, and its reasoning
stream is not shown on the glasses. See notes/hermes-assistant.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 16:44:23 +02:00
FilipAlexanderandClaude Opus 5.5 e2caf28392 Voice: self-hosted Whisper server provider; Transcribe on iOS
- "Whisper server (self-hosted)" transcription provider for OpenAI-compatible
  Whisper servers (vLLM, speaches, LocalAI) over plain HTTP batch requests,
  with URL, model, language and key settings (Voice). Pause-ended spans are
  one request each, finalized in audio order, with provisional text while a
  span is open. See notes/whisper-server.md.
- Transcribe (and other continuous capture) works on iOS with a cloud or
  Whisper-server provider; push-to-talk shares a running capture.
- Transcribe saves each session's audio as transcribe-<time>.wav in Downloads
  (setting "Save Transcribe audio", on by default), written as it is captured
  so a crash leaves a playable file; a saved transcript uses the same stamp.
- Calculator stops continuous listening when its window closes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 16:43:18 +02:00
James Babcock a2166c6a6c Merge branch 'main' of https://github.com/jimrandomh/faceclaw into ring-health-fixes 2026-09-25 23:12:20 -07:00
James Babcock 6b2e0375e6 Document iOS LiveSync refresh and device protocol validation 2026-09-17 23:38:56 -07:00
James Babcock e8e144f3f2 Merge main into ios-port and update the iOS CFW transport 2026-09-17 23:33:51 -07:00
James Babcock 27a5fe47ef Fix remaining health review issues and document ring clock skew 2026-09-17 21:21:05 -07:00
James Babcock 7677dd254e Decode R1 daily health pages and direct battery status 2026-09-17 20:58:35 -07:00
Chris LeeandClaude Opus 5 0db295d802 R1 ring: health-data BLE protocol (codec, five record decoders, page ACK)
Implements the Even R1 ring's health-sync protocol, reverse-engineered from
Bluetooth HCI snoop captures of Even's own app and confirmed field-by-field
against that app's CSV export. Answers the open question in issue #22, and in
notes/apps.txt, about where interpretation happens: it happens ON THE RING.
Sleep arrives already classified into stages; the phone does no inference.

RingProtocol.java: 15-byte header, 2-byte command id, CRC-32C (non-reflected)
over the frame body, fragment reassembly, and decoders for all five record
types -- heart rate, HRV, SpO2, sleep and steps. Hourly types share the shape
[hour_index][avg][max][min]. Steps are 10-minute buckets counted from the
record's anchor. RingProtocolSelfTest.java covers the codec against captured
bytes.

Three traps are documented in the code because each one costs days and a
reviewer "tidying" any of them would silently break the sync:

1. The 00:08 handshake frame is the ONE request whose payload carries no
   nonce -- it is exactly 3f 01 01. Measured across 46 real writes with zero
   exceptions: the 3-byte form is always answered, the 5-byte form never is.
   Prepending a nonce makes the ring discard the frame and then ignore every
   subsequent request on that connection.

2. The ring holds only one health type's response in flight. Requesting the
   next type before the previous type's DATA arrives silently drops it, and a
   lost race appears to discard that backlog PERMANENTLY rather than delaying
   it. requestRingHealth() is therefore response-paced, not sleep-paced, and
   ACKs each page as it lands.

3. HEALTH_COMMANDS mirrors the order Even's app uses. Whether the ring cares
   is untested, and matching is the cheap way not to find out the hard way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 20:14:09 -07:00
James BabcockandClaude Fable 5 48bac85cbe External assistant backend: agent bridge client + MCP server
Phase 3 of the voice-assistant design: assistant.backend=external routes
utterances over a dial-out websocket to faceclaw-agent-bridge (an OpenClaw
plugin on the user's machine). The phone serves its ToolRegistry as MCP on
the same socket, with proactive gating and rate limiting enforced locally.
New Assistant settings section with backend/bridge settings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XCdkQyB3RUVPTuEmhxVEdp
2026-08-01 18:28:47 -07:00
James Babcock fe205c0164 Add app tool registration for voice assistant; voice assistant can read and send to terminals 2026-07-25 01:19:07 -07:00
James Babcock 0aeb24ed00 Implement a basic voice assistant 2026-07-25 00:44:04 -07:00