fluxflow-cli 1.19.0 → 1.19.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.
Files changed (2) hide show
  1. package/dist/fluxflow.js +34 -17
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -5742,8 +5742,7 @@ CWD: ${process.cwd()}${cwdMismatch ? ` (CWD Mismatch! Previous Path: ${lastCwd})
5742
5742
  **DIRECTORY STRUCTURE**
5743
5743
  ${dirStructure}
5744
5744
  ${memoryPrompt}
5745
- ${thinkingLevel != "Fast" ? `[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT ${(modelName || "gemma").toLowerCase().startsWith("gemma") ? "<think> ... </think>" : "THINKING"}**
5746
- ` : ""}[USER] ${agentText.replace(/\s*\[Prompted on:.*?\]/g, "").trim()}`.trim();
5745
+ ${thinkingLevel != "Fast" ? `${modelName.toLowerCase().startsWith("gemma") ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think**\n" : ""}` : ""}[USER] ${agentText.replace(/\s*\[Prompted on:.*?\]/g, "").trim()}`.trim();
5747
5746
  modifiedHistory.push({ role: "user", text: firstUserMsg });
5748
5747
  let lastUsage = null;
5749
5748
  const MAX_LOOPS = mode === "Flux" ? 70 : 7;
@@ -5774,8 +5773,7 @@ ${thinkingLevel != "Fast" ? `[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
5774
5773
 
5775
5774
  [STEERING HINT]: ${hint}`;
5776
5775
  } else {
5777
- modifiedHistory.push({ role: "user", text: `${thinkingLevel != "Fast" ? `[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT ${(modelName || "gemma").toLowerCase().startsWith("gemma") ? "<think> ... </think>" : "THINKING"}**
5778
- ` : ""}[STEERING HINT]: ${hint}` });
5776
+ modifiedHistory.push({ role: "user", text: `${thinkingLevel != "Fast" ? `${modelName.toLowerCase().startsWith("gemma") ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITICAL PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think**\n" : ""}` : ""}[STEERING HINT]: ${hint}` });
5779
5777
  }
5780
5778
  yield { type: "status", content: "Steering Hint Injected." };
5781
5779
  }
@@ -5846,19 +5844,22 @@ ${thinkingLevel != "Fast" ? `[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
5846
5844
  yield { type: "model_update", content: null };
5847
5845
  }
5848
5846
  currentSystemInstruction = getSystemInstruction(profile, !(targetModel || "gemma").toLowerCase().startsWith("gemma") ? "GEM" : thinkingLevel, mode, systemSettings, isMemoryEnabled, MAX_LOOPS, loop + 1);
5849
- const jitInstruction = `
5850
- [SYSTEM] Tool result received. Analyze output and proceed with your turn${thinkingLevel != "Fast" ? `. **STRICTLY MAINTAIN THINKING POLICY. DO NOT START A RESPONSE WITHOUT ${(targetModel || "gemma").toLowerCase().startsWith("gemma") ? "<think> ... </think>" : "THINKING"}**` : ""}`;
5847
+ const isGemma = modelName && modelName.toLowerCase().startsWith("gemma");
5851
5848
  const lastUserMsg = contents[contents.length - 1];
5852
- let addedMarker = false;
5853
- if (lastUserMsg && lastUserMsg.role === "user" && lastUserMsg.parts?.[0]?.text?.startsWith("[TOOL RESULT]")) {
5854
- lastUserMsg.parts[0].text += jitInstruction;
5855
- addedMarker = true;
5849
+ if (isGemma) {
5850
+ const jitInstruction = `
5851
+ [SYSTEM] Tool result received. Analyze output and proceed with your turn${thinkingLevel != "Fast" ? `. **STRICTLY MAINTAIN THINKING POLICY. DO NOT START A RESPONSE WITHOUT <think> ... </think>}**` : ""}`;
5852
+ if (lastUserMsg && lastUserMsg.role === "user" && lastUserMsg.parts?.[0]?.text?.startsWith("[TOOL RESULT]")) {
5853
+ lastUserMsg.parts[0].text += jitInstruction;
5854
+ }
5856
5855
  }
5857
- const stepThreshold = Math.floor(MAX_LOOPS * (mode === "Flux" ? 0.98 : 0.7));
5858
- const currentStep = loop + 1;
5859
- if (currentStep >= stepThreshold && lastUserMsg && lastUserMsg.parts?.[0]) {
5860
- lastUserMsg.parts[0].text += `
5856
+ if (isGemma) {
5857
+ const stepThreshold = Math.floor(MAX_LOOPS * (mode === "Flux" ? 0.98 : 0.7));
5858
+ const currentStep = loop + 1;
5859
+ if (currentStep >= stepThreshold && lastUserMsg && lastUserMsg.parts?.[0]) {
5860
+ lastUserMsg.parts[0].text += `
5861
5861
  [SYSTEM] WARNING, Turn Limit Impending: Step ${currentStep}/${MAX_LOOPS}. Wrap up quickly/prompt user to continue & use [turn:finish] quickly.`;
5862
+ }
5862
5863
  }
5863
5864
  let activeContents = contents;
5864
5865
  let cachedContentName = null;
@@ -5919,9 +5920,6 @@ ${thinkingLevel != "Fast" ? `[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
5919
5920
  })()
5920
5921
  }
5921
5922
  });
