@personaai/react 0.7.2 → 0.7.3
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/README.md +45 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -574,6 +574,6 @@ declare function supportsStreamingFetch(): boolean;
|
|
|
574
574
|
*/
|
|
575
575
|
declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
|
|
576
576
|
|
|
577
|
-
declare const VERSION = "0.7.
|
|
577
|
+
declare const VERSION = "0.7.3";
|
|
578
578
|
|
|
579
579
|
export { type OpenSSEOptions, type PersonaAgentSummary, type PersonaClarificationQuestion, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaMcpConnection, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaResumeValue, type PersonaRole, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendMessageOverride, type UseChatOptions, type UseMcpConnectionsOptions, type UseVoiceOptions, type UseVoiceResult, VERSION, openSSEStream, supportsStreamingFetch, useAgents, useChat, useConnection, useFiles, useMcpConnections, useMemory, usePersonaContext, useThreads, useVoice };
|
package/dist/index.d.ts
CHANGED
|
@@ -574,6 +574,6 @@ declare function supportsStreamingFetch(): boolean;
|
|
|
574
574
|
*/
|
|
575
575
|
declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
|
|
576
576
|
|
|
577
|
-
declare const VERSION = "0.7.
|
|
577
|
+
declare const VERSION = "0.7.3";
|
|
578
578
|
|
|
579
579
|
export { type OpenSSEOptions, type PersonaAgentSummary, type PersonaClarificationQuestion, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaMcpConnection, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaResumeValue, type PersonaRole, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendMessageOverride, type UseChatOptions, type UseMcpConnectionsOptions, type UseVoiceOptions, type UseVoiceResult, VERSION, openSSEStream, supportsStreamingFetch, useAgents, useChat, useConnection, useFiles, useMcpConnections, useMemory, usePersonaContext, useThreads, useVoice };
|
package/dist/index.js
CHANGED
|
@@ -1439,10 +1439,11 @@ function useVoice(options = {}) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
setPartial((prev) => prev?.speaker === speaker ? null : prev);
|
|
1441
1441
|
const last = lastFinalTurnRef.current;
|
|
1442
|
-
const
|
|
1442
|
+
const sameUserBurst = speaker === "user" && last && last.speaker === speaker && last.turnSeq === turnSeq;
|
|
1443
1443
|
setTranscript((prev) => {
|
|
1444
1444
|
const tail = prev[prev.length - 1];
|
|
1445
|
-
|
|
1445
|
+
const agentContinues = speaker === "agent" && tail?.speaker === "agent";
|
|
1446
|
+
if (agentContinues || sameUserBurst && tail?.speaker === "user") {
|
|
1446
1447
|
const merged = mergeTranscriptText(tail.text, text);
|
|
1447
1448
|
if (merged === tail.text) return prev;
|
|
1448
1449
|
return prev.map(
|
|
@@ -1888,7 +1889,7 @@ import {
|
|
|
1888
1889
|
getLogLevel,
|
|
1889
1890
|
isLevelEnabled
|
|
1890
1891
|
} from "@personaai/logger";
|
|
1891
|
-
var VERSION = "0.7.
|
|
1892
|
+
var VERSION = "0.7.3";
|
|
1892
1893
|
export {
|
|
1893
1894
|
PersonaProvider,
|
|
1894
1895
|
VERSION,
|