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

Function encode

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

Source from the content-addressed store, hash-verified

60const sleep = (ms: number) => new Promise<void>((tick) => setTimeout(tick, ms));
61
62const encode = (event: TheaterEvent) =>
63 `${Buffer.from(JSON.stringify(event)).toString("base64")}\n`;
64
65/** Input block, like a TUI's call preview: trimmed lines, capped count. */
66const inputPreview = (input: string | undefined): string[] | undefined => {

Callers 2

ptyTheaterFunction · 0.85
pushFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected