fluxflow-cli 2.13.3 → 2.13.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.
- package/dist/fluxflow.js +8 -4
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -14189,9 +14189,13 @@ function App({ args = [] }) {
|
|
|
14189
14189
|
}
|
|
14190
14190
|
if (isTerminalFocused && activeCommand) {
|
|
14191
14191
|
if (key.return) {
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14192
|
+
if (isActiveCommandPty) {
|
|
14193
|
+
writeToActiveCommand("\r");
|
|
14194
|
+
} else {
|
|
14195
|
+
const isWin = process.platform === "win32";
|
|
14196
|
+
writeToActiveCommand(isWin ? "\r\n" : "\n");
|
|
14197
|
+
setExecOutput((prev) => prev + "\n");
|
|
14198
|
+
}
|
|
14195
14199
|
} else if (key.backspace || key.delete) {
|
|
14196
14200
|
if (isActiveCommandPty) {
|
|
14197
14201
|
writeToActiveCommand("\x7F");
|
|
@@ -15006,7 +15010,7 @@ function App({ args = [] }) {
|
|
|
15006
15010
|
setCompletedIndex(prev.length + 1);
|
|
15007
15011
|
const isBtw = hintText.startsWith("/btw");
|
|
15008
15012
|
const cleanText = isBtw ? hintText.replace(/^\/btw\s*/, "") : hintText;
|
|
15009
|
-
const prefix = isBtw ? "[QUESTION
|
|
15013
|
+
const prefix = isBtw ? "[QUESTION]" : "[STEERING HINT]";
|
|
15010
15014
|
return [...prev, { id: "hint-" + Date.now(), role: "user", text: `${prefix}
|
|
15011
15015
|
${cleanText}`, color: "magenta" }];
|
|
15012
15016
|
});
|