MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / withChatTheater

Function withChatTheater

e2e/src/clients/chat-theater.ts:106–111  ·  view source on GitHub ↗
(
  cli: CliSurface,
  options: TheaterOptions,
  body: (theater: ChatTheater) => Effect.Effect<A, E, R>,
)

Source from the content-addressed store, hash-verified

104 * so the recording always ends cleanly.
105 */
106export 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.

Calls 2

deskTheaterFunction · 0.85
ptyTheaterFunction · 0.85

Tested by

no test coverage detected