feat(agent): add standalone agent runtime

This commit is contained in:
Nicolas Meienberger 2026-04-07 21:59:23 +02:00
parent b25ccdc6b2
commit 01728c9a72
No known key found for this signature in database

View file

@ -106,6 +106,11 @@ export const createControllerSession = (ws: WebSocket): ControllerSession => {
});
},
onMessage: (data) => {
if (typeof data !== "string") {
logger.warn("Agent received a non-text message");
return;
}
void Effect.runPromise(offerInbound(data as ControllerWireMessage)).catch((error) => {
logger.error(`Failed to queue inbound message: ${toMessage(error)}`);
});