@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.
@@ -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 r of ["type", "requestId", "clientMessageId", "sessionId", "runId", "itemId", "reason"]) {
219
- const i = e[r];
220
- (typeof i == "string" || typeof i == "number" || typeof i == "boolean" || i === null) && (t[r] = i);
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.attachments;
225
- return Array.isArray(n) && (t.attachmentCount = n.length), t;
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")