open-agents-ai 0.187.268 → 0.187.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -310079,11 +310079,15 @@ var init_stream_renderer = __esm({
|
|
|
310079
310079
|
}
|
|
310080
310080
|
/** Schedule a timer to flush partial buffer (for streaming smoothness) */
|
|
310081
310081
|
scheduleFlush(kind) {
|
|
310082
|
-
this.
|
|
310082
|
+
if (this.flushTimer) return;
|
|
310083
310083
|
this.flushTimer = setTimeout(() => {
|
|
310084
|
+
this.flushTimer = null;
|
|
310084
310085
|
if (this.lineBuffer.length > 0) {
|
|
310085
310086
|
this.flushPartial(kind);
|
|
310086
310087
|
}
|
|
310088
|
+
if (this.lineBuffer.length > 0) {
|
|
310089
|
+
this.scheduleFlush(kind);
|
|
310090
|
+
}
|
|
310087
310091
|
}, 150);
|
|
310088
310092
|
}
|
|
310089
310093
|
cancelFlush() {
|
package/package.json
CHANGED