Repository navigation
v0.2.0
Overview
This release adds stream inspection and lifecycle ergonomics on top of v0.1.6:
- OSC decoder + Inspector API — attach a decoder to any PTY to parse OSC escape sequences and track live terminal state (title, CWD via OSC 7, hyperlinks, etc.) without consuming the data stream.
- IdleDetector (renamed from ActivityDetector) — fires when the PTY output goes quiet, useful for AI agents waiting on interactive programs to settle.
using/await usingsupport —IPtyis nowAsyncDisposable(await using pty = spawn(...)closes the PTY and awaits exit), andTerminalisDisposablefor synchronous cleanup.- Zig 0.16 migration — Zig sources updated to the 0.16 toolchain.
- Fix:
pty.exitednow resolves correctly when the PTY is the only async work in flight (exit tsfn was being unref'd too early, letting Node shut down before the callback fired).
🚀 Enhancements
- Support attaching inspectors and osc decoder (#6)
- osc: Track terminal state on OSCInspector (f1bfce4)
- Activity detector (a9db5f7)
- Support using/await using for Terminal and spawn (dc981ad)
🩹 Fixes
- pty: Keep exit tsfn ref'd so pty.exited resolves when idle (#4)
💅 Refactors
🏡 Chore
- Run format (151d52d)