fluxflow-cli 1.18.6 → 1.18.7

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 +5 -5
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -4840,7 +4840,7 @@ var init_ai = __esm({
4840
4840
  const isMemoryEnabled = systemSettings?.memory !== false;
4841
4841
  const persistentStorage = readEncryptedJson(MEMORIES_FILE, []);
4842
4842
  const janitorUserMemories = persistentStorage.map((m) => `- [${m.id}]: ${m.memory}`).join("\n");
4843
- const janitorContents = history.slice(0, -1).filter((msg) => msg.text && !msg.text.includes("[TOOL RESULT]") && !msg.text.includes("OBSERVATION:") && !msg.isMeta && !msg.isLogo && !String(msg.id).startsWith("welcome") && !String(msg.id).startsWith("logo")).slice(-14).map((msg) => {
4843
+ const janitorContents = history.slice(0, -1).filter((msg) => msg.text && !msg.text.includes("[TOOL RESULT]") && !msg.text.includes("OBSERVATION:") && !msg.text.startsWith("[TERMINAL_RECORD]") && !msg.isTerminalRecord && !msg.isMeta && !msg.isLogo && !String(msg.id).startsWith("welcome") && !String(msg.id).startsWith("logo")).slice(-14).map((msg) => {
4844
4844
  let processedText = stripAnsi2(msg.text).replace(/\[tool:functions\..*?\]/g, "").replace(/(?:<think>|\[think\])[\s\S]*?(?:<\/think>|\[\/think\])/g, "").replace(/\[Prompted on:.*?\]/g, "").replace(/\[METADATA \(PRIORITY: DYNAMIC\)\] Time: ([^|\n]+)/g, (match, p1) => {
4845
4845
  return `[METADATA (PRIORITY: DYNAMIC)] Time: ${p1.replace(/:\d{2}/g, "")}`;
4846
4846
  }).replace(/\[turn: continue\]/g, "").replace(/\[turn: finish\]/g, "").replace(/\[TOOL RESULTS\]/g, "").replace(/\[tool results\]/g, "").replace(/\r?\n\r?\n/g, "\n").replace(/\n\n/g, "\n").replace(/\\n\\n/g, "").trim();
@@ -5347,8 +5347,8 @@ ${newMemoryListStr}
5347
5347
  try {
5348
5348
  const files = fs16.readdirSync(dir);
5349
5349
  const sep = path15.sep;
5350
- if (files.length > 70) {
5351
- return `${prefix}\u2514\u2500\u2500 ${path15.basename(dir)}${sep}...
5350
+ if (files.length > 80) {
5351
+ return `${prefix}\u2514\u2500\u2500 ${path15.basename(dir)}${sep} ..80+ files...
5352
5352
  `;
5353
5353
  }
5354
5354
  let result = "";
@@ -5381,7 +5381,7 @@ ${newMemoryListStr}
5381
5381
  if (stat.isDirectory()) {
5382
5382
  const subFiles = fs16.readdirSync(filePath);
5383
5383
  if (subFiles.length > 80 || depth >= 7) {
5384
- result += `${prefix}${connector}${file}${sep}...
5384
+ result += `${prefix}${connector}${file}${sep} ..{depth exceeded}..
5385
5385
  `;
5386
5386
  } else {
5387
5387
  result += `${prefix}${connector}${file}${sep}
@@ -5478,7 +5478,7 @@ ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
5478
5478
  accumulatedContext = "";
5479
5479
  }
5480
5480
  }
5481
- const contents = modifiedHistory.filter((msg) => (msg.role === "user" || msg.role === "agent" || msg.role === "system") && !String(msg.id).startsWith("welcome") && !msg.isMeta).map((msg) => {
5481
+ const contents = modifiedHistory.filter((msg) => (msg.role === "user" || msg.role === "agent" || msg.role === "system") && !String(msg.id).startsWith("welcome") && !msg.isMeta && !msg.isTerminalRecord && !(msg.text && msg.text.startsWith("[TERMINAL_RECORD]"))).map((msg) => {
5482
5482
  const parts = [{ text: msg.text }];
5483
5483
  if (msg.binaryPart) {
5484
5484
  parts.push(msg.binaryPart);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.18.6",
3
+ "version": "1.18.7",
4
4
  "date": "2026-05-30",
5
5
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
6
6
  "keywords": [