mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
Implements ReadableStream interface for shell stdout and stderr, allowing real-time consumption of command output instead of waiting for buffering. - Created ShellOutputStream.zig implementing ReadableStream source - Added stdout/stderr getters to ShellInterpreter returning streams - Exposed streams on ShellPromise in shell.ts - Added data notification hooks in Cmd.zig and Builtin.zig - Updated TypeScript definitions in shell.d.ts - Added comprehensive tests in shell-streaming.test.ts The streams are lazily created on first access and share the same underlying ByteList buffer used for buffered output. Data notifications wake pending reads when new output arrives. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>