Commit Graph

12 Commits

Author SHA1 Message Date
Chris Mendoza 49b180922d feat(pheby): add authenticated GPT-Live voice setup
Use Hermes to exchange WebRTC offers for the connector profile. Keep cancellation acknowledgments private and guard replacement runs against stale delivery.
2026-11-20 12:36:28 -05:00
Pheby 3bfb300a2f fix(pheby): migrate bridge to the new persistence repository API
The Hermes update replaced SessionDB with the persistence layer; raw SQL
(_read_all), create_session/append_message/delete_sessions,
get_messages_as_conversation and set_session_yolo are gone. Use
sessions.search_sessions (client-side session_key filter), messages
.read_conversation(ConversationRequest) with as_openai_message rows,
sessions.create/append/delete/get/set_yolo instead. Update test fakes
and open the storage interface directly in the cron delivery tests.
2026-11-20 16:01:01 +00:00
Pheby 7e0e510bac fix(pheby): persist cron deliveries in chat display history 2026-10-30 12:15:09 +00:00
Pheby 7b94342eb8 adapter: include tool catalog description in S_TOOL_EVENT
Pre/post tool call events now carry the tool's first-line catalog
description (from model_tools.get_tool_definitions, memoized) so the
Pheby app can show it under the tool name in the tool-call UI.
Unknown tools omit the field entirely (hide-undefined-data).
2026-10-11 01:58:04 +00:00
Pheby 7ad8bf1155 fix(pheby): restore paged history across session resets 2026-09-23 12:04:31 +00:00
Pheby 18c4b34d08 feat: add conversation-scoped yolo controls 2026-09-22 08:12:07 +00:00
Pheby 416095a7f1 [verified] fix: emit UTC-offset last_active so the app can sort by recency
Session-store updated_at values are naive local datetimes; passing them
through without an offset broke Instant.parse() on the client, dropping
last_active and leaving the chat list unsorted after restart.
2026-09-10 05:44:02 +00:00
Pheby aa705f7dd0 [verified] fix: scope model changes to the active profile 2026-09-09 18:03:32 +00:00
Pheby 1d85d7af6b [verified] fix: preserve timestamps in chat history 2026-09-09 17:15:20 +00:00
Pheby 6be1601ccd Anchor generated attachments to assistant messages
Deliverables now inherit the active assistant draft message ID so clients can render them beside the reply that produced them.
2026-09-09 06:54:56 +00:00
Codex 5130152335 Fix Hermes adapter integration and recovery 2026-09-02 13:59:00 -07:00
Pheby 53ffdb8aa2 feat: Pheby platform adapter/plugin for Hermes (protocol v1)
Third-party Hermes platform plugin serving the Pheby WebSocket+HTTPS
protocol for the native Android client, behind Caddy:

- Platform adapter (BasePlatformAdapter subclass) registered via the
  documented plugin system (plugins.platforms pattern, kind: platform)
- Multiple conversations mapped to Hermes sessions (authoritative state)
- Streaming chat via GatewayStreamConsumer edit path (message.delta)
- Structured tool events (never fake tool text in chat), incl.
  post_tool_call hook relay with Hermes tool_call_ids
- Native approval + clarification round-trips via tools.approval /
  tools.clarify_gateway primitives
- Attachment delivery: adapter-owned copies, opaque IDs, persistent
  metadata, 7-day retention + safe cleanup, authenticated HTTPS download
- Model + reasoning-effort query/change via Hermes picker data and
  session/global overrides
- Shared-secret auth (constant-time, lockout), size limits, path-
  traversal-proof attachment resolution, minimal health endpoint
- Protocol v1 spec with JSON examples (docs/PROTOCOL.md)
- Install/config/Caddy/security docs + discovered Hermes limitations
- 37 passing tests (auth, conversations, protocol, attachments incl.
  expiry/traversal, tool events, approvals, clarifications, cancel,
  reconnect re-sync, live WS smoke tests) — gateway-free fakes

No Hermes core modifications required.
2026-09-02 19:31:17 +00:00