char-slop/berry
multipurpose self-modifiable agentic harness
git clone https://git.t4t.associates/char-slop/berry
ca9626a
main
1Object . defineProperty ( ReadableStream . prototype , Symbol . asyncIterator , { 2configurable :true , 3writable :true , 4value :async function * < T > ( 5this :ReadableStream < T >, 6{ preventCancel= false } :{ preventCancel ?:boolean } = {}, 7) { 8const reader = this . getReader (); 9let done = false ; 10try { 11while ( true ) { 12const result = await reader . read (); 13done = result . done ; 14if ( done ) return ; 15yield result . value ; 16} 17} finally { 18try { 19if ( ! done && ! preventCancel ) await reader . cancel (); 20} finally { 21reader . releaseLock (); 22} 23} 24}, 25});