fluxflow-cli 1.8.20 → 1.8.21
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 -6
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -833,7 +833,7 @@ If you see a [STEERING HINT] from user, give that prompt priority for the task a
|
|
|
833
833
|
-- START THINKING INSTRUCTIONS --
|
|
834
834
|
${thinkingConfig}
|
|
835
835
|
|
|
836
|
-
BEFORE USING ANY TOOL THINKING IS **MANDATORY** WITH TOOL RULES. ALWAYS PRIORITIZE THINKING FIRST BEFORE RESPONDING. YOU ARE **FORBIDDEN** TO JUMP TO RESPONSES FIRST.
|
|
836
|
+
BEFORE USING ANY TOOL THINKING IS **MANDATORY** WITH TOOL RULES. ALWAYS PRIORITIZE THINKING FIRST BEFORE RESPONDING. YOU ARE **FORBIDDEN** TO JUMP TO RESPONSES FIRST. THINKING IS REQUIRED EVEN WITH CONVERSATIONAL RESPONSES.
|
|
837
837
|
-- END THINKING INSTRUCTIONS --
|
|
838
838
|
|
|
839
839
|
${TOOL_PROTOCOL(mode)}
|
|
@@ -3069,27 +3069,29 @@ ${boxBottom}
|
|
|
3069
3069
|
if (turnText.trim().length > 0) {
|
|
3070
3070
|
if (inStreamRetryCount <= MAX_RETRIES) {
|
|
3071
3071
|
inStreamRetryCount++;
|
|
3072
|
-
const waitTime = Math.
|
|
3072
|
+
const waitTime = Math.min(1e3 * Math.pow(2, inStreamRetryCount - 1), 12e3);
|
|
3073
3073
|
modifiedHistory.push({ role: "agent", text: turnText });
|
|
3074
3074
|
if (toolResults.length > 0) {
|
|
3075
3075
|
toolResults.forEach((tr) => modifiedHistory.push(tr));
|
|
3076
3076
|
}
|
|
3077
3077
|
modifiedHistory.push({ role: "user", text: "[SYSTEM] Response got cut for internal error, continue from checkpoint seamlessly and DON'T repeat what you already said!" });
|
|
3078
3078
|
accumulatedContext += turnText;
|
|
3079
|
-
yield { type: "status", content: `Error Occured. Recovering Stream (${inStreamRetryCount}/${MAX_RETRIES})...` };
|
|
3079
|
+
yield { type: "status", content: `Error Occured. Recovering Stream (${inStreamRetryCount}/${MAX_RETRIES}) [${(waitTime / 1e3).toFixed(0)}s]...` };
|
|
3080
3080
|
await new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
3081
3081
|
} else {
|
|
3082
|
+
yield { type: "status", content: `Error Occured. Recovering Stream...` };
|
|
3082
3083
|
throw new Error(`Stream collapsed too many times. (Failed to resolve ${MAX_RETRIES} times)
|
|
3083
3084
|
Error Log can be found in ${path16.join(LOGS_DIR, "agent", "error.log")}`);
|
|
3084
3085
|
}
|
|
3085
3086
|
} else {
|
|
3086
3087
|
if (retryCount <= MAX_RETRIES) {
|
|
3087
3088
|
retryCount++;
|
|
3088
|
-
const waitTime = Math.
|
|
3089
|
+
const waitTime = Math.min(1e3 * Math.pow(2, retryCount - 1), 12e3);
|
|
3089
3090
|
isInitialAttempt = true;
|
|
3090
|
-
yield { type: "status", content: `Retrying Connection (${retryCount}/${MAX_RETRIES})...` };
|
|
3091
|
+
yield { type: "status", content: `Retrying Connection (${retryCount}/${MAX_RETRIES}) [${(waitTime / 1e3).toFixed(0)}s]...` };
|
|
3091
3092
|
await new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
3092
3093
|
} else {
|
|
3094
|
+
yield { type: "status", content: `Retrying Connection...` };
|
|
3093
3095
|
throw new Error(`Model cannot be reached. (Failed ${MAX_RETRIES} times)
|
|
3094
3096
|
Error Log can be found in ${path16.join(LOGS_DIR, "agent", "error.log")}`);
|
|
3095
3097
|
}
|
|
@@ -5207,7 +5209,7 @@ var init_app = __esm({
|
|
|
5207
5209
|
init_text();
|
|
5208
5210
|
SESSION_START_TIME = Date.now();
|
|
5209
5211
|
CHANGELOG_URL = "https://fluxflow-cli.onrender.com/changelog.html";
|
|
5210
|
-
versionFluxflow = "1.8.
|
|
5212
|
+
versionFluxflow = "1.8.21";
|
|
5211
5213
|
updatedOn = "2026-05-10";
|
|
5212
5214
|
ResolutionModal = ({ data, onResolve, onEdit }) => /* @__PURE__ */ React10.createElement(Box10, { flexDirection: "column", borderStyle: "round", borderColor: "magenta", paddingX: 2, paddingY: 1, width: "100%" }, /* @__PURE__ */ React10.createElement(Text10, { color: "magenta", bold: true, underline: true }, "\u{1F7E3} STEERING HINT RESOLUTION"), /* @__PURE__ */ React10.createElement(Text10, { marginTop: 1 }, "The agent already finished the task before your hint was consumed."), /* @__PURE__ */ React10.createElement(Box10, { marginTop: 1, backgroundColor: "#222", paddingX: 1, width: "100%" }, /* @__PURE__ */ React10.createElement(Text10, { italic: true, color: "gray" }, '"', data, '"')), /* @__PURE__ */ React10.createElement(Box10, { marginTop: 1 }, /* @__PURE__ */ React10.createElement(Text10, { color: "cyan" }, "How would you like to proceed?")), /* @__PURE__ */ React10.createElement(Box10, { marginTop: 1 }, /* @__PURE__ */ React10.createElement(
|
|
5213
5215
|
CommandMenu,
|