fluxflow-cli 3.6.1 → 3.7.0

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 CHANGED
@@ -4867,7 +4867,7 @@ var init_ChatLayout = __esm({
4867
4867
  paddingLeft: 2,
4868
4868
  width: "100%"
4869
4869
  };
4870
- return /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "column", marginTop: 1, width: "100%" }, /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "row", ...borderProps }, /* @__PURE__ */ React4.createElement(Text4, null, " ")), /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "row", ...borderProps }, /* @__PURE__ */ React4.createElement(Text4, { color: "gray", bold: true }, "\u25B6_ ", (text || "CODE").toUpperCase())));
4870
+ return /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "column", marginTop: 0, marginBottom: 0, width: "100%" }, /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "row", ...borderProps }, /* @__PURE__ */ React4.createElement(Text4, null, " ")), /* @__PURE__ */ React4.createElement(Box3, { flexDirection: "row", ...borderProps }, /* @__PURE__ */ React4.createElement(Text4, { color: "gray", bold: true }, "\u25B6_ ", (text || "CODE").toUpperCase())));
4871
4871
  }
4872
4872
  if (type === "code-line") {
4873
4873
  const { lineNum, lang } = block;
@@ -5336,7 +5336,8 @@ var init_main_tools = __esm({
5336
5336
  };
5337
5337
  TOOL_PROTOCOL = (mode, osDetected, isMultiModal, aiProvider, advanceRollback = false) => `
5338
5338
  -- TOOL DEFINITIONS --
5339
- Access Tools. **STRICTLY use the EXACT syntax** [tool:functions.ToolName(args)]. **NO OTHER SYNTAX/MARKERS/BOUNDARY ALLOWED**
5339
+ TO ACCESS TOOLS **STRICTLY USE THE EXACT FORMAT IN CHAT OUTPUT:** [tool:functions.ToolName(args)]
5340
+ **NO OTHER SYNTAX/MARKERS/BOUNDARY ALLOWED**
5340
5341
 
5341
5342
  **TOOL USAGE POLICY:**
5342
5343
  - **MAX 3 TOOL CALLS PER TURN${mode === "Flux" ? " (EXCEPTION FOR Todo TOOL: 3+ CALLS ALLOWED, Run TOOL: Limit 1, OR 2 CONSECUTIVE Run TOOL)" : ""}. Next Turn, verify tool results, plan next**
@@ -11337,7 +11338,16 @@ var init_ai = __esm({
11337
11338
  "High": "16384",
11338
11339
  "xHigh": "16384"
11339
11340
  };
11340
- const maxTokens = isMinimax || isDeepSeek || isPoolside || isThinkingmachines ? 16384 : 32768;
11341
+ const THINKINGMACHINES_REASONING_VALUES = {
11342
+ "Fast": "none",
11343
+ "Low": "minimal",
11344
+ "Medium": "medium",
11345
+ "Standard": "medium",
11346
+ "High": "max",
11347
+ "xHigh": "max"
11348
+ };
11349
+ let maxTokens = isMinimax || isDeepSeek || isPoolside || isThinkingmachines ? 16384 : 32768;
11350
+ maxTokens = process.env.NVIDIA_BASE_URL ? 1024 : maxTokens;
11341
11351
  const body = {
11342
11352
  model,
11343
11353
  messages,
@@ -11347,7 +11357,8 @@ var init_ai = __esm({
11347
11357
  temperature,
11348
11358
  ...isGPT && { thinking: GPT_THINKING_LEVELS[thinkingLevel] || "high" }
11349
11359
  };
11350
- if (isLlama3 || isThinkingmachines) {
11360
+ if (process.env.NVIDIA_BASE_URL) {
11361
+ } else if (isLlama3) {
11351
11362
  } else if (isKimi) {
11352
11363
  body.chat_template_kwargs = { thinking: isThinking };
11353
11364
  } else if (isGemma) {
@@ -11385,14 +11396,20 @@ var init_ai = __esm({
11385
11396
  }
11386
11397
  } else if (isPoolside) {
11387
11398
  body.chat_template_kwargs = { enable_thinking: isThinking };
11399
+ } else if (isThinkingmachines) {
11400
+ body.reasoning_effort = THINKINGMACHINES_REASONING_VALUES[apiLevel] || "0.7";
11388
11401
  }
11389
11402
  let attempts = 0;
11390
11403
  const maxAttempts = 6;
11391
11404
  let hasYielded = false;
11405
+ let baseUrl = process.env.NVIDIA_BASE_URL || "https://integrate.api.nvidia.com/v1/chat/completions";
11406
+ if (!baseUrl.endsWith("/chat/completions")) {
11407
+ baseUrl = baseUrl.replace(/\/+$/, "") + "/chat/completions";
11408
+ }
11392
11409
  while (attempts < maxAttempts) {
11393
11410
  attempts++;
11394
11411
  try {
11395
- const response = await fetchWithBackoff("https://integrate.api.nvidia.com/v1/chat/completions", {
11412
+ const response = await fetchWithBackoff(baseUrl, {
11396
11413
  method: "POST",
11397
11414
  headers: {
11398
11415
  "Content-Type": "application/json",
@@ -11449,6 +11466,7 @@ var init_ai = __esm({
11449
11466
  totalTokenCount: usage.total_tokens || usage.prompt_tokens + usage.completion_tokens,
11450
11467
  promptTokenCount: usage.prompt_tokens || 0,
11451
11468
  candidatesTokenCount: usage.completion_tokens || 0,
11469
+ cachedContentTokenCount: usage.prompt_tokens_details?.cached_tokens || 0,
11452
11470
  thoughtsTokenCount: (usage.completion_tokens_details?.reasoning_tokens || 0) + (usage.completion_tokens_details?.thoughts_tokens || 0)
11453
11471
  };
11454
11472
  hasNewData = true;
@@ -11517,13 +11535,15 @@ var init_ai = __esm({
11517
11535
  }
11518
11536
  }
11519
11537
  } else if (!isStreamingStarted) {
11520
- push({ value: { type: "status", content: `Queue '${res.status}'` }, done: false });
11538
+ push({ value: { type: "status", content: `Queue ${res.status}` }, done: false });
11521
11539
  }
11522
11540
  } catch (e) {
11523
11541
  }
11524
11542
  };
11525
- poll();
11526
- pollInterval = setInterval(poll, 5e3);
11543
+ if (!process.env.NVIDIA_BASE_URL) {
11544
+ poll();
11545
+ pollInterval = setInterval(poll, 5e3);
11546
+ }
11527
11547
  (async () => {
11528
11548
  try {
11529
11549
  const iterator = stream[Symbol.asyncIterator]();
@@ -15346,6 +15366,7 @@ Error Log can be found in ${path22.join(LOGS_DIR, "agent", "error.log")}`);
15346
15366
  if (systemSettings?.advanceRollback) {
15347
15367
  await AdvanceRevertManager.cleanup(chatId);
15348
15368
  }
15369
+ await getIDEContext();
15349
15370
  }
15350
15371
  yield { type: "status", content: null };
15351
15372
  };
@@ -15365,8 +15386,9 @@ Error Log can be found in ${path22.join(LOGS_DIR, "agent", "error.log")}`);
15365
15386
  "ask": `- [tool:functions.Ask(question="...", optionA="option::description", ...MAX 4)]. Ambiguity Resolution. Mandatory Triggers: Path Divergence, Security, Risk Mitigation. ask >> finish/guess. Suggest best options; don't ask for preferences. 'option' SHOULD be short`
15366
15387
  };
15367
15388
  const providedToolsSection = `-- TOOL DEFINITIONS (path = relative to CWD, path separator: '/') --
15368
- To call tools USE THIS EXACT SYNTAX: [tool:functions.ToolName(args)]. **CRITICAL: NO OTHER SYNTAX/MARKERS/BOUNDARY ALLOWED, ONLY VALID TOOL CALL SCHEMA IS THE ONE PROVIDED IN SYSTEM PROMPT. NO OTHER XML OR MARKERS WILL BE ALLOWED**
15369
- **
15389
+ TO ACCESS TOOLS **STRICTLY USE THE EXACT FORMAT IN CHAT OUTPUT:** [tool:functions.ToolName(args)]
15390
+ **NO OTHER SYNTAX/MARKERS/BOUNDARY ALLOWED**
15391
+
15370
15392
  TOOL POLICY:
15371
15393
  - MAX 3 TOOL CALLS PER TURN. Next Turn, verify tool results, plan next
15372
15394
  - USE multiple search & replace on patch tool if editing same file/path with many changes \u2190 HIGHLY RECOMMENDED
package/model_config.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 0,
3
- "release": 20260721,
3
+ "release": 20260722,
4
4
  "fallbacks": {
5
5
  "janitor_default": "gemini-3.1-flash-lite",
6
6
  "janitor_attempts_fallback": "gemma-4-26b-a4b-it",
@@ -569,13 +569,18 @@
569
569
  "cmd": "\n--- Gemini 3 Models ---",
570
570
  "desc": ""
571
571
  },
572
+ {
573
+ "cmd": "gemini-3.1-flash-lite",
574
+ "multimodal": true,
575
+ "desc": "Ultra-Fast & Lite (Multimodal)"
576
+ },
572
577
  {
573
578
  "cmd": "gemini-3-flash-preview",
574
579
  "multimodal": true,
575
580
  "desc": "Fast & Lightweight (Multimodal) [Limited Free Quota]"
576
581
  },
577
582
  {
578
- "cmd": "gemini-3.5-flash",
583
+ "cmd": "gemini-3.6-flash",
579
584
  "multimodal": true,
580
585
  "desc": "Flash Latest (Multimodal) [Limited Free Quota] Instability Issues"
581
586
  }
@@ -615,7 +620,7 @@
615
620
  "desc": "Default, Fast & Lightweight (Multimodal)"
616
621
  },
617
622
  {
618
- "cmd": "gemini-3.5-flash",
623
+ "cmd": "gemini-3.6-flash",
619
624
  "multimodal": true,
620
625
  "desc": "Flash Latest (Multimodal) [Instability Issues]"
621
626
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "3.6.1",
4
- "date": "2026-07-21",
3
+ "version": "3.7.0",
4
+ "date": "2026-07-22",
5
5
  "description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.",
6
6
  "keywords": [
7
7
  "ai",