( cli: CliSurface, options: TheaterOptions, body: (theater: ChatTheater) => Effect.Effect<A, E, R>, )
| 104 | * so the recording always ends cleanly. |
| 105 | */ |
| 106 | export const withChatTheater = <A, E, R>( |
| 107 | cli: CliSurface, |
| 108 | options: TheaterOptions, |
| 109 | body: (theater: ChatTheater) => Effect.Effect<A, E, R>, |
| 110 | ): Effect.Effect<A, E, R> => |
| 111 | process.env.E2E_DESK === "1" ? deskTheater(options, body) : ptyTheater(cli, options, body); |
| 112 | |
| 113 | // --------------------------------------------------------------------------- |
| 114 | // PTY mode: renderer in a recorded PTY; events typed in as base64 lines. |
no test coverage detected