@pluno/product-agent-web 0.1.144 → 0.1.146
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/product-agent-sdk.js +7 -5
- package/dist/product-agent-widget.js +1494 -1417
- package/dist/widget.d.ts +1 -0
- package/package.json +1 -1
|
@@ -215,14 +215,16 @@ const ps = globalThis.fetch.bind(globalThis), Pt = '.pluno-pa-widget-host[data-p
|
|
|
215
215
|
let ys = 0;
|
|
216
216
|
function re(e) {
|
|
217
217
|
const t = {};
|
|
218
|
-
for (const
|
|
219
|
-
const
|
|
220
|
-
(typeof
|
|
218
|
+
for (const i of ["type", "requestId", "clientMessageId", "sessionId", "runId", "itemId", "reason", "phase"]) {
|
|
219
|
+
const o = e[i];
|
|
220
|
+
(typeof o == "string" || typeof o == "number" || typeof o == "boolean" || o === null) && (t[i] = o);
|
|
221
221
|
}
|
|
222
222
|
const s = e.content;
|
|
223
223
|
typeof s == "string" && (t.contentLength = s.length);
|
|
224
|
-
const n = e.
|
|
225
|
-
|
|
224
|
+
const n = e.delta;
|
|
225
|
+
typeof n == "string" && (t.deltaLength = n.length);
|
|
226
|
+
const r = e.attachments;
|
|
227
|
+
return Array.isArray(r) && (t.attachmentCount = r.length), t;
|
|
226
228
|
}
|
|
227
229
|
function Rt(e, t, s) {
|
|
228
230
|
if (typeof window > "u")
|