@uptiqai/widgets-sdk 1.203.0 → 1.205.0

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/headless.js CHANGED
@@ -15665,27 +15665,28 @@ const f$ = async (e) => {
15665
15665
  status: "uploaded"
15666
15666
  }));
15667
15667
  }, m$ = (e) => {
15668
- const { socket: t, agentId: r, variables: i, getCurrentExecutionId: n, setCurrentExecutionId: o, subscribeToExecution: a } = e;
15669
- return async (s) => {
15670
- const { content: c, executionId: u, files: l, documents: d, payload: p } = s, y = u ?? n() ?? ai(), k = ai();
15671
- o(y), a(y), t.connected || t.connect();
15672
- let b;
15673
- l?.length && (b = await f$({
15674
- files: l,
15668
+ const { socket: t, agentId: r, uid: i, variables: n, getCurrentExecutionId: o, setCurrentExecutionId: a, subscribeToExecution: s } = e;
15669
+ return async (c) => {
15670
+ const { content: u, executionId: l, files: d, documents: p, payload: h } = c, k = l ?? o() ?? ai(), b = ai();
15671
+ a(k), s(k), t.connected || t.connect();
15672
+ let g;
15673
+ d?.length && (g = await f$({
15674
+ files: d,
15675
15675
  agentId: r,
15676
- executionId: y
15676
+ executionId: k
15677
15677
  }));
15678
- const g = b?.length ? d$(b) || [] : [];
15679
- d?.length && d.forEach((S) => g.push(S)), t.emit(
15678
+ const S = g?.length ? d$(g) || [] : [];
15679
+ p?.length && p.forEach((I) => S.push(I)), t.emit(
15680
15680
  "chat-query",
15681
15681
  {
15682
- conversationId: y,
15682
+ conversationId: k,
15683
15683
  agentId: r,
15684
- message: c,
15685
- messageId: k,
15686
- ...i && Object.keys(i).length > 0 && { variables: i },
15687
- ...g?.length && { documents: g },
15688
- ...p != null && { payload: p }
15684
+ message: u,
15685
+ messageId: b,
15686
+ ...i && { uid: i },
15687
+ ...n && Object.keys(n).length > 0 && { variables: n },
15688
+ ...S?.length && { documents: S },
15689
+ ...h != null && { payload: h }
15689
15690
  },
15690
15691
  () => {
15691
15692
  }
@@ -17226,6 +17227,7 @@ const Mr = () => {
17226
17227
  }, d = m$({
17227
17228
  socket: o,
17228
17229
  agentId: t.agentId,
17230
+ uid: r.uid,
17229
17231
  variables: t.variables,
17230
17232
  getCurrentExecutionId: () => a,
17231
17233
  setCurrentExecutionId: (g) => {