teodor-new-chat-ui 4.3.610 → 4.3.612
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 +10 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3679,9 +3679,9 @@ function Hg(e, t) {
|
|
|
3679
3679
|
if (r === -1) return n;
|
|
3680
3680
|
const o = /* @__PURE__ */ new Map();
|
|
3681
3681
|
let s = 0;
|
|
3682
|
-
for (let c = r
|
|
3682
|
+
for (let c = r; c >= 0; c--) {
|
|
3683
3683
|
const l = e[c];
|
|
3684
|
-
if (l.role === "assistant" && !fu(l))
|
|
3684
|
+
if (c < r && l.role === "assistant" && !fu(l))
|
|
3685
3685
|
break;
|
|
3686
3686
|
if (l.role === "assistant") {
|
|
3687
3687
|
const u = Array.isArray(l.content) ? l.content : Array.isArray(l.parts) ? l.parts : [];
|
|
@@ -3704,12 +3704,18 @@ function Hg(e, t) {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
3706
|
if (o.size === 0) return n;
|
|
3707
|
+
console.log("[Timeline Debug] Tool calls found:", Array.from(o.entries()));
|
|
3707
3708
|
const i = /* @__PURE__ */ new Map();
|
|
3708
3709
|
for (let c = r + 1; c < e.length; c++) {
|
|
3709
3710
|
const l = e[c];
|
|
3710
3711
|
if (l.role === "tool") {
|
|
3711
3712
|
const f = ws(l).toolCallId;
|
|
3712
|
-
if (
|
|
3713
|
+
if (console.log("[Timeline Debug] Found tool message:", {
|
|
3714
|
+
index: c,
|
|
3715
|
+
toolCallId: f,
|
|
3716
|
+
name: l.name,
|
|
3717
|
+
hasMatch: o.has(f || "")
|
|
3718
|
+
}), f && o.has(f)) {
|
|
3713
3719
|
const h = Array.isArray(l.content) ? l.content : Array.isArray(l.parts) ? l.parts : [], p = uu(h.filter((m) => m.type === "text"));
|
|
3714
3720
|
i.set(f, {
|
|
3715
3721
|
content: p || `Finished ${l.name || "tool"}`,
|
|
@@ -3719,6 +3725,7 @@ function Hg(e, t) {
|
|
|
3719
3725
|
}
|
|
3720
3726
|
}
|
|
3721
3727
|
}
|
|
3728
|
+
console.log("[Timeline Debug] Responses found:", Array.from(i.keys()));
|
|
3722
3729
|
const a = Array.from(o.entries()).sort((c, l) => c[1].order - l[1].order);
|
|
3723
3730
|
for (const [c, l] of a) {
|
|
3724
3731
|
const u = i.get(c);
|