@nomad-e/bluma-cli 0.1.49 → 0.1.50

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.
Files changed (2) hide show
  1. package/dist/main.js +12 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -14612,7 +14612,8 @@ var AskUserQuestionPrompt = memo14(AskUserQuestionPromptComponent);
14612
14612
 
14613
14613
  // src/app/ui/App.tsx
14614
14614
  import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
14615
- var MAX_STATIC_HISTORY_ITEMS = 220;
14615
+ var MAX_STATIC_HISTORY_ITEMS = 100;
14616
+ var HISTORY_CLEANUP_THRESHOLD = 120;
14616
14617
  var blumaUpdateRegistryCheckStarted = false;
14617
14618
  function nextHistoryId(items) {
14618
14619
  if (items.length === 0) return HEADER_PANEL_HISTORY_ID + 1;
@@ -15010,6 +15011,16 @@ Please use command_status to check the result and report back to the user.`;
15010
15011
  ];
15011
15012
  });
15012
15013
  }, []);
15014
+ useEffect8(() => {
15015
+ if (history.length >= HISTORY_CLEANUP_THRESHOLD) {
15016
+ setHistory((prev) => {
15017
+ const header = prev.find((h) => h.id === HEADER_PANEL_HISTORY_ID);
15018
+ const rest = prev.filter((h) => h.id !== HEADER_PANEL_HISTORY_ID);
15019
+ const tail = rest.slice(-(MAX_STATIC_HISTORY_ITEMS - 1));
15020
+ return header ? [header, ...tail] : tail;
15021
+ });
15022
+ }
15023
+ }, [history.length]);
15013
15024
  const cappedHistory = useMemo2(() => {
15014
15025
  if (history.length <= MAX_STATIC_HISTORY_ITEMS) return history;
15015
15026
  const header = history.find((h) => h.id === HEADER_PANEL_HISTORY_ID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",