fluxflow-cli 1.9.28 → 1.9.30

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 +12 -5
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -1027,7 +1027,7 @@ ${foundFiles.map((f) => `- ${f.name}: ${f.desc}`).join("\n")}
1027
1027
  Check these first; these files > training data for project consistency. Safety rules apply` : "";
1028
1028
  return `${nameStr}${nicknameStr}${userInstrStr}
1029
1029
  [SYSTEM (OVERRIDES EVERYTHING)]
1030
- Identity: Flux Flow (by Kushal Roy Chowdhury). Sassy, Friendly, CLI Agent. No flirting
1030
+ Identity: Flux Flow (by Kushal Roy Chowdhury). Sassy, Friendly, CLI Agent. No flirting ${mode === "Flux" ? "" : ""}
1031
1031
  Mode: ${mode}${thinkingLevel !== "Fast" ? "(Thinking Mode)" : ""}. ${mode === "Flux" ? "Goal-oriented" : "Conversational & UX-focused"}
1032
1032
  CWD: ${cwdStr}.${isSystemDir ? " [PROTECTED: ASK BEFORE MODIFYING]" : ""} OS: ${osDetected}${osDetected === "Windows" && mode === "Flux" ? ". PS via CMD" : ""}
1033
1033
  High Priority: [SYSTEM], [STEERING HINT]
@@ -1062,7 +1062,7 @@ ${projectContextBlock}
1062
1062
  - Task Complete? End loop with [turn: finish]
1063
1063
  [/SYSTEM]`.trim();
1064
1064
  };
1065
- getJanitorInstruction = (originalText, agentRaws, userMemories = "", isMemoryEnabled = true, needTitle = true) => {
1065
+ getJanitorInstruction = (userMemories = "", isMemoryEnabled = true, needTitle = true) => {
1066
1066
  return `
1067
1067
  ${userMemories ? `
1068
1068
 
@@ -2731,8 +2731,8 @@ var init_ai = __esm({
2731
2731
  isMemoryEnabled,
2732
2732
  true
2733
2733
  );
2734
- let agentRes = `${cleanedFullResponse.replace(/\[tool:functions\..*?\]/g, "").replace(/<think>.*<\/think>/g, "").replace(/\[Prompted on:.*?\]/g, "").replace(/\[turn: continue\]/g, "").replace(/\[turn: finish\]/g, "").replace(/\[TOOL RESULTS\]/g, "").replace(/\[tool results\]/g, "").substring(0, 3500)}`;
2735
- if (agentRes.length > 3500) {
2734
+ let agentRes = `${cleanedFullResponse.replace(/\[tool:functions\..*?\]/g, "").replace(/<think>.*<\/think>/g, "").replace(/\[Prompted on:.*?\]/g, "").replace(/\[turn: continue\]/g, "").replace(/\[turn: finish\]/g, "").replace(/\[TOOL RESULTS\]/g, "").replace(/\[tool results\]/g, "").substring(0, 24e3)}`;
2735
+ if (agentRes.length > 24e3) {
2736
2736
  agentRes += "\n... (truncated) ...";
2737
2737
  }
2738
2738
  let originalTextProcessed = agentText.replace(/\[Prompted on:.*?\]/g, "").trim();
@@ -2836,6 +2836,10 @@ DEBUG [${date}]: ${finalSynthesis}
2836
2836
  } catch (janitorErr) {
2837
2837
  attempts++;
2838
2838
  const date = (/* @__PURE__ */ new Date()).toLocaleString();
2839
+ if (process.stdout.isTTY) {
2840
+ process.stdout.write(`\x1B]0;Memory Error\x07`);
2841
+ }
2842
+ await new Promise((resolve) => setTimeout(resolve, 3e3));
2839
2843
  const janitorErrDir = path15.join(LOGS_DIR, "janitor");
2840
2844
  if (!fs16.existsSync(janitorErrDir)) fs16.mkdirSync(janitorErrDir, { recursive: true });
2841
2845
  fs16.appendFileSync(path15.join(janitorErrDir, "error.log"), `ERROR [Attempt ${attempts}/${MAX_JANITOR_RETRIES + 1}] [${date}]: ${String(janitorErr)}
@@ -3329,7 +3333,10 @@ ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS STRIC
3329
3333
  "low": 200,
3330
3334
  "medium": 500,
3331
3335
  "high": 2e3,
3332
- "max": 3500
3336
+ "max": 3500,
3337
+ "xhigh": 3500,
3338
+ "off": 50,
3339
+ "fast": 50
3333
3340
  };
3334
3341
  const cap = thinkingCaps[thinkingLevel?.toLowerCase()] || 2500;
3335
3342
  let isOverVerboseThinking = wordCount > cap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.9.28",
3
+ "version": "1.9.30",
4
4
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
5
5
  "keywords": [
6
6
  "ai",