fluxflow-cli 3.2.5 → 3.2.6
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/fluxflow.js +7 -5
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -18652,10 +18652,12 @@ ${timestamp}` };
|
|
|
18652
18652
|
typewriterIntervalRef.current = setInterval(() => {
|
|
18653
18653
|
const queue = typewriterQueueRef.current;
|
|
18654
18654
|
if (queue.length > 0) {
|
|
18655
|
-
let batchSize =
|
|
18656
|
-
if (queue.length >
|
|
18657
|
-
else if (queue.length >
|
|
18658
|
-
else if (queue.length >
|
|
18655
|
+
let batchSize = 2;
|
|
18656
|
+
if (queue.length > 65) batchSize = 16;
|
|
18657
|
+
else if (queue.length > 50) batchSize = 12;
|
|
18658
|
+
else if (queue.length > 35) batchSize = 8;
|
|
18659
|
+
else if (queue.length > 15) batchSize = 6;
|
|
18660
|
+
else if (queue.length > 5) batchSize = 4;
|
|
18659
18661
|
let changed = false;
|
|
18660
18662
|
const nextMsgs = [...activeStreamMessagesRef.current];
|
|
18661
18663
|
const clonedIndices = /* @__PURE__ */ new Set();
|
|
@@ -18697,7 +18699,7 @@ ${timestamp}` };
|
|
|
18697
18699
|
typewriterIntervalRef.current = null;
|
|
18698
18700
|
finalizeTurn(apiStartVal);
|
|
18699
18701
|
}
|
|
18700
|
-
},
|
|
18702
|
+
}, 100);
|
|
18701
18703
|
};
|
|
18702
18704
|
const awaitTypewriter = async () => {
|
|
18703
18705
|
while (systemSettings.progressiveRendering && typewriterQueueRef.current.length > 0) {
|