@agents24/chat-react 0.5.34 → 0.5.35
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/scaffold/index.js
CHANGED
|
@@ -1365,7 +1365,7 @@ function ThemeMenu() {
|
|
|
1365
1365
|
|
|
1366
1366
|
// scaffold/src/components/chat/thread-sidebar.tsx
|
|
1367
1367
|
import { getThreadActivity } from "@agents24/react";
|
|
1368
|
-
import { LoaderCircle as LoaderCircle2, SquarePen, Trash2 } from "lucide-react";
|
|
1368
|
+
import { LoaderCircle as LoaderCircle2, Pause, SquarePen, Trash2 } from "lucide-react";
|
|
1369
1369
|
|
|
1370
1370
|
// scaffold/src/components/chat/identity-control.tsx
|
|
1371
1371
|
import { LogIn, LogOut, UserRound } from "lucide-react";
|
|
@@ -1980,16 +1980,17 @@ function IdentityControl({ identity }) {
|
|
|
1980
1980
|
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1981
1981
|
function ThreadStatus({ thread }) {
|
|
1982
1982
|
const activity = getThreadActivity(thread);
|
|
1983
|
-
|
|
1984
|
-
|
|
1983
|
+
const waiting = ["paused", "waiting", "interrupted"].includes(activity.status || "");
|
|
1984
|
+
if (!activity.isSpinning && !waiting) return null;
|
|
1985
|
+
const label = waiting ? "Waiting" : activity.status === "cancelling" ? "Cancelling" : activity.status === "queued" ? "Queued" : "Running";
|
|
1985
1986
|
return /* @__PURE__ */ jsx23(
|
|
1986
1987
|
"span",
|
|
1987
1988
|
{
|
|
1988
|
-
className: "pointer-events-none absolute end-1 top-1/2
|
|
1989
|
+
className: "pointer-events-none absolute end-1 top-1/2 flex size-5 -translate-y-1/2 items-center justify-center text-muted-foreground transition-opacity group-hover/menu-item:opacity-0",
|
|
1989
1990
|
role: "status",
|
|
1990
1991
|
"aria-label": label,
|
|
1991
1992
|
title: label,
|
|
1992
|
-
children: /* @__PURE__ */ jsx23(LoaderCircle2, { className: "size-3.5 animate-spin" })
|
|
1993
|
+
children: waiting ? /* @__PURE__ */ jsx23(Pause, { className: "size-3.5 text-amber-600" }) : /* @__PURE__ */ jsx23(LoaderCircle2, { className: "size-3.5 animate-spin" })
|
|
1993
1994
|
}
|
|
1994
1995
|
);
|
|
1995
1996
|
}
|