teodor-new-chat-ui 4.3.615 → 4.3.616

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/index.esm.js CHANGED
@@ -3618,13 +3618,8 @@ function uu(e) {
3618
3618
  return e.filter((t) => t.type === "text").map((t) => t.text).join("");
3619
3619
  }
3620
3620
  function ws(e) {
3621
- const t = e.toolCallId ?? e.tool_call_id;
3622
- if (e.role === "tool" && !t) {
3623
- const n = Object.keys(e);
3624
- console.log("[extractToolMeta] ALL KEYS:", n.join(", ")), console.log("[extractToolMeta] Full message:", JSON.stringify(e, null, 2));
3625
- }
3626
3621
  return {
3627
- toolCallId: t ?? void 0,
3622
+ toolCallId: e.toolCallId ?? void 0,
3628
3623
  name: e.name ?? void 0
3629
3624
  };
3630
3625
  }
@@ -3709,18 +3704,12 @@ function Hg(e, t) {
3709
3704
  }
3710
3705
  }
3711
3706
  if (o.size === 0) return n;
3712
- console.log("[Timeline Debug] Tool calls found:", Array.from(o.entries()));
3713
3707
  const i = /* @__PURE__ */ new Map();
3714
3708
  for (let c = r + 1; c < e.length; c++) {
3715
3709
  const l = e[c];
3716
3710
  if (l.role === "tool") {
3717
3711
  const f = ws(l).toolCallId;
3718
- if (console.log("[Timeline Debug] Found tool message:", {
3719
- index: c,
3720
- toolCallId: f,
3721
- name: l.name,
3722
- hasMatch: o.has(f || "")
3723
- }), f && o.has(f)) {
3712
+ if (f && o.has(f)) {
3724
3713
  const h = Array.isArray(l.content) ? l.content : Array.isArray(l.parts) ? l.parts : [], p = uu(h.filter((m) => m.type === "text"));
3725
3714
  i.set(f, {
3726
3715
  content: p || `Finished ${l.name || "tool"}`,
@@ -3730,7 +3719,6 @@ function Hg(e, t) {
3730
3719
  }
3731
3720
  }
3732
3721
  }
3733
- console.log("[Timeline Debug] Responses found:", Array.from(i.keys()));
3734
3722
  const a = Array.from(o.entries()).sort((c, l) => c[1].order - l[1].order);
3735
3723
  for (const [c, l] of a) {
3736
3724
  const u = i.get(c);