fluxflow-cli 3.16.2 → 3.16.4

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 -5
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -15348,10 +15348,18 @@ ${newMemoryListStr}
15348
15348
  const summariesFile = path27.join(SECRET_DIR, "chat-summaries.json");
15349
15349
  const flattenContext = (hist) => {
15350
15350
  return hist.filter(
15351
- (m) => (m.role === "user" || m.role === "agent" || m.role === "system") && m.role !== "think" && !m.isVisualFeedback && !m.isMeta && !String(m.id).startsWith("welcome")
15351
+ (m) => (m.role === "user" || m.role === "agent" || m.role === "system") && m.role !== "think" && !m.isVisualFeedback && !m.isMeta && !m.isTerminalRecord && !(m.text && m.text.includes("[TERMINAL_RECORD]")) && !String(m.id).startsWith("welcome")
15352
15352
  ).map((m) => {
15353
- const role = m.text?.startsWith("[TOOL RESULT]") ? "TOOL" : m.role === "agent" ? "AGENT" : "USER";
15354
- return `[${role}]: ${m.text}`;
15353
+ const rawText = m.fullText || m.text || "";
15354
+ const isToolResult = m.role === "system" || rawText.startsWith("[TOOL RESULT]:") || m.text && m.text.startsWith("[TOOL RESULT]:");
15355
+ let text = rawText;
15356
+ if (isToolResult && (rawText.includes("[TOOL RESULT]:") || m.text && m.text.includes("[TOOL RESULT]:"))) {
15357
+ text = "[TOOL RESULT]: ...truncated for summary";
15358
+ } else {
15359
+ text = text.replace(/(\[(?:tool|agent):[a-zA-Z0-9_\.]+)\([\s\S]*?\)(\])/g, "$1(...)$2");
15360
+ }
15361
+ const role = isToolResult ? "TOOL" : m.role === "agent" ? "AGENT" : "USER";
15362
+ return `[${role}]: ${text}`;
15355
15363
  }).join("\n\n");
15356
15364
  };
15357
15365
  const runCondenser = async (flattenedText2, oldSummary2) => {
@@ -16039,9 +16047,10 @@ ${ideCtx.warnings}
16039
16047
  }
16040
16048
  const osDetected = process.platform === "win32" ? "Windows" : process.platform === "darwin" ? "macOS" : "Linux";
16041
16049
  const cleanPromptForModel = cleanAgentText.replace(/\\(@\[[^\]]+\])/g, "$1");
16042
- const firstUserMsg = `[METADATA, Chat Context > Metadata]
16050
+ const firstUserMsg = `[SYSTEM METADATA, Chat Context > Metadata]
16043
16051
  Time: ${dateTimeStr}
16044
- OS: ${osDetected}${systemSettings?.dynamicDirAwareness ? dirStructure : ""}${cwdMismatch ? `WARNING: CWD Mismatch! Previous Path: "${lastCwd}" WRITE the change in chat to aviod path mismatch later
16052
+ OS: ${osDetected}${systemSettings?.dynamicDirAwareness ? dirStructure : ""}${cwdMismatch ? `
16053
+ WARNING: CWD Changed from previous: "${lastCwd}" to current: "${process.cwd()}", write change in chat to avoid future path mismatches
16045
16054
  ` : ""}${memoryPrompt}${ideBlock}
16046
16055
  [/METADATA]
16047
16056
  ${activeSummaryBlock}${thinkingLevel !== "Fast" && (aiProvider === "Mistral" || thinkingLevel !== "xHigh" && aiProvider === "Google") ? `${aiProvider === "Mistral" || modelName.toLowerCase().startsWith("gemma") ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS HIGH PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think>** [/SYSTEM]\n" : ""}` : ""}[SYSTEM Priority: HIGH] ONLY use the system prompt tool schema. eg: [tool:functions.ReadFolder(path=".")] [/SYSTEM]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "3.16.2",
3
+ "version": "3.16.4",
4
4
  "date": "2026-08-02",
5
5
  "description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.",
6
6
  "keywords": [