snow-ai 0.6.53 → 0.6.54
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/bundle/cli.mjs +11 -29
- package/bundle/package.json +1 -1
- package/package.json +1 -1
package/bundle/cli.mjs
CHANGED
|
@@ -566921,15 +566921,11 @@ function BashCommandExecutionStatus({ command, timeout: timeout2 = 3e4, terminal
|
|
|
566921
566921
|
const totalCommittedLineCountRef = (0, import_react115.useRef)(0);
|
|
566922
566922
|
const lastSeenInputLineCountRef = (0, import_react115.useRef)(0);
|
|
566923
566923
|
const pendingLinesRef = (0, import_react115.useRef)([]);
|
|
566924
|
-
const
|
|
566924
|
+
const flushIntervalRef = (0, import_react115.useRef)(null);
|
|
566925
566925
|
(0, import_react115.useEffect)(() => {
|
|
566926
566926
|
lastSeenInputLineCountRef.current = 0;
|
|
566927
566927
|
totalCommittedLineCountRef.current = 0;
|
|
566928
566928
|
pendingLinesRef.current = [];
|
|
566929
|
-
if (flushTimerRef.current) {
|
|
566930
|
-
clearTimeout(flushTimerRef.current);
|
|
566931
|
-
flushTimerRef.current = null;
|
|
566932
|
-
}
|
|
566933
566929
|
setDisplayOutputLines([]);
|
|
566934
566930
|
}, [command]);
|
|
566935
566931
|
(0, import_react115.useEffect)(() => {
|
|
@@ -566941,36 +566937,22 @@ function BashCommandExecutionStatus({ command, timeout: timeout2 = 3e4, terminal
|
|
|
566941
566937
|
const newLines = incomingLines.slice(prevCount);
|
|
566942
566938
|
lastSeenInputLineCountRef.current = incomingLines.length;
|
|
566943
566939
|
pendingLinesRef.current.push(...newLines);
|
|
566944
|
-
|
|
566945
|
-
|
|
566946
|
-
|
|
566947
|
-
totalCommittedLineCountRef.current += toCommit.length;
|
|
566948
|
-
setDisplayOutputLines((prev) => {
|
|
566949
|
-
const next = [...prev, ...toCommit];
|
|
566950
|
-
return next.length > maxStoredOutputLines ? next.slice(-maxStoredOutputLines) : next;
|
|
566951
|
-
});
|
|
566952
|
-
}
|
|
566953
|
-
if (flushTimerRef.current) {
|
|
566954
|
-
clearTimeout(flushTimerRef.current);
|
|
566955
|
-
}
|
|
566956
|
-
flushTimerRef.current = setTimeout(() => {
|
|
566957
|
-
flushTimerRef.current = null;
|
|
566940
|
+
}, [output2]);
|
|
566941
|
+
(0, import_react115.useEffect)(() => {
|
|
566942
|
+
flushIntervalRef.current = setInterval(() => {
|
|
566958
566943
|
if (pendingLinesRef.current.length === 0) {
|
|
566959
566944
|
return;
|
|
566960
566945
|
}
|
|
566961
|
-
const
|
|
566962
|
-
totalCommittedLineCountRef.current +=
|
|
566946
|
+
const toCommit = pendingLinesRef.current.splice(0, pendingLinesRef.current.length);
|
|
566947
|
+
totalCommittedLineCountRef.current += toCommit.length;
|
|
566963
566948
|
setDisplayOutputLines((prev) => {
|
|
566964
|
-
const next = [...prev, ...
|
|
566949
|
+
const next = [...prev, ...toCommit];
|
|
566965
566950
|
return next.length > maxStoredOutputLines ? next.slice(-maxStoredOutputLines) : next;
|
|
566966
566951
|
});
|
|
566967
|
-
},
|
|
566968
|
-
}, [output2]);
|
|
566969
|
-
(0, import_react115.useEffect)(() => {
|
|
566952
|
+
}, 200);
|
|
566970
566953
|
return () => {
|
|
566971
|
-
if (
|
|
566972
|
-
|
|
566973
|
-
flushTimerRef.current = null;
|
|
566954
|
+
if (flushIntervalRef.current) {
|
|
566955
|
+
clearInterval(flushIntervalRef.current);
|
|
566974
566956
|
}
|
|
566975
566957
|
};
|
|
566976
566958
|
}, []);
|
|
@@ -599938,7 +599920,7 @@ var require_package3 = __commonJS({
|
|
|
599938
599920
|
"package.json"(exports2, module2) {
|
|
599939
599921
|
module2.exports = {
|
|
599940
599922
|
name: "snow-ai",
|
|
599941
|
-
version: "0.6.
|
|
599923
|
+
version: "0.6.54",
|
|
599942
599924
|
description: "Agentic coding in your terminal",
|
|
599943
599925
|
license: "MIT",
|
|
599944
599926
|
bin: {
|
package/bundle/package.json
CHANGED