[claude] Batcave terminal — Hermes workshop integration (#6) #53

Closed
claude wants to merge 1 commits from claude/the-nexus:claude/issue-6 into main

1 Commits

Author SHA1 Message Date
Alexander Whitestone
b0f2622474 feat: Batcave terminal — Hermes workshop integration (#6)
Some checks failed
CI / validate (pull_request) Has been cancelled
- connectHermes() — WebSocket to /api/world/ws with auto-reconnect (5s)
  handles message/tool_call/tool_result/error event types
- Session persistence — localStorage saves/restores last 60 messages
  (including tool output blocks) across page reloads via restoreSession()
- Tool output rendering — tool_call shows pre block with name+args,
  tool_result shows pre block with output; both stored in session
- Live 3D panels — NEXUS COMMAND and METRICS panels refresh via
  refreshTerminalPanel() to show Hermes connection state and message count
- sendChatMessage() routes through WebSocket when connected, offline
  fallback keeps sovereign mode when Hermes is unreachable
- New CSS: .chat-msg-hermes, .chat-tool-block, tool prefix colors

Fixes #6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 23:24:02 -04:00