fluxflow-cli 2.11.3 → 2.11.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 +44 -5
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -8765,14 +8765,53 @@ ${ideErr} [/ERROR]`;
|
|
|
8765
8765
|
break;
|
|
8766
8766
|
}
|
|
8767
8767
|
}
|
|
8768
|
-
|
|
8768
|
+
let endIdx = -1;
|
|
8769
|
+
if (activeBufferType === "tool") {
|
|
8770
|
+
let balance = 0;
|
|
8771
|
+
let inString = null;
|
|
8772
|
+
let bracketBalance = 0;
|
|
8773
|
+
let passedParen = false;
|
|
8774
|
+
for (let i = 0; i < combined.length; i++) {
|
|
8775
|
+
const char = combined[i];
|
|
8776
|
+
if (inString) {
|
|
8777
|
+
if (char === inString) {
|
|
8778
|
+
let backslashCount = 0;
|
|
8779
|
+
for (let j = i - 1; j >= 0 && combined[j] === "\\"; j--) {
|
|
8780
|
+
backslashCount++;
|
|
8781
|
+
}
|
|
8782
|
+
if (backslashCount % 2 === 0) {
|
|
8783
|
+
inString = null;
|
|
8784
|
+
}
|
|
8785
|
+
}
|
|
8786
|
+
} else {
|
|
8787
|
+
if (char === '"' || char === "'" || char === "`") {
|
|
8788
|
+
inString = char;
|
|
8789
|
+
} else if (char === "(") {
|
|
8790
|
+
balance++;
|
|
8791
|
+
passedParen = true;
|
|
8792
|
+
} else if (char === ")") {
|
|
8793
|
+
balance--;
|
|
8794
|
+
} else if (char === "[") {
|
|
8795
|
+
bracketBalance++;
|
|
8796
|
+
} else if (char === "]") {
|
|
8797
|
+
if (passedParen && balance === 0 && bracketBalance === 1) {
|
|
8798
|
+
endIdx = i;
|
|
8799
|
+
break;
|
|
8800
|
+
}
|
|
8801
|
+
bracketBalance--;
|
|
8802
|
+
}
|
|
8803
|
+
}
|
|
8804
|
+
}
|
|
8805
|
+
} else {
|
|
8806
|
+
endIdx = combined.indexOf(endTag);
|
|
8807
|
+
}
|
|
8769
8808
|
if (endIdx !== -1) {
|
|
8770
|
-
const fullMatch = combined.substring(0, endIdx +
|
|
8809
|
+
const fullMatch = combined.substring(0, endIdx + 1);
|
|
8771
8810
|
msgs.push({ type: "text", content: fullMatch });
|
|
8772
8811
|
toolCallBuffer = "";
|
|
8773
8812
|
isBufferingToolCall = false;
|
|
8774
8813
|
activeBufferType = null;
|
|
8775
|
-
remaining = combined.substring(endIdx +
|
|
8814
|
+
remaining = combined.substring(endIdx + 1);
|
|
8776
8815
|
} else {
|
|
8777
8816
|
const MAX_BUFFER = 512;
|
|
8778
8817
|
if (combined.length > MAX_BUFFER) {
|
|
@@ -12357,8 +12396,8 @@ function App({ args = [] }) {
|
|
|
12357
12396
|
cmd: "/budget",
|
|
12358
12397
|
desc: "Set or View budget limits",
|
|
12359
12398
|
subs: [
|
|
12360
|
-
{ cmd: "
|
|
12361
|
-
{ cmd: "
|
|
12399
|
+
{ cmd: "view", desc: "View current usage budget bars" },
|
|
12400
|
+
{ cmd: "set", desc: "Configure budgets (Daily/Monthly limits)" }
|
|
12362
12401
|
]
|
|
12363
12402
|
},
|
|
12364
12403
|
{
|