@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 +18 -16
- package/dist/index.css +1 -1
- package/dist/index.js +17316 -17311
- package/dist/index.umd.cjs +114 -114
- package/package.json +1 -1
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,
|
|
15669
|
-
return async (
|
|
15670
|
-
const { content:
|
|
15671
|
-
|
|
15672
|
-
let
|
|
15673
|
-
|
|
15674
|
-
files:
|
|
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:
|
|
15676
|
+
executionId: k
|
|
15677
15677
|
}));
|
|
15678
|
-
const
|
|
15679
|
-
|
|
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:
|
|
15682
|
+
conversationId: k,
|
|
15683
15683
|
agentId: r,
|
|
15684
|
-
message:
|
|
15685
|
-
messageId:
|
|
15686
|
-
...i &&
|
|
15687
|
-
...
|
|
15688
|
-
...
|
|
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) => {
|