The napi StreamState fields (utf8Pending, ansiPending) expect plain arrays (Vec<u8>), not Buffers. Passing Buffer.from() caused 'Given napi value is not an array on StreamState.utf8Pending' crash on multi-chunk bash output. Added regression test for multi-chunk state passing. AI-assisted: This change was authored with Claude (AI pair programming). |
||
|---|---|---|
| .. | ||
| index.ts | ||