Replace OpenCode harness with Hermes, remove workspace dependency, and move vocabulary/corrections to app folder
This commit is contained in:
@@ -95,6 +95,12 @@ class ClaudeCodeLLM(FrameProcessor):
|
||||
else:
|
||||
await self.push_frame(frame, direction)
|
||||
|
||||
def start_turn_direct(self, text: str):
|
||||
utterance = text.strip()
|
||||
if not utterance:
|
||||
return
|
||||
self.create_task(self._maybe_start_turn(utterance))
|
||||
|
||||
async def _connect(self):
|
||||
if self._client:
|
||||
return
|
||||
@@ -174,6 +180,11 @@ class ClaudeCodeLLM(FrameProcessor):
|
||||
for block in message.content:
|
||||
if isinstance(block, ToolUseBlock):
|
||||
logger.info(f" [tool] {block.name}")
|
||||
try:
|
||||
import web_server
|
||||
web_server.broadcast_event("tool", {"name": block.name, "detail": str(getattr(block, "input", ""))})
|
||||
except Exception:
|
||||
pass
|
||||
await self._say_working(spoken)
|
||||
elif isinstance(block, TextBlock) and not self._streams_partials():
|
||||
spoken.append(block.text)
|
||||
|
||||
Reference in New Issue
Block a user