fluxflow-cli 1.18.10 → 1.18.11
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 -5
- package/package.json +2 -2
package/dist/fluxflow.js
CHANGED
|
@@ -584,7 +584,8 @@ var init_ChatLayout = __esm({
|
|
|
584
584
|
return /* @__PURE__ */ React3.createElement(Text3, { color, wrap: "anywhere" }, parts.map((part, j) => {
|
|
585
585
|
if (!part) return null;
|
|
586
586
|
if (part.startsWith("```") && part.endsWith("```")) {
|
|
587
|
-
|
|
587
|
+
const content = part.slice(3, -3);
|
|
588
|
+
return /* @__PURE__ */ React3.createElement(Text3, { key: j, color: "cyan", backgroundColor: "#003333" }, " ", content, " ");
|
|
588
589
|
}
|
|
589
590
|
if (part.startsWith("**") && part.endsWith("**")) {
|
|
590
591
|
return /* @__PURE__ */ React3.createElement(Text3, { key: j, bold: true, color: "white" }, /* @__PURE__ */ React3.createElement(InlineMarkdown, { text: part.slice(2, -2), color: "white" }));
|
|
@@ -5826,7 +5827,7 @@ ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
|
|
|
5826
5827
|
} else if (isImage) {
|
|
5827
5828
|
label = `\u{1F4F8} Viewed: ${targetPath2}`;
|
|
5828
5829
|
} else {
|
|
5829
|
-
label = `\u{1F4C4} Read: ${targetPath2}
|
|
5830
|
+
label = `\u{1F4C4} Read: ${targetPath2} \u2192 Lines ${sLine} - ${actualEndLine} of ${totalLines}`;
|
|
5830
5831
|
}
|
|
5831
5832
|
} else if (normToolName === "list_files" || normToolName === "read_folder") {
|
|
5832
5833
|
const action = normToolName === "list_files" ? "List" : "Viewed";
|
|
@@ -6051,7 +6052,7 @@ ${boxBottom}` };
|
|
|
6051
6052
|
matchCount = parseInt(m[1]);
|
|
6052
6053
|
}
|
|
6053
6054
|
}
|
|
6054
|
-
const postLabel = `\u{1F50E} Searched: "${keyword}"${file ? ` in "${file}"` : " ./"}
|
|
6055
|
+
const postLabel = `\u{1F50E} Searched: "${keyword}"${file ? ` in "${file}"` : " ./"} \u2192 ${matchCount} Match${matchCount === 1 ? "" : "es"}`;
|
|
6055
6056
|
const boxWidth = Math.min(postLabel.length + 4, 115);
|
|
6056
6057
|
const boxTop = `\u256D${"\u2500".repeat(boxWidth)}\u256E`;
|
|
6057
6058
|
const boxMid = `\u2502 ${postLabel.padEnd(boxWidth - 2).substring(0, boxWidth - 2)} \u2502`;
|
|
@@ -6952,6 +6953,7 @@ function App({ args = [] }) {
|
|
|
6952
6953
|
const [queuedPrompt, setQueuedPrompt] = useState10(null);
|
|
6953
6954
|
const [resolutionData, setResolutionData] = useState10(null);
|
|
6954
6955
|
const [tempModelOverride, setTempModelOverride] = useState10(null);
|
|
6956
|
+
useEffect7(() => setEscPressCount(0), [input]);
|
|
6955
6957
|
const [messages, setMessages] = useState10(() => {
|
|
6956
6958
|
const logoMsg = { id: "logo-" + Date.now(), role: "system", text: FLUX_LOGO, isLogo: true, isMeta: true };
|
|
6957
6959
|
const welcomeMsg = { id: "welcome", role: "system", text: "\u{1F30A}\u26A1 Welcome to Flux Flow! Type /help for commands.", isMeta: true };
|
|
@@ -7112,7 +7114,7 @@ function App({ args = [] }) {
|
|
|
7112
7114
|
const nextCount = prev + 1;
|
|
7113
7115
|
if (nextCount === 1) {
|
|
7114
7116
|
if (escDoubleTimerRef.current) clearTimeout(escDoubleTimerRef.current);
|
|
7115
|
-
escDoubleTimerRef.current = setTimeout(() => setEscPressCount(0),
|
|
7117
|
+
escDoubleTimerRef.current = setTimeout(() => setEscPressCount(0), 2e3);
|
|
7116
7118
|
} else if (nextCount === 2) {
|
|
7117
7119
|
if (escDoubleTimerRef.current) clearTimeout(escDoubleTimerRef.current);
|
|
7118
7120
|
setEscPressCount(0);
|
|
@@ -8954,7 +8956,7 @@ Selection: ${val}`,
|
|
|
8954
8956
|
}
|
|
8955
8957
|
)));
|
|
8956
8958
|
default:
|
|
8957
|
-
return /* @__PURE__ */ React13.createElement(Box13, { flexDirection: "column", marginTop: 1, flexShrink: 0, width: "100%" }, /* @__PURE__ */ React13.createElement(Box13, { paddingX: 1, marginBottom: 0, justifyContent: "space-between", width: "100%" }, /* @__PURE__ */ React13.createElement(Box13, null, statusText ? /* @__PURE__ */ React13.createElement(Box13, null, isSpinnerActive && /* @__PURE__ */ React13.createElement(StatusSpinner, null), /* @__PURE__ */ React13.createElement(Text13, { color: "magenta", bold: true, italic: true }, isSpinnerActive ? " " : "", statusText.toUpperCase())) : /* @__PURE__ */ React13.createElement(Text13, { color: "cyan", dimColor: true, italic: true }, "READY FOR COMMAND...")), /* @__PURE__ */ React13.createElement(Box13, null, /* @__PURE__ */ React13.createElement(Text13, { color: "gray", bold: true }, "[ "), /* @__PURE__ */ React13.createElement(Text13, { color: "white" }, tempModelOverride || activeModel), /* @__PURE__ */ React13.createElement(Text13, { color: "gray", bold: true }, " ]"))), /* @__PURE__ */ React13.createElement(
|
|
8959
|
+
return /* @__PURE__ */ React13.createElement(Box13, { flexDirection: "column", marginTop: 1, flexShrink: 0, width: "100%" }, /* @__PURE__ */ React13.createElement(Box13, { paddingX: 1, marginBottom: 0, justifyContent: "space-between", width: "100%" }, /* @__PURE__ */ React13.createElement(Box13, null, statusText ? /* @__PURE__ */ React13.createElement(Box13, null, isSpinnerActive && /* @__PURE__ */ React13.createElement(StatusSpinner, null), /* @__PURE__ */ React13.createElement(Text13, { color: "magenta", bold: true, italic: true }, isSpinnerActive ? " " : "", statusText.toUpperCase())) : /* @__PURE__ */ React13.createElement(Text13, { color: "cyan", dimColor: true, italic: true }, " ", input.length > 0 && escPressCount ? "Press ESC again to clear input" : "READY FOR COMMAND...")), /* @__PURE__ */ React13.createElement(Box13, null, /* @__PURE__ */ React13.createElement(Text13, { color: "gray", bold: true }, "[ "), /* @__PURE__ */ React13.createElement(Text13, { color: "white" }, tempModelOverride || activeModel), /* @__PURE__ */ React13.createElement(Text13, { color: "gray", bold: true }, " ]"))), /* @__PURE__ */ React13.createElement(
|
|
8958
8960
|
Box13,
|
|
8959
8961
|
{
|
|
8960
8962
|
borderStyle: "round",
|