fluxflow-cli 1.21.1 → 1.21.2
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 +4 -4
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -5099,7 +5099,7 @@ var init_ai = __esm({
|
|
|
5099
5099
|
} catch (e) {
|
|
5100
5100
|
}
|
|
5101
5101
|
}
|
|
5102
|
-
if (Date.now() - lastFlushTime >=
|
|
5102
|
+
if (Date.now() - lastFlushTime >= 150 && hasNewData) {
|
|
5103
5103
|
yield {
|
|
5104
5104
|
candidates: pendingParts.length > 0 ? [{ content: { parts: [...pendingParts] } }] : [],
|
|
5105
5105
|
usageMetadata: latestUsageMetadata
|
|
@@ -5236,7 +5236,7 @@ var init_ai = __esm({
|
|
|
5236
5236
|
} catch (e) {
|
|
5237
5237
|
}
|
|
5238
5238
|
}
|
|
5239
|
-
if (Date.now() - lastFlushTime >=
|
|
5239
|
+
if (Date.now() - lastFlushTime >= 150 && hasNewData) {
|
|
5240
5240
|
yield {
|
|
5241
5241
|
candidates: pendingParts.length > 0 ? [{ content: { parts: [...pendingParts] } }] : [],
|
|
5242
5242
|
usageMetadata: latestUsageMetadata
|
|
@@ -6628,7 +6628,7 @@ ${thinkingLevel != "Fast" && aiProvider === "Google" ? `${modelName.toLowerCase(
|
|
|
6628
6628
|
await new Promise((resolve) => setTimeout(resolve, 3e3));
|
|
6629
6629
|
break;
|
|
6630
6630
|
}
|
|
6631
|
-
const toolActionableText = turnText.replace(/(?:<think>|\[think\])[\s\S]*?(?:<\/think>|\[\/think\]|$)/gi, "");
|
|
6631
|
+
const toolActionableText = turnText.replace(/(?:<(think|thought|thoughts)>|\[(think|thought|thoughts)\])[\s\S]*?(?:<\/(think|thought|thoughts)>|\[\/(think|thought|thoughts)\]|$)/gi, "");
|
|
6632
6632
|
const allToolsFound = detectToolCalls(toolActionableText);
|
|
6633
6633
|
while (allToolsFound.length > toolCallPointer) {
|
|
6634
6634
|
const toolCall = allToolsFound[toolCallPointer];
|
|
@@ -6948,7 +6948,7 @@ ${boxBottom}` };
|
|
|
6948
6948
|
if (normToolName === "memory" && result.includes("SUCCESS")) yield { type: "memory_updated" };
|
|
6949
6949
|
toolCallPointer++;
|
|
6950
6950
|
}
|
|
6951
|
-
if (aiProvider === "Google" && pendingGoogleText && Date.now() - lastGoogleFlushTime >=
|
|
6951
|
+
if (aiProvider === "Google" && pendingGoogleText && Date.now() - lastGoogleFlushTime >= 150) {
|
|
6952
6952
|
yield { type: "text", content: pendingGoogleText };
|
|
6953
6953
|
pendingGoogleText = "";
|
|
6954
6954
|
lastGoogleFlushTime = Date.now();
|