fluxflow-cli 1.17.3 → 1.17.5
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 -5
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -6211,14 +6211,17 @@ function RevertModal({ prompts, onSelect, onClose }) {
|
|
|
6211
6211
|
function formatPromptPreview(prompt) {
|
|
6212
6212
|
if (!prompt) return "";
|
|
6213
6213
|
const firstLine = prompt.split("\n")[0] || "";
|
|
6214
|
-
const
|
|
6215
|
-
|
|
6216
|
-
return
|
|
6214
|
+
const formatted = firstLine.replace(/@\[(.*?)\]/g, (match, p1) => {
|
|
6215
|
+
const parts = p1.replace(/\\/g, "/").split("/");
|
|
6216
|
+
return `[${parts[parts.length - 1]}]`;
|
|
6217
|
+
});
|
|
6218
|
+
if (formatted.length > 69) {
|
|
6219
|
+
return formatted.slice(0, 67) + "...";
|
|
6217
6220
|
}
|
|
6218
6221
|
if (prompt.includes("\n")) {
|
|
6219
|
-
return
|
|
6222
|
+
return formatted + "...";
|
|
6220
6223
|
}
|
|
6221
|
-
return
|
|
6224
|
+
return formatted;
|
|
6222
6225
|
}
|
|
6223
6226
|
function formatDate2(timestamp) {
|
|
6224
6227
|
if (!timestamp) return "N/A";
|