fluxflow-cli 2.10.0 → 2.10.1

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.
Files changed (2) hide show
  1. package/dist/fluxflow.js +14 -3
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -8169,7 +8169,8 @@ ${activeSummaryBlock}${thinkingLevel !== "Fast" && thinkingLevel !== "xHigh" &&
8169
8169
  let wasToolCalledInLastLoop = false;
8170
8170
  modifiedHistory.forEach((msg) => {
8171
8171
  if (msg.text && msg.role === "agent") {
8172
- msg.text = msg.text.replace(/(?:<(think|thought)>|\[(think|thought)\])[\s\S]*?(?:<\/(think|thought)>|\[\/(think|thought)\])/gi, "").trim();
8172
+ msg.text = msg.text.replace(/(?:<(think|thought)>|\[(think|thought)\])[\s\S]*?(?:<\/(think|thought)>|\[\/(think|thought)\])/gi, "");
8173
+ msg.text = msg.text.replace(/(?:<(think|thought)>|\[(think|thought)\])[^\[\n]*/gi, "").trim();
8173
8174
  }
8174
8175
  });
8175
8176
  for (let loop = 0; loop <= MAX_LOOPS; loop++) {
@@ -8331,7 +8332,7 @@ ${activeSummaryBlock}${thinkingLevel !== "Fast" && thinkingLevel !== "xHigh" &&
8331
8332
  }
8332
8333
  currentSystemInstruction = getSystemInstruction(profile, !(targetModel || "gemma").toLowerCase().startsWith("gemma") ? "GEM" : thinkingLevel, mode, systemSettings, isMemoryEnabled, isFirstPrompt, aiProvider, isMultiModal);
8333
8334
  const lastUserMsg = contents[contents.length - 1];
8334
- if (isBridgeConnected()) {
8335
+ if (isBridgeConnected() & loop > 0) {
8335
8336
  yield { type: "status", content: "Checking Code..." };
8336
8337
  await new Promise((resolve) => setTimeout(resolve, 2500));
8337
8338
  const ideCtxJIT = await getIDEContext();
@@ -9766,6 +9767,9 @@ Error Log can be found in ${path19.join(LOGS_DIR, "agent", "error.log")}`);
9766
9767
  const cleanedTurnText = contextSafeReplace(turnText, /(\[\s*(turn\s*:)?\s*(continue|finish)\s*\]|\[\[END\]\])/gi, "").trim();
9767
9768
  let isActuallyFinished = (hasFinish || toolResults.length === 0) && !isThinkingLoop && !isStutteringLoop && !isGeneralLoop;
9768
9769
  isActuallyFinished = toolResults.length === 0 ? isActuallyFinished : false;
9770
+ if (turnText && turnText.trim().endsWith('")]') && toolResults.length === 0) {
9771
+ isActuallyFinished = false;
9772
+ }
9769
9773
  if (isActuallyFinished) {
9770
9774
  const fullAgentTextRaw = fullAgentResponseChunks.join("\n");
9771
9775
  const cleanedFullResponse = fullAgentTextRaw.replace(/(?:<think>|\[think\])[\s\S]*?(?:<\/think>|\[\/think\])/g, "").trim();
@@ -9795,7 +9799,7 @@ Error Log can be found in ${path19.join(LOGS_DIR, "agent", "error.log")}`);
9795
9799
  }
9796
9800
  } else {
9797
9801
  if (wasToolCalledInLastLoop) {
9798
- modifiedHistory.push({ role: "user", text: `[SYSTEM] Failed to verify tool execution, Verify tool syntax, proper escaping or ask user if tool worked when unsure [/SYSTEM]` });
9802
+ modifiedHistory.push({ role: "user", text: `[SYSTEM] Failed to verify tool execution, MUST check if executed or failed. On failure try again [/SYSTEM]` });
9799
9803
  } else {
9800
9804
  modifiedHistory.push({ role: "user", text: `[SYSTEM] ${isStutteringLoop && !isThinkingLoop ? `STUTTERING DETECTED by Internal System. Re-calibrate your response & proceed.` : `${isThinkingLoop ? " OVER THINKING" : " LOOP"} DETECTED by Internal System${isThinkingLoop ? " for current EFFORT_LEVEL" : ""}. ${isThinkingLoop ? "If you have planned the task, prioritize execution/output" : "If you have finished your task use [[END]]"}`} [/SYSTEM]` });
9801
9805
  }
@@ -9808,6 +9812,13 @@ Error Log can be found in ${path19.join(LOGS_DIR, "agent", "error.log")}`);
9808
9812
  modifiedHistory.forEach((msg) => {
9809
9813
  if (msg.role === "user" && msg.text) {
9810
9814
  msg.text = msg.text.replace(/\n\[COMPILE ERROR\][\s\S]*?\[\/ERROR\]/g, "");
9815
+ msg.text = msg.text.replace(`
9816
+
9817
+ [SYSTEM] USER QUESTION. RESOLVE THIS SPECIFIC QUERY WITHIN '[ANSWER] ... [/ANSWER]' CONCISELY, NATURALLY [/SYSTEM]
9818
+ `, "").replace(`[SYSTEM] USER QUESTION. RESOLVE THIS SPECIFIC QUERY WITHIN '[ANSWER] ... [/ANSWER]' CONCISELY, NATURALLY
9819
+ **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think>** [/SYSTEM]
9820
+ `, "").replace(`[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think>** [/SYSTEM]
9821
+ `, "");
9811
9822
  if (modelName && modelName.toLowerCase().startsWith("gemma") && aiProvider === "Google" && msg.text.startsWith("[TOOL RESULT]")) {
9812
9823
  const jitInstructionFast = `
9813
9824
  [SYSTEM] Tool result received. Analyze output and proceed with your turn [/SYSTEM]`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "date": "2026-06-20",
5
5
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
6
6
  "keywords": [