@d-id/client-sdk 2.0.8 → 2.0.9

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.
@@ -20002,7 +20002,7 @@ function Qa(n) {
20002
20002
  function rs(n) {
20003
20003
  return n instanceof Ot ? n.toJson() : { kind: "UnknownError", message: Up(n) || "UnknownError" };
20004
20004
  }
20005
- const Wp = "2.0.8", Kp = "https://api-js.mixpanel.com/track/?verbose=1&ip=1", Jd = 50, Nt = [];
20005
+ const Wp = "2.0.9", Kp = "https://api-js.mixpanel.com/track/?verbose=1&ip=1", Jd = 50, Nt = [];
20006
20006
  let as = !1;
20007
20007
  async function Gd(n) {
20008
20008
  const e = await fetch(Kp, {
@@ -20199,7 +20199,10 @@ function eg(n, e, t, i, s, r, o) {
20199
20199
  d && r(), l = {
20200
20200
  id: e.id || `assistant-${Date.now()}`,
20201
20201
  role: e.role || "assistant",
20202
- content: e.content || "",
20202
+ // Starts empty so the content-change check below fires for this message's first chat
20203
+ // event. Seeding it with `data.content` made that check a no-op, so a message carried
20204
+ // by a single partial (e.g. a worker `say` greeting) never reached `onNewMessage`.
20205
+ content: "",
20203
20206
  parts: [],
20204
20207
  created_at: e.created_at || (/* @__PURE__ */ new Date()).toISOString()
20205
20208
  }, i.messages.push(l);
@@ -20388,6 +20391,8 @@ function cg(n) {
20388
20391
  }), a;
20389
20392
  }
20390
20393
  function Za(n, e, t) {
20394
+ if (n.length === 0)
20395
+ return null;
20391
20396
  const i = n.map((c, d) => d === 0 ? t ? {
20392
20397
  timestamp: c.timestamp,
20393
20398
  duration: 0,
@@ -20531,7 +20536,7 @@ function mg(n, e, t, i, s) {
20531
20536
  c = 0, h = M - m, u = R < lg ? bn.Strong : R > ug && h > 1 ? bn.Weak : l, u !== l && (s == null || s(u), l = u, m += h, h = 0), d || (i == null || i(ne.Start), a = o[o.length - 1], o = [], d = !0), o.push(y);
20532
20537
  else if (d && (c++, c >= dg)) {
20533
20538
  const b = Za(o, di, a);
20534
- i == null || i(ne.Stop, b), e() || t(), m = M, d = !1;
20539
+ i == null || i(ne.Stop, b ?? void 0), e() || t(), m = M, d = !1;
20535
20540
  }
20536
20541
  }
20537
20542
  return {
@@ -20806,7 +20811,7 @@ async function bg(n, e, t, i) {
20806
20811
  const { version: r, ...o } = e;
20807
20812
  switch (o.transport.provider) {
20808
20813
  case Vs.Livekit:
20809
- const { createLiveKitStreamingManager: a } = await import("./livekit-manager-aJg_E0hR.js");
20814
+ const { createLiveKitStreamingManager: a } = await import("./livekit-manager-CjDotoox.js");
20810
20815
  return a(s, o, t);
20811
20816
  default:
20812
20817
  throw new Error(`Unsupported transport provider: ${o.transport.provider}`);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, B as r, k as t, m as o, o as i, C as n, f as S, g as d, p, H as c, K as E, N as g, P as m, q as C, R as T, r as y, s as l, e as v, S as A, b as D, j as P, u as V, T as h, V as w, v as u, w as M, W as R, x as b, y as K, z as N, E as f, F as j } from "./index-CeqOE8FZ.js";
1
+ import { A as s, B as r, k as t, m as o, o as i, C as n, f as S, g as d, p, H as c, K as E, N as g, P as m, q as C, R as T, r as y, s as l, e as v, S as A, b as D, j as P, u as V, T as h, V as w, v as u, w as M, W as R, x as b, y as K, z as N, E as f, F as j } from "./index-uZnPpsZ5.js";
2
2
  export {
3
3
  s as AgentActivityState,
4
4
  r as BaseError,