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

Function push

e2e/src/clients/chat-theater.ts:126–133  ·  view source on GitHub ↗
(event: TheaterEvent)

Source from the content-addressed store, hash-verified

124 const queue: TheaterEvent[] = [];
125 let closed = false;
126 const push = (event: TheaterEvent) =>
127 Effect.sync(() => {
128 if (!closed) {
129 // Chatting IS focusing the terminal window.
130 if (event.type !== "done") markFocus(runDir, "terminal");
131 queue.push(event);
132 }
133 });
134
135 const pump = cli.session(
136 ["bun", RENDERER, options.title],

Callers 3

makeTheaterFunction · 0.85
ptyTheaterFunction · 0.85
deskTheaterFunction · 0.85

Calls 4

markFocusFunction · 0.90
encodeFunction · 0.85
pushMethod · 0.80
syncMethod · 0.65

Tested by

no test coverage detected