@astermind/cybernetic-chatbot-client 2.2.62 → 2.2.67

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.
@@ -88,6 +88,7 @@
88
88
  let fullText = '';
89
89
  let sources = [];
90
90
  let sessionId;
91
+ let messageId;
91
92
  try {
92
93
  while (true) {
93
94
  const { done, value } = await reader.read();
@@ -116,6 +117,7 @@
116
117
  else if (data.sessionId !== undefined) {
117
118
  // Done event
118
119
  sessionId = data.sessionId;
120
+ messageId = data.messageId;
119
121
  }
120
122
  }
121
123
  catch {
@@ -124,7 +126,7 @@
124
126
  }
125
127
  }
126
128
  }
127
- options.onComplete?.({ fullText, sessionId, sources });
129
+ options.onComplete?.({ fullText, sessionId, messageId, sources });
128
130
  }
129
131
  catch (error) {
130
132
  options.onError?.(error);
@@ -3088,7 +3090,8 @@ LJ5AZXvOhHaXdHzMuYKX5BpK4w7TqbPvJ6QPvKmLKvHh1VKcUJ6mJQgJJw==
3088
3090
  confidence: 'high',
3089
3091
  sources: data.sources || [],
3090
3092
  offline: false,
3091
- sessionId: data.sessionId
3093
+ sessionId: data.sessionId,
3094
+ messageId: data.messageId
3092
3095
  });
3093
3096
  },
3094
3097
  onError: (error) => {