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 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 flushTimerRef = (0, import_react115.useRef)(null);
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
- const fullBatchCount = pendingLinesRef.current.length - pendingLinesRef.current.length % 5;
566945
- if (fullBatchCount > 0) {
566946
- const toCommit = pendingLinesRef.current.splice(0, fullBatchCount);
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 remainder = pendingLinesRef.current.splice(0, pendingLinesRef.current.length);
566962
- totalCommittedLineCountRef.current += remainder.length;
566946
+ const toCommit = pendingLinesRef.current.splice(0, pendingLinesRef.current.length);
566947
+ totalCommittedLineCountRef.current += toCommit.length;
566963
566948
  setDisplayOutputLines((prev) => {
566964
- const next = [...prev, ...remainder];
566949
+ const next = [...prev, ...toCommit];
566965
566950
  return next.length > maxStoredOutputLines ? next.slice(-maxStoredOutputLines) : next;
566966
566951
  });
566967
- }, 150);
566968
- }, [output2]);
566969
- (0, import_react115.useEffect)(() => {
566952
+ }, 200);
566970
566953
  return () => {
566971
- if (flushTimerRef.current) {
566972
- clearTimeout(flushTimerRef.current);
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.53",
599923
+ version: "0.6.54",
599942
599924
  description: "Agentic coding in your terminal",
599943
599925
  license: "MIT",
599944
599926
  bin: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.53",
3
+ "version": "0.6.54",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.53",
3
+ "version": "0.6.54",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {