@burtson-labs/bandit-engine 2.0.105 → 2.0.106

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/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-EGIUL7QB.mjs";
3
+ } from "./chunk-4A2M7T6B.mjs";
4
4
  import {
5
5
  chat_provider_default
6
6
  } from "./chunk-VTKRZNLI.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-WZOY2OBC.mjs";
13
+ } from "./chunk-2LL5XMLK.mjs";
14
14
  import "./chunk-KYC7CC6C.mjs";
15
15
  import "./chunk-HAUDGBUS.mjs";
16
16
  import "./chunk-BN3D45E2.mjs";
@@ -23900,7 +23900,7 @@ ${protocol}`;
23900
23900
  const inThinkBlock = /<think>/.test(fullMessage) && !/<think>[\s\S]*<\/think>/.test(fullMessage);
23901
23901
  setIsThinking?.(inThinkBlock);
23902
23902
  const visibleMessage = stripThinking(fullMessage);
23903
- if (/```(?:tool_code|TOOL_CODE)/.test(visibleMessage)) {
23903
+ if (/```(?:tool_code|TOOL_CODE)/.test(visibleMessage) || /\b(?:web_search|web_fetch|image_generation|create_file|ask_user)\s*\(/.test(visibleMessage)) {
23904
23904
  sawToolBlock = true;
23905
23905
  clearFlushTimer();
23906
23906
  startWorking();