5922
- if (addedMarker && contents[contents.length - 1]?.parts?.[0]) {
5923
- contents[contents.length - 1].parts[0].text = contents[contents.length - 1].parts[0].text.replace(jitInstruction, "").trim();
5924
- }
5925
5923
  turnText = "";
5926
5924
  lastToolSniffed = null;
5927
5925
  lastToolEventTime = null;
@@ -6695,6 +6693,17 @@ ${timestamp}`;
6695
6693
  }
6696
6694
  wasToolCalledInLastLoop = toolCallPointer > 0 || anyToolExecutedInThisTurn;
6697
6695
  }
6696
+ if (modelName && modelName.toLowerCase().startsWith("gemma")) {
6697
+ modifiedHistory.forEach((msg) => {
6698
+ if (msg.role === "user" && msg.text && msg.text.startsWith("[TOOL RESULT]")) {
6699
+ const jitInstructionFast = `
6700
+ [SYSTEM] Tool result received. Analyze output and proceed with your turn`;
6701
+ const jitInstructionThinking = `
6702
+ [SYSTEM] Tool result received. Analyze output and proceed with your turn. **STRICTLY MAINTAIN THINKING POLICY. DO NOT START A RESPONSE WITHOUT <think> ... </think>}**`;
6703
+ msg.text = msg.text.replace(jitInstructionThinking, "").replace(jitInstructionFast, "").trim();
6704
+ }
6705
+ });
6706
+ }
6698
6707
  } finally {
6699
6708
  await RevertManager.commitTransaction();
6700
6709
  }
@@ -7888,6 +7897,10 @@ function App({ args = [] }) {
7888
7897
  cmd: "gemma-4-31b-it",
7889
7898
  desc: "Standard Default"
7890
7899
  },
7900
+ {
7901
+ cmd: "gemini-2.5-flash",
7902
+ desc: "Fast & Reliable (Limited Free Quota)"
7903
+ },
7891
7904
  {
7892
7905
  cmd: "gemini-3-flash-preview",
7893
7906
  desc: "Fast & Lightweight (Limited Free Quota)"
@@ -7897,6 +7910,10 @@ function App({ args = [] }) {
7897
7910
  desc: "Flash Latest (Limited Free Quota) [Instability Issues]"
7898
7911
  }
7899
7912
  ] : [
7913
+ {
7914
+ cmd: "gemini-2.5-flash",
7915
+ desc: "Fast & Reliable"
7916
+ },
7900
7917
  {
7901
7918
  cmd: "gemini-3.1-flash-lite",
7902
7919
  desc: "Ultra-Fast & Lite"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "date": "2026-06-03",
5
5
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
6
6
  "keywords": [