@burtson-labs/bandit-engine 2.0.68 → 2.0.69

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.
@@ -9503,7 +9503,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9503
9503
 
9504
9504
  // src/management/management.tsx
9505
9505
  import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
9506
- var preloadChatPage = () => import("./chat-5QSGMPHN.mjs");
9506
+ var preloadChatPage = () => import("./chat-FLMR4EI6.mjs");
9507
9507
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9508
9508
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9509
9509
  if (trimmed.endsWith("/api")) {
@@ -10848,4 +10848,4 @@ export {
10848
10848
  useGatewayMemory,
10849
10849
  management_default
10850
10850
  };
10851
- //# sourceMappingURL=chunk-HUUWQOBF.mjs.map
10851
+ //# sourceMappingURL=chunk-NL4BY4YL.mjs.map
package/dist/index.js CHANGED
@@ -21086,12 +21086,8 @@ Using these results together with your own knowledge, answer my original questio
21086
21086
  options: { num_predict: tokenLimit + 250 }
21087
21087
  };
21088
21088
  clearFlushTimer();
21089
- const summaryPreamble = stripToolBlocks(fullMessage).trim();
21090
- setStreamBuffer(
21091
- summaryPreamble ? `${summaryPreamble}
21092
-
21093
- _Writing the answer\u2026_` : "_Writing the answer\u2026_"
21094
- );
21089
+ setStreamBuffer("");
21090
+ setIsThinking?.(true);
21095
21091
  const summaryText = await new Promise((resolve) => {
21096
21092
  let acc = "";
21097
21093
  let settled = false;
@@ -21109,6 +21105,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
21109
21105
  const visible = stripThinking(acc);
21110
21106
  latestDisplayMessage = visible;
21111
21107
  lastPartialRef.current.text = visible;
21108
+ if (visible) setIsThinking?.(false);
21112
21109
  setStreamBuffer(visible);
21113
21110
  }
21114
21111
  },
@@ -21130,6 +21127,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
21130
21127
  done("");
21131
21128
  }, 3e4);
21132
21129
  });
21130
+ setIsThinking?.(false);
21133
21131
  if (summaryText.trim()) {
21134
21132
  const cleanedSummary = summaryText.replace(
21135
21133
  /\n{1,}\s*(?:[*_#>\s]*)(?:sources?|references?|citations?|further reading)(?:\s*:)?\s*(?:[*_]*)\s*\n[\s\S]*$/i,