fluxflow-cli 2.16.4 → 2.16.6
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 +7 -7
- package/package.json +2 -2
package/dist/fluxflow.js
CHANGED
|
@@ -9670,7 +9670,7 @@ var init_ai = __esm({
|
|
|
9670
9670
|
colorMainWords = (label2) => {
|
|
9671
9671
|
if (!label2) return label2;
|
|
9672
9672
|
return label2.replace(/(?:(\x1b\[\d+m))?([✔✗✖🔍📖→➕↻•])(?:(\x1b\[\d+m))?\s*\b(Created|Read|Edited|Viewed|Auto-Read|List|Generated|Written|Searched|Get Map|Write Canceled|Edit Canceled|Write Cancelled|Edit Denied|Visited|Updated|Reviewed)\b/ig, (match, ansiBefore, icon, ansiAfter, word) => {
|
|
9673
|
-
return `${ansiBefore || ""}${icon}${ansiAfter || ""}
|
|
9673
|
+
return `${ansiBefore || ""}${icon}${ansiAfter || ""} \x1B[95m${word}\x1B[0m`;
|
|
9674
9674
|
});
|
|
9675
9675
|
};
|
|
9676
9676
|
TERMINATION_SIGNAL = false;
|
|
@@ -11659,7 +11659,7 @@ ${activeSummaryBlock}${thinkingLevel !== "Fast" && thinkingLevel !== "xHigh" &&
|
|
|
11659
11659
|
}
|
|
11660
11660
|
if (TERMINATION_SIGNAL) {
|
|
11661
11661
|
yield { type: "status", content: "Request Cancelled" };
|
|
11662
|
-
yield { type: "text", content: "\n\n\x1B[33m\
|
|
11662
|
+
yield { type: "text", content: "\n\n\x1B[33m\u24D8 Request Cancelled\x1B[0m" };
|
|
11663
11663
|
break;
|
|
11664
11664
|
}
|
|
11665
11665
|
if (steeringCallback) {
|
|
@@ -12110,7 +12110,7 @@ ${ideErr} [/ERROR]`;
|
|
|
12110
12110
|
}
|
|
12111
12111
|
if (TERMINATION_SIGNAL) {
|
|
12112
12112
|
yield { type: "status", content: "Request Cancelled" };
|
|
12113
|
-
yield { type: "text", content: "\n\n\x1B[33m\
|
|
12113
|
+
yield { type: "text", content: "\n\n\x1B[33m\u24D8 Request Cancelled\x1B[0m" };
|
|
12114
12114
|
break;
|
|
12115
12115
|
}
|
|
12116
12116
|
let chunkText = "";
|
|
@@ -13248,7 +13248,7 @@ ${colorMainWords(output)}` };
|
|
|
13248
13248
|
} catch (err) {
|
|
13249
13249
|
if (TERMINATION_SIGNAL) {
|
|
13250
13250
|
yield { type: "status", content: "Request Cancelled" };
|
|
13251
|
-
yield { type: "text", content: "\n\n\x1B[33m\
|
|
13251
|
+
yield { type: "text", content: "\n\n\x1B[33m\u24D8 Request Cancelled\x1B[0m" };
|
|
13252
13252
|
break;
|
|
13253
13253
|
}
|
|
13254
13254
|
if (String(err).includes("Incomplete JSON segment at the end")) {
|
|
@@ -16771,7 +16771,7 @@ ${timestamp}` };
|
|
|
16771
16771
|
const newMsgs = [...updatedPrev, {
|
|
16772
16772
|
id: "cancel-" + Date.now(),
|
|
16773
16773
|
role: "system",
|
|
16774
|
-
text: "\n\n\x1B[33m\
|
|
16774
|
+
text: "\n\n\x1B[33m\u24D8 Request Cancelled\x1B[0m",
|
|
16775
16775
|
isMeta: true
|
|
16776
16776
|
}];
|
|
16777
16777
|
setCompletedIndex(newMsgs.length);
|
|
@@ -17386,7 +17386,7 @@ Selection: ${val}`,
|
|
|
17386
17386
|
}
|
|
17387
17387
|
return updated;
|
|
17388
17388
|
}).reverse();
|
|
17389
|
-
const historyToSave = newMsgs.filter((m) => !String(m.id).startsWith("welcome") && !m.isMeta);
|
|
17389
|
+
const historyToSave = newMsgs.filter((m) => !String(m.id).startsWith("welcome") && (!m.isMeta || m.text && m.text.includes("Request Cancelled")));
|
|
17390
17390
|
saveChat(chatId, null, historyToSave);
|
|
17391
17391
|
setCompletedIndex(newMsgs.length);
|
|
17392
17392
|
return newMsgs;
|
|
@@ -18125,7 +18125,7 @@ Selection: ${val}`,
|
|
|
18125
18125
|
setCompletedIndex(newMsgs.length);
|
|
18126
18126
|
setInput(targetPrompt);
|
|
18127
18127
|
setIsExpanded(targetPrompt.split("\n").length > 2);
|
|
18128
|
-
const historyToSave = newMsgs.filter((m) => !String(m.id).startsWith("welcome") && !m.isMeta);
|
|
18128
|
+
const historyToSave = newMsgs.filter((m) => !String(m.id).startsWith("welcome") && (!m.isMeta || m.text && m.text.includes("Request Cancelled")));
|
|
18129
18129
|
await saveChat(chatId, null, historyToSave);
|
|
18130
18130
|
const s = emojiSpace(2);
|
|
18131
18131
|
setMessages((prev) => {
|