fluxflow-cli 3.4.0 → 3.4.1
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 +2 -15
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -11677,8 +11677,8 @@ var init_ai = __esm({
|
|
|
11677
11677
|
};
|
|
11678
11678
|
runJanitorTask = async (settings, agentText, fullAgentTextRaw, history, callbacks = {}) => {
|
|
11679
11679
|
if (process.stdout.isTTY) {
|
|
11680
|
-
process.stdout.write(
|
|
11681
|
-
process.stdout.write(
|
|
11680
|
+
process.stdout.write("\x1B]0;FluxFlow | Idle\x07");
|
|
11681
|
+
process.stdout.write("\x1B]633;P;TerminalTitle=FluxFlow | Idle\x07");
|
|
11682
11682
|
}
|
|
11683
11683
|
const USER_CONTEXT_LENGTH = 4 * (1024 * 2);
|
|
11684
11684
|
const AGENT_CONTEXT_LENGTH = 4 * (1024 * 8);
|
|
@@ -11726,10 +11726,6 @@ ${originalTextProcessed.length > USER_CONTEXT_LENGTH ? "... (truncated) ...\n\n"
|
|
|
11726
11726
|
let attempts = 0;
|
|
11727
11727
|
const MAX_JANITOR_RETRIES = isMemoryEnabled ? 12 : -1;
|
|
11728
11728
|
while (attempts <= MAX_JANITOR_RETRIES) {
|
|
11729
|
-
if (process.stdout.isTTY) {
|
|
11730
|
-
process.stdout.write(`\x1B]0;Retrying Finalizing... (${attempts + 1})...\x07`);
|
|
11731
|
-
process.stdout.write(`\x1B]633;P;TerminalTitle=Retrying Finalizing... (${attempts + 1})...\x07`);
|
|
11732
|
-
}
|
|
11733
11729
|
try {
|
|
11734
11730
|
if (!await checkQuota("background", settings)) {
|
|
11735
11731
|
return;
|
|
@@ -11900,9 +11896,6 @@ ${originalTextProcessed.length > USER_CONTEXT_LENGTH ? "... (truncated) ...\n\n"
|
|
|
11900
11896
|
} catch (err) {
|
|
11901
11897
|
attempts++;
|
|
11902
11898
|
const date = (/* @__PURE__ */ new Date()).toLocaleString();
|
|
11903
|
-
if (process.stdout.isTTY) {
|
|
11904
|
-
process.stdout.write(`\x1B]0;Finalizing Error\x07`);
|
|
11905
|
-
}
|
|
11906
11899
|
const errLog = err instanceof Error ? (() => {
|
|
11907
11900
|
try {
|
|
11908
11901
|
return JSON.parse(JSON.parse(err.message).error.message).error.message;
|
|
@@ -11926,12 +11919,6 @@ ${originalTextProcessed.length > USER_CONTEXT_LENGTH ? "... (truncated) ...\n\n"
|
|
|
11926
11919
|
fs23.appendFileSync(path22.join(janitorErrDir, "error.log"), `-----------------------------------------------------------------------------
|
|
11927
11920
|
|
|
11928
11921
|
`);
|
|
11929
|
-
if (attempts >= MAX_JANITOR_RETRIES) {
|
|
11930
|
-
if (process.stdout.isTTY) {
|
|
11931
|
-
process.stdout.write(`\x1B]0;${isMemoryEnabled ? "Finalizing Error" : "Finalizing Skipped"}\x07`);
|
|
11932
|
-
}
|
|
11933
|
-
await new Promise((resolve) => setTimeout(resolve, 3e3));
|
|
11934
|
-
}
|
|
11935
11922
|
}
|
|
11936
11923
|
if (process.stdout.isTTY) {
|
|
11937
11924
|
try {
|