@tangle-network/agent-app 0.46.7 → 0.46.8
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.
|
@@ -625,7 +625,7 @@ function ModelPill({
|
|
|
625
625
|
children: [
|
|
626
626
|
unavailable && /* @__PURE__ */ jsx(TriangleAlert, { "aria-hidden": true, className: "h-3.5 w-3.5 shrink-0 text-warning", strokeWidth: 2 }),
|
|
627
627
|
provider && /* @__PURE__ */ jsx(ProviderLogo, { provider, size: 14 }),
|
|
628
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
628
|
+
/* @__PURE__ */ jsx("span", { className: "max-w-[168px] truncate leading-normal", children: displayName }),
|
|
629
629
|
/* @__PURE__ */ jsx(ChevronDown, { className: "h-3 w-3 shrink-0 text-muted-foreground" })
|
|
630
630
|
]
|
|
631
631
|
}
|
|
@@ -1023,7 +1023,7 @@ function StudioComposer({
|
|
|
1023
1023
|
title: "Generate",
|
|
1024
1024
|
disabled: !canSubmit,
|
|
1025
1025
|
onClick: () => void generate(),
|
|
1026
|
-
className: "
|
|
1026
|
+
className: "ml-auto inline-flex h-8 w-8 flex-none items-center justify-center rounded-full bg-foreground text-background transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card",
|
|
1027
1027
|
children: /* @__PURE__ */ jsx2(ArrowUp, { className: "h-4 w-4", strokeWidth: 2 })
|
|
1028
1028
|
}
|
|
1029
1029
|
)
|
|
@@ -2490,7 +2490,7 @@ function StudioHomeScreen({
|
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
2492
2492
|
// src/studio-react/studio-generation-screen.tsx
|
|
2493
|
-
import { ArrowLeft } from "lucide-react";
|
|
2493
|
+
import { ArrowLeft, CircleAlert } from "lucide-react";
|
|
2494
2494
|
import {
|
|
2495
2495
|
useCallback as useCallback9,
|
|
2496
2496
|
useEffect as useEffect12,
|
|
@@ -2618,12 +2618,17 @@ function StudioGenerationScreen({
|
|
|
2618
2618
|
return /* @__PURE__ */ jsx11("div", { className: "studio-skeleton", style: { "--r": ratio } }, row.id);
|
|
2619
2619
|
}
|
|
2620
2620
|
if (generationStatus(row) === "failed") {
|
|
2621
|
-
|
|
2621
|
+
const reason = generationError(row);
|
|
2622
|
+
return /* @__PURE__ */ jsxs10(
|
|
2622
2623
|
"div",
|
|
2623
2624
|
{
|
|
2624
|
-
className: "
|
|
2625
|
+
className: "flex flex-col items-center justify-center gap-1.5 bg-accent p-3 text-center",
|
|
2625
2626
|
style: { aspectRatio: ratio },
|
|
2626
|
-
children:
|
|
2627
|
+
children: [
|
|
2628
|
+
/* @__PURE__ */ jsx11(CircleAlert, { "aria-hidden": true, className: "h-4 w-4 flex-none text-destructive", strokeWidth: 2 }),
|
|
2629
|
+
/* @__PURE__ */ jsx11("p", { className: "text-[13px] font-medium text-foreground", children: "Generation failed" }),
|
|
2630
|
+
reason && reason !== "Generation failed" && /* @__PURE__ */ jsx11("p", { className: "line-clamp-3 text-[12px] text-muted-foreground", children: reason })
|
|
2631
|
+
]
|
|
2627
2632
|
},
|
|
2628
2633
|
row.id
|
|
2629
2634
|
);
|