feat(simulation): render driven UI screenshots and videos (#35739)

This commit is contained in:
James Long 2026-07-07 12:15:01 -04:00 committed by GitHub
commit 6c065ca6a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 291 additions and 120 deletions

View file

@ -1,7 +1,6 @@
import { Effect } from "effect"
import { SimulationProtocol } from "../protocol"
import { SimulationLLMExchange } from "./llm-exchange"
import { SimulationNetwork } from "./network"
/**
* Backend-hosted simulation control WebSocket.
@ -19,7 +18,6 @@ import { SimulationNetwork } from "./network"
* - `llm.finish` { id, reason? } finish an exchange
* - `llm.disconnect` { id } abruptly terminate an exchange without a finish
* - `llm.pending` list open exchanges
* - `network.log` simulated network request log
*/
type ControlSocket = Bun.ServerWebSocket<{ unsubscribe?: () => void }>
@ -58,8 +56,6 @@ async function handle(socket: ControlSocket, request: SimulationProtocol.Backend
}
case "llm.pending":
return { exchanges: SimulationLLMExchange.pending() }
case "network.log":
return { entries: SimulationNetwork.log() }
}
}