The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type * as Stream from "effect/Stream"; |
| 2 | |
| 3 | export const getRawStream = (stream: Stream.Stream<any, any, any>): ReadableStream | undefined => |
| 4 | streamHasRaw(stream) ? stream.raw : undefined; |
| 5 | |
| 6 | export const streamHasRaw = ( |
| 7 | stream: Stream.Stream<any, any, any>, |
| 8 | ): stream is Stream.Stream<any, any, any> & { |
| 9 | raw: ReadableStream; |
| 10 | } => "raw" in stream && stream.raw != null; |