reactbridge-sdk 0.2.19 → 0.2.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useReactBridge.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactBridge.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EAIrB,MAAM,UAAU,CAAC;AAElB,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,EAAE,qBAAqB,GAAG,oBAAoB,CAgS9C"}
1
+ {"version":3,"file":"useReactBridge.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactBridge.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EAIrB,MAAM,UAAU,CAAC;AAElB,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,EAAE,qBAAqB,GAAG,oBAAoB,CAkS9C"}
package/dist/index.esm.js CHANGED
@@ -548,7 +548,8 @@ function useReactBridge({ onIntentDetected, currentContext, onError, onSpeechSta
548
548
  role: "assistant",
549
549
  content: resultResponse.message,
550
550
  timestamp: new Date(),
551
- toolCall: resultResponse.toolCall,
551
+ toolCall: resultResponse.toolCall
552
+ ? Object.assign(Object.assign({}, resultResponse.toolCall), { isSequential: toolCallCount > 1 }) : undefined,
552
553
  };
553
554
  setMessages((prev) => [...prev, finalMessage]);
554
555
  // Trigger TTS for final response only if input came from voice (first iteration only)