fluxflow-cli 3.13.0 → 3.13.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 +21 -3
  2. package/package.json +3 -2
package/dist/fluxflow.js CHANGED
@@ -7797,6 +7797,10 @@ ${tempMemories}` : "";
7797
7797
  ` : "";
7798
7798
  };
7799
7799
  getSystemInstruction = (profile, thinkingLevel, mode, systemSettings, isMemoryEnabled = true, isFirstPrompt = false, aiProvider = "Google", isMultiModal = false, isGemini, chatId) => {
7800
+ let forcedReasoning = false;
7801
+ if (process.env.forcedReasoning && process.env.NVIDIA_BASE_URL && aiProvider.toUpperCase() === "NVIDIA") {
7802
+ forcedReasoning = true;
7803
+ }
7800
7804
  let thinkingConfig = "";
7801
7805
  if (!isGemini && aiProvider === "Google") {
7802
7806
  let levelKey = thinkingLevel;
@@ -7879,7 +7883,7 @@ Mode: ${mode}${thinkingLevel !== "Fast" ? "" : ""}. ${mode === "Flux" ? "Logical
7879
7883
 
7880
7884
  -- THINKING GUIDANCE --
7881
7885
  ${aiProvider === "Mistral" || aiProvider === "Google" && !isGemini ? `${thinkingConfig}
7882
- ${thinkingLevel !== "Fast" && (aiProvider === "Mistral" || thinkingLevel !== "xHigh" && !isGemini) ? `CRITICAL THINKING POLICY
7886
+ ${forcedReasoning || thinkingLevel !== "Fast" && (aiProvider === "Mistral" || thinkingLevel !== "xHigh" && !isGemini) ? `CRITICAL THINKING POLICY
7883
7887
  - Use <think> ... </think> before responding, even with simple queries/greetings
7884
7888
  ` : ""}` : `${thinkingConfig}
7885
7889
  `}
@@ -12254,6 +12258,7 @@ __export(ai_exports, {
12254
12258
  runSubagent: () => runSubagent,
12255
12259
  signalTermination: () => signalTermination
12256
12260
  });
12261
+ import dotenv from "dotenv";
12257
12262
  import { GoogleGenAI, ThinkingLevel, HarmBlockThreshold, HarmCategory } from "@google/genai";
12258
12263
  import path24, { normalize } from "path";
12259
12264
  import fs25 from "fs";
@@ -12277,6 +12282,7 @@ var init_ai = __esm({
12277
12282
  init_revert();
12278
12283
  init_advanceRevert();
12279
12284
  init_editor();
12285
+ dotenv.config();
12280
12286
  RE_STUTTER_CODE_BLOCK_CLOSED = /```[\s\S]*?```/g;
12281
12287
  RE_STUTTER_CODE_BLOCK_OPEN = /```[\s\S]*$/g;
12282
12288
  RE_STUTTER_INLINE_CODE = /`[^`]+`/g;
@@ -20032,21 +20038,31 @@ ${cleanText}`, color: "magenta" }];
20032
20038
  if (parts[1]) {
20033
20039
  let val = parts[1].toLowerCase();
20034
20040
  const isBypass = parts.includes("--bypass");
20041
+ const isForce = parts.includes("--force");
20035
20042
  formattedLevel = val.charAt(0).toUpperCase() + val.slice(1);
20036
20043
  if (val === "xhigh") {
20037
20044
  formattedLevel = "xHigh";
20038
20045
  }
20046
+ let forceMsg = "";
20047
+ if (isForce) {
20048
+ if (process.env.NVIDIA_BASE_URL) {
20049
+ forceMsg = " Enabled Forced Reasoning";
20050
+ } else {
20051
+ forceMsg = " --force is not supported in this context";
20052
+ }
20053
+ process.env.forcedReasoning = "true";
20054
+ }
20039
20055
  if (!isBypass && mode === "Flow" && formattedLevel === "xHigh") {
20040
20056
  setMessages((prev) => {
20041
20057
  setCompletedIndex(prev.length + 1);
20042
- return [...prev, { id: Date.now(), role: "system", text: `[RESTRICTED] "${formattedLevel}" is restricted in Flow mode. Switch to Flux to enable Higher Thinking Levels.`, isMeta: true }];
20058
+ return [...prev, { id: Date.now(), role: "system", text: `[RESTRICTED] "${formattedLevel}" is restricted in Flow mode. Switch to Flux to enable Higher Thinking Levels.${forceMsg}`, isMeta: true }];
20043
20059
  });
20044
20060
  } else {
20045
20061
  setThinkingLevel(formattedLevel);
20046
20062
  const s2 = emojiSpace(1);
20047
20063
  setMessages((prev) => {
20048
20064
  setCompletedIndex(prev.length + 1);
20049
- return [...prev, { id: Date.now(), role: "system", text: `[SYSTEM] Thinking level set to ${formattedLevel}${isBypass ? ` (Bypass Activated)` : ""}`, isMeta: true }];
20065
+ return [...prev, { id: Date.now(), role: "system", text: `[SYSTEM] Thinking level set to ${formattedLevel}${isBypass ? ` (Bypass Activated)` : ""}${forceMsg}`, isMeta: true }];
20050
20066
  });
20051
20067
  }
20052
20068
  } else {
@@ -22935,6 +22951,8 @@ var init_app = __esm({
22935
22951
  import { spawn as spawn3 } from "child_process";
22936
22952
  import { fileURLToPath as fileURLToPath4 } from "url";
22937
22953
  import os6 from "os";
22954
+ import dotenv2 from "dotenv";
22955
+ dotenv2.config();
22938
22956
  var totalSystemRamBytes = os6.totalmem();
22939
22957
  var totalSystemRamMB = totalSystemRamBytes / (1024 * 1024);
22940
22958
  var SAFETY_MARGIN = 0.5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "date": "2026-07-29",
5
5
  "description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.",
6
6
  "keywords": [
@@ -41,12 +41,13 @@
41
41
  },
42
42
  "scripts": {
43
43
  "start": "tsx ./src/cli.jsx",
44
- "build": "esbuild ./src/cli.jsx --bundle --platform=node --format=esm --outfile=./dist/fluxflow.js --external:react --external:ink --external:chalk --external:fs-extra --external:gradient-string --external:ink-text-input --external:ink-select-input --external:@google/genai --external:zod --external:nanoid --external:puppeteer --external:pdf-lib --external:node-pty --external:html-to-docx --external:typescript --external:ws --external:web-tree-sitter --external:diff"
44
+ "build": "esbuild ./src/cli.jsx --bundle --platform=node --format=esm --outfile=./dist/fluxflow.js --external:react --external:ink --external:chalk --external:fs-extra --external:gradient-string --external:ink-text-input --external:ink-select-input --external:@google/genai --external:zod --external:nanoid --external:puppeteer --external:pdf-lib --external:node-pty --external:html-to-docx --external:typescript --external:ws --external:web-tree-sitter --external:diff --external:dotenv"
45
45
  },
46
46
  "dependencies": {
47
47
  "@google/genai": "^1.52.0",
48
48
  "chalk": "^5.6.2",
49
49
  "diff": "^9.0.0",
50
+ "dotenv": "^17.4.2",
50
51
  "fs-extra": "^11.3.4",
51
52
  "gradient-string": "^3.0.0",
52
53
  "html-to-docx": "^1.8.0",