@tangle-network/agent-app 0.45.32 → 0.45.34
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/{DesignCanvas-RSWQCXM3.js → DesignCanvas-EODMDQMT.js} +2 -2
- package/dist/{DesignCanvasEditor-XZMGIST7.js → DesignCanvasEditor-DRRZ6ZD3.js} +4 -4
- package/dist/{InvitationsPanel-CJ7DR4F7.js → InvitationsPanel-BATXZHY4.js} +2 -2
- package/dist/{MembersPanel-BB4OD2KB.js → MembersPanel-XNLF3SA4.js} +2 -2
- package/dist/agent-session-controls-1q1XR3j8.d.ts +257 -0
- package/dist/assistant/index.d.ts +1 -1
- package/dist/assistant/index.js +11 -10
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.d.ts +1 -1
- package/dist/chat-react/index.js +1 -1
- package/dist/{chunk-YIQHOAHN.js → chunk-3UBAO3N5.js} +3 -3
- package/dist/{chunk-YIQHOAHN.js.map → chunk-3UBAO3N5.js.map} +1 -1
- package/dist/{chunk-PURHUAOR.js → chunk-556RB3XI.js} +5 -5
- package/dist/chunk-556RB3XI.js.map +1 -0
- package/dist/{chunk-HZ4WCA37.js → chunk-5MZXWPFN.js} +9 -9
- package/dist/chunk-5MZXWPFN.js.map +1 -0
- package/dist/{chunk-FNM7JYME.js → chunk-5N434BGF.js} +17 -17
- package/dist/chunk-5N434BGF.js.map +1 -0
- package/dist/{chunk-5SXS3YAB.js → chunk-7MV23XBW.js} +2 -2
- package/dist/chunk-7MV23XBW.js.map +1 -0
- package/dist/{chunk-IFYJDX3J.js → chunk-AIHKKLKY.js} +47 -46
- package/dist/chunk-AIHKKLKY.js.map +1 -0
- package/dist/{chunk-S564OFTL.js → chunk-F4XLTVQ3.js} +3 -3
- package/dist/{chunk-S564OFTL.js.map → chunk-F4XLTVQ3.js.map} +1 -1
- package/dist/{chunk-LSQR6HM6.js → chunk-IN6LNZ7O.js} +35 -34
- package/dist/chunk-IN6LNZ7O.js.map +1 -0
- package/dist/chunk-MIZMWCKW.js +904 -0
- package/dist/chunk-MIZMWCKW.js.map +1 -0
- package/dist/{chunk-QGOU3VXH.js → chunk-UXRJAUJL.js} +3 -3
- package/dist/design-canvas-react/index.js +8 -8
- package/dist/design-canvas-react/index.js.map +1 -1
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/studio-react/index.js +27 -27
- package/dist/studio-react/index.js.map +1 -1
- package/dist/teams-react/index.js +2 -2
- package/dist/teams-react/lazy.js +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/theme/tailwind-preset.d.ts +5 -1
- package/dist/theme/tailwind-preset.js +11 -2
- package/dist/theme/tailwind-preset.js.map +1 -1
- package/dist/theme/tokens.css +126 -79
- package/dist/web-react/async/index.js +1 -1
- package/dist/web-react/index.d.ts +31 -91
- package/dist/web-react/index.js +13 -3
- package/dist/work-product-react/index.js +3 -3
- package/dist/work-product-react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/agent-session-controls-BwImzYKC.d.ts +0 -129
- package/dist/chunk-5SXS3YAB.js.map +0 -1
- package/dist/chunk-FNM7JYME.js.map +0 -1
- package/dist/chunk-HZ4WCA37.js.map +0 -1
- package/dist/chunk-IFYJDX3J.js.map +0 -1
- package/dist/chunk-L7FHRORY.js +0 -763
- package/dist/chunk-L7FHRORY.js.map +0 -1
- package/dist/chunk-LSQR6HM6.js.map +0 -1
- package/dist/chunk-PURHUAOR.js.map +0 -1
- /package/dist/{DesignCanvas-RSWQCXM3.js.map → DesignCanvas-EODMDQMT.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-XZMGIST7.js.map → DesignCanvasEditor-DRRZ6ZD3.js.map} +0 -0
- /package/dist/{InvitationsPanel-CJ7DR4F7.js.map → InvitationsPanel-BATXZHY4.js.map} +0 -0
- /package/dist/{MembersPanel-BB4OD2KB.js.map → MembersPanel-XNLF3SA4.js.map} +0 -0
- /package/dist/{chunk-QGOU3VXH.js.map → chunk-UXRJAUJL.js.map} +0 -0
|
@@ -134,7 +134,7 @@ function Field({
|
|
|
134
134
|
Label,
|
|
135
135
|
{
|
|
136
136
|
htmlFor,
|
|
137
|
-
className: "text-[
|
|
137
|
+
className: "text-[11px] font-semibold uppercase tracking-[0.05em] text-muted-foreground",
|
|
138
138
|
children: label
|
|
139
139
|
}
|
|
140
140
|
),
|
|
@@ -380,7 +380,7 @@ function PublishPackageComposer({
|
|
|
380
380
|
disabled: !connected,
|
|
381
381
|
"aria-pressed": active,
|
|
382
382
|
onClick: () => onDestinationToggle(destination.id),
|
|
383
|
-
className: `rounded-md border p-2 text-left transition-colors disabled:cursor-not-allowed disabled:opacity-60 ${active ? "border-primary bg-primary/
|
|
383
|
+
className: `rounded-md border p-2 text-left transition-colors disabled:cursor-not-allowed disabled:opacity-60 ${active ? "border-primary bg-primary/10 ring-1 ring-primary/20" : "border-border bg-[var(--md3-surface-container-low)] hover:bg-accent"}`,
|
|
384
384
|
children: [
|
|
385
385
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between gap-2", children: [
|
|
386
386
|
/* @__PURE__ */ jsxs6("span", { className: "flex items-center gap-1.5 text-xs font-medium text-foreground", children: [
|
|
@@ -401,7 +401,7 @@ function PublishPackageComposer({
|
|
|
401
401
|
/* @__PURE__ */ jsx7(Field, { label: "Mentions", className: "space-y-2", children: /* @__PURE__ */ jsx7(Input6, { value: mentions, onChange: (event) => onMentionsChange(event.target.value), placeholder: "@creator, @partner", className: "bg-[var(--md3-surface-container-low)]" }) }),
|
|
402
402
|
/* @__PURE__ */ jsx7(Field, { label: "Cadence", className: "space-y-2", children: /* @__PURE__ */ jsx7(NativeSelect, { value: cadence, onChange: (event) => onCadenceChange(event.target.value), children: CADENCES.map((option) => /* @__PURE__ */ jsx7("option", { value: option, children: option }, option)) }) })
|
|
403
403
|
] }),
|
|
404
|
-
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2 rounded-md bg-
|
|
404
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2 rounded-md bg-secondary p-2 text-xs text-muted-foreground", children: [
|
|
405
405
|
/* @__PURE__ */ jsx7(CalendarClock, { className: "h-3.5 w-3.5" }),
|
|
406
406
|
"Publish packages stay attached to generated media and can run through connected GTM apps."
|
|
407
407
|
] })
|
|
@@ -635,7 +635,7 @@ function ComposerHero({
|
|
|
635
635
|
Label2,
|
|
636
636
|
{
|
|
637
637
|
htmlFor: "studio-prompt",
|
|
638
|
-
className: "mb-1.5 block text-[
|
|
638
|
+
className: "mb-1.5 block text-[11px] font-semibold uppercase tracking-[0.05em] text-muted-foreground",
|
|
639
639
|
children: "Prompt"
|
|
640
640
|
}
|
|
641
641
|
),
|
|
@@ -708,14 +708,14 @@ function ComposerHero({
|
|
|
708
708
|
"\xB7 ",
|
|
709
709
|
selectedModelOption.provider
|
|
710
710
|
] }),
|
|
711
|
-
selectedModelOption.status !== "available" && /* @__PURE__ */ jsx8("span", { className: "shrink-0 rounded-full bg-warning/10 px-1.5 py-0.5 text-[
|
|
711
|
+
selectedModelOption.status !== "available" && /* @__PURE__ */ jsx8("span", { className: "shrink-0 rounded-full bg-warning/10 px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-[0.05em] text-warning", children: selectedModelOption.status })
|
|
712
712
|
] }) : /* @__PURE__ */ jsx8(SelectValue, { placeholder: mediaModelsLoading ? "Loading models\u2026" : "Select a model" }) }),
|
|
713
713
|
/* @__PURE__ */ jsx8(SelectContent, { className: "bg-background", children: modelsForType.map((model) => /* @__PURE__ */ jsx8(SelectItem, { value: model.id, disabled: model.status === "unavailable", children: /* @__PURE__ */ jsxs7("span", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
714
714
|
/* @__PURE__ */ jsxs7("span", { className: "truncate", children: [
|
|
715
715
|
model.name || model.id,
|
|
716
716
|
model.provider ? ` \xB7 ${model.provider}` : ""
|
|
717
717
|
] }),
|
|
718
|
-
model.status !== "available" && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-[
|
|
718
|
+
model.status !== "available" && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-[11px] capitalize text-muted-foreground", children: model.status })
|
|
719
719
|
] }) }, model.id)) })
|
|
720
720
|
]
|
|
721
721
|
}
|
|
@@ -776,7 +776,7 @@ function ComposerHero({
|
|
|
776
776
|
{
|
|
777
777
|
summary: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
778
778
|
"Schedule a post",
|
|
779
|
-
selectedConnectedDestinations.length > 0 && /* @__PURE__ */ jsx8(Badge2, { variant: "outline", className: "ml-1 text-[
|
|
779
|
+
selectedConnectedDestinations.length > 0 && /* @__PURE__ */ jsx8(Badge2, { variant: "outline", className: "ml-1 text-[11px]", children: selectedConnectedDestinations.length })
|
|
780
780
|
] }),
|
|
781
781
|
children: /* @__PURE__ */ jsx8(
|
|
782
782
|
PublishPackageComposer,
|
|
@@ -809,7 +809,7 @@ function ComposerHero({
|
|
|
809
809
|
/* @__PURE__ */ jsxs7(Button2, { onClick: generate, disabled: !canSubmit, size: "lg", className: "mt-5 w-full", children: [
|
|
810
810
|
/* @__PURE__ */ jsx8(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
811
811
|
"Generate",
|
|
812
|
-
/* @__PURE__ */ jsx8("span", { className: "ml-2 text-[
|
|
812
|
+
/* @__PURE__ */ jsx8("span", { className: "ml-2 text-[11px] opacity-60", children: "\u2318\u21B5" })
|
|
813
813
|
] })
|
|
814
814
|
] });
|
|
815
815
|
}
|
|
@@ -831,7 +831,7 @@ function StudioHeader({
|
|
|
831
831
|
/* @__PURE__ */ jsxs8(Button3, { size: "sm", variant: "outline", onClick: onOpenLibrary, className: "shrink-0", children: [
|
|
832
832
|
/* @__PURE__ */ jsx9(Images, { className: "mr-1.5 h-4 w-4" }),
|
|
833
833
|
"Library",
|
|
834
|
-
count > 0 && /* @__PURE__ */ jsx9("span", { className: "ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary/15 px-1.5 text-[
|
|
834
|
+
count > 0 && /* @__PURE__ */ jsx9("span", { className: "ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary/15 px-1.5 text-[11px] font-semibold text-primary", children: count })
|
|
835
835
|
] })
|
|
836
836
|
] }) });
|
|
837
837
|
}
|
|
@@ -860,7 +860,7 @@ function ResultCanvas({
|
|
|
860
860
|
return /* @__PURE__ */ jsxs9("section", { className: `${cardClass} p-5`, children: [
|
|
861
861
|
/* @__PURE__ */ jsxs9("div", { className: "mb-3 flex items-center justify-between gap-3", children: [
|
|
862
862
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2", children: [
|
|
863
|
-
/* @__PURE__ */ jsx10(Badge3, { variant: "outline", className: `${cfg.color} text-[
|
|
863
|
+
/* @__PURE__ */ jsx10(Badge3, { variant: "outline", className: `${cfg.color} text-[11px]`, children: cfg.label }),
|
|
864
864
|
/* @__PURE__ */ jsx10("span", { className: "text-sm font-medium text-foreground", children: runLabel }),
|
|
865
865
|
isWorking && /* @__PURE__ */ jsx10("span", { className: "h-2 w-2 animate-pulse rounded-full bg-primary" })
|
|
866
866
|
] }),
|
|
@@ -882,7 +882,7 @@ function ResultCanvas({
|
|
|
882
882
|
{
|
|
883
883
|
type: "button",
|
|
884
884
|
onClick: () => onSelect(generation),
|
|
885
|
-
className: "studio-bloom group relative aspect-video overflow-hidden rounded-lg border border-border bg-
|
|
885
|
+
className: "studio-bloom group relative aspect-video overflow-hidden rounded-lg border border-border bg-secondary transition-colors hover:border-primary/40",
|
|
886
886
|
children: /* @__PURE__ */ jsx10(CanvasTile, { generation })
|
|
887
887
|
},
|
|
888
888
|
generation.id
|
|
@@ -946,7 +946,7 @@ function StudioSheet({
|
|
|
946
946
|
/* @__PURE__ */ jsxs10(
|
|
947
947
|
Dialog.Content,
|
|
948
948
|
{
|
|
949
|
-
className: "studio-sheet-content fixed inset-y-0 right-0 z-50 flex w-[min(92vw,30rem)] flex-col border-l border-border bg-
|
|
949
|
+
className: "studio-sheet-content fixed inset-y-0 right-0 z-50 flex w-[min(92vw,30rem)] flex-col border-l border-border bg-popover shadow-lg focus:outline-none",
|
|
950
950
|
"aria-describedby": void 0,
|
|
951
951
|
children: [
|
|
952
952
|
/* @__PURE__ */ jsx11(Dialog.Title, { className: "sr-only", children: title }),
|
|
@@ -974,33 +974,33 @@ function GenerationCard({
|
|
|
974
974
|
const status = generationStatus(generation);
|
|
975
975
|
const publishPackage = generation.metadata?.publishPackage;
|
|
976
976
|
return /* @__PURE__ */ jsx12("button", { type: "button", onClick: () => onSelect(generation), className: "group text-left animate-row-in", children: /* @__PURE__ */ jsxs11(Card, { className: "overflow-hidden transition-all group-hover:border-primary/50 group-hover:shadow-md", children: [
|
|
977
|
-
/* @__PURE__ */ jsxs11("div", { className: "relative aspect-video bg-
|
|
977
|
+
/* @__PURE__ */ jsxs11("div", { className: "relative aspect-video bg-secondary", children: [
|
|
978
978
|
generation.type === "image" && generation.result ? /* @__PURE__ */ jsx12("img", { src: generation.result, alt: generation.prompt, className: "h-full w-full object-cover" }) : (generation.type === "video" || generation.type === "avatar") && generation.result ? /* @__PURE__ */ jsx12("video", { src: generation.result, className: "h-full w-full object-cover", muted: true }) : generation.type === "speech" && generation.result ? /* @__PURE__ */ jsx12("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
|
|
979
979
|
/* @__PURE__ */ jsx12(Icon, { className: "h-6 w-6 text-muted-foreground/40" }),
|
|
980
980
|
/* @__PURE__ */ jsx12("span", { className: "text-xs text-muted-foreground", children: "Audio" })
|
|
981
981
|
] }) }) : generation.type === "transcription" && generation.result ? /* @__PURE__ */ jsx12("div", { className: "flex h-full items-center justify-center p-4", children: /* @__PURE__ */ jsx12("p", { className: "line-clamp-5 text-xs text-muted-foreground", children: generation.result }) }) : status === "pending" || status === "running" ? /* @__PURE__ */ jsx12("div", { className: "shimmer h-full w-full" }) : /* @__PURE__ */ jsx12("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ jsx12(Icon, { className: "h-8 w-8 text-muted-foreground/20" }) }),
|
|
982
|
-
/* @__PURE__ */ jsx12("div", { className: "absolute left-2 top-2", children: /* @__PURE__ */ jsx12(Badge4, { variant: "outline", className: `${cfg.color} text-[
|
|
982
|
+
/* @__PURE__ */ jsx12("div", { className: "absolute left-2 top-2", children: /* @__PURE__ */ jsx12(Badge4, { variant: "outline", className: `${cfg.color} text-[11px]`, children: cfg.label }) }),
|
|
983
983
|
/* @__PURE__ */ jsx12(GenerationStatusBadge, { generation })
|
|
984
984
|
] }),
|
|
985
985
|
/* @__PURE__ */ jsxs11(CardContent, { className: "p-3", children: [
|
|
986
986
|
/* @__PURE__ */ jsx12("p", { className: "mb-2 line-clamp-2 text-xs text-foreground", children: generation.prompt }),
|
|
987
|
-
status === "failed" && /* @__PURE__ */ jsx12("p", { className: "mb-2 line-clamp-2 text-[
|
|
987
|
+
status === "failed" && /* @__PURE__ */ jsx12("p", { className: "mb-2 line-clamp-2 text-[11px] text-destructive", children: generationError(generation) }),
|
|
988
988
|
/* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between", children: [
|
|
989
|
-
generation.model && /* @__PURE__ */ jsx12("span", { className: "truncate text-[
|
|
989
|
+
generation.model && /* @__PURE__ */ jsx12("span", { className: "truncate text-[11px] text-muted-foreground", children: generation.model }),
|
|
990
990
|
/* @__PURE__ */ jsxs11("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
991
|
-
generation.cost != null && /* @__PURE__ */ jsxs11("span", { className: "text-[
|
|
991
|
+
generation.cost != null && /* @__PURE__ */ jsxs11("span", { className: "text-[11px] text-muted-foreground", children: [
|
|
992
992
|
"$",
|
|
993
993
|
generation.cost.toFixed(3)
|
|
994
994
|
] }),
|
|
995
|
-
/* @__PURE__ */ jsx12("span", { className: "text-[
|
|
995
|
+
/* @__PURE__ */ jsx12("span", { className: "text-[11px] text-muted-foreground", children: relativeTime(generation.createdAt) })
|
|
996
996
|
] })
|
|
997
997
|
] }),
|
|
998
|
-
isPublishPackage(publishPackage) && /* @__PURE__ */ jsxs11("div", { className: "mt-3 rounded-md border border-border bg-
|
|
999
|
-
/* @__PURE__ */ jsxs11("div", { className: "mb-1 flex items-center gap-1.5 text-[
|
|
998
|
+
isPublishPackage(publishPackage) && /* @__PURE__ */ jsxs11("div", { className: "mt-3 rounded-md border border-border bg-secondary p-2", children: [
|
|
999
|
+
/* @__PURE__ */ jsxs11("div", { className: "mb-1 flex items-center gap-1.5 text-[11px] font-medium text-foreground", children: [
|
|
1000
1000
|
/* @__PURE__ */ jsx12(Send, { className: "h-3 w-3" }),
|
|
1001
1001
|
(publishPackage.destinations ?? []).join(", ") || "Publish package"
|
|
1002
1002
|
] }),
|
|
1003
|
-
/* @__PURE__ */ jsx12("p", { className: "line-clamp-2 text-[
|
|
1003
|
+
/* @__PURE__ */ jsx12("p", { className: "line-clamp-2 text-[11px] text-muted-foreground", children: publishPackage.caption || "Caption pending" })
|
|
1004
1004
|
] })
|
|
1005
1005
|
] })
|
|
1006
1006
|
] }) });
|
|
@@ -1013,7 +1013,7 @@ function GenerationStatusBadge({
|
|
|
1013
1013
|
if (status === "succeeded") return null;
|
|
1014
1014
|
const label = status === "failed" ? "Failed" : status === "running" ? "Running" : "Pending";
|
|
1015
1015
|
const className = status === "failed" ? "border-destructive/25 bg-destructive/10 text-destructive" : "border-warning/25 bg-warning/10 text-warning";
|
|
1016
|
-
return /* @__PURE__ */ jsx12("div", { className: inline ? "" : "absolute bottom-2 left-2", children: /* @__PURE__ */ jsx12(Badge4, { variant: "outline", className: `${className} text-[
|
|
1016
|
+
return /* @__PURE__ */ jsx12("div", { className: inline ? "" : "absolute bottom-2 left-2", children: /* @__PURE__ */ jsx12(Badge4, { variant: "outline", className: `${className} text-[11px]`, children: label }) });
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
1019
|
// src/studio-react/generation-grid.tsx
|
|
@@ -1056,7 +1056,7 @@ function GenerationDetail({
|
|
|
1056
1056
|
const vaultPath = generationVaultPath(generation);
|
|
1057
1057
|
const href = vaultHref && vaultPath ? vaultHref(vaultPath) : null;
|
|
1058
1058
|
return /* @__PURE__ */ jsxs12("div", { className: "space-y-4", children: [
|
|
1059
|
-
/* @__PURE__ */ jsx14("div", { className: "overflow-hidden rounded-lg bg-
|
|
1059
|
+
/* @__PURE__ */ jsx14("div", { className: "overflow-hidden rounded-lg bg-secondary", children: generation.type === "image" && generation.result ? /* @__PURE__ */ jsx14("img", { src: generation.result, alt: generation.prompt, className: "max-h-[420px] w-full object-contain" }) : (generation.type === "video" || generation.type === "avatar") && generation.result ? /* @__PURE__ */ jsx14("video", { src: generation.result, controls: true, className: "max-h-[420px] w-full" }) : generation.type === "speech" && generation.result ? /* @__PURE__ */ jsx14("div", { className: "p-6", children: /* @__PURE__ */ jsx14("audio", { src: generation.result, controls: true, className: "w-full" }) }) : /* @__PURE__ */ jsx14("div", { className: "flex h-32 items-center justify-center", children: /* @__PURE__ */ jsx14(Icon, { className: "h-8 w-8 text-muted-foreground/20" }) }) }),
|
|
1060
1060
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1061
1061
|
/* @__PURE__ */ jsx14(Badge5, { variant: "outline", className: cfg.color, children: cfg.label }),
|
|
1062
1062
|
/* @__PURE__ */ jsx14(GenerationStatusBadge, { generation, inline: true }),
|
|
@@ -1068,24 +1068,24 @@ function GenerationDetail({
|
|
|
1068
1068
|
] }),
|
|
1069
1069
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
1070
1070
|
generation.model && /* @__PURE__ */ jsxs12("div", { children: [
|
|
1071
|
-
/* @__PURE__ */ jsx14("span", { className: "block text-[
|
|
1071
|
+
/* @__PURE__ */ jsx14("span", { className: "block text-[11px] font-medium text-muted-foreground", children: "Model" }),
|
|
1072
1072
|
/* @__PURE__ */ jsx14("span", { className: "text-xs text-foreground", children: generation.model })
|
|
1073
1073
|
] }),
|
|
1074
1074
|
generation.cost != null && /* @__PURE__ */ jsxs12("div", { children: [
|
|
1075
|
-
/* @__PURE__ */ jsx14("span", { className: "block text-[
|
|
1075
|
+
/* @__PURE__ */ jsx14("span", { className: "block text-[11px] font-medium text-muted-foreground", children: "Cost" }),
|
|
1076
1076
|
/* @__PURE__ */ jsxs12("span", { className: "text-xs text-foreground", children: [
|
|
1077
1077
|
"$",
|
|
1078
1078
|
generation.cost.toFixed(4)
|
|
1079
1079
|
] })
|
|
1080
1080
|
] }),
|
|
1081
1081
|
generation.createdAt && /* @__PURE__ */ jsxs12("div", { children: [
|
|
1082
|
-
/* @__PURE__ */ jsx14("span", { className: "block text-[
|
|
1082
|
+
/* @__PURE__ */ jsx14("span", { className: "block text-[11px] font-medium text-muted-foreground", children: "Created" }),
|
|
1083
1083
|
/* @__PURE__ */ jsx14("span", { className: "text-xs text-foreground", children: new Date(generation.createdAt).toLocaleString() })
|
|
1084
1084
|
] })
|
|
1085
1085
|
] }),
|
|
1086
1086
|
generation.type === "transcription" && generation.result && /* @__PURE__ */ jsxs12("div", { children: [
|
|
1087
1087
|
/* @__PURE__ */ jsx14("span", { className: "mb-1 block text-xs font-medium text-muted-foreground", children: "Transcription" }),
|
|
1088
|
-
/* @__PURE__ */ jsx14("pre", { className: "max-h-64 overflow-y-auto whitespace-pre-wrap rounded-lg bg-
|
|
1088
|
+
/* @__PURE__ */ jsx14("pre", { className: "max-h-64 overflow-y-auto whitespace-pre-wrap rounded-lg bg-secondary p-4 text-sm text-foreground", children: generation.result })
|
|
1089
1089
|
] }),
|
|
1090
1090
|
href && /* @__PURE__ */ jsx14("div", { className: "border-t border-border pt-2", children: /* @__PURE__ */ jsx14(Link2, { to: href, prefetch: "intent", onClick: onNavigate, children: /* @__PURE__ */ jsxs12(Button4, { size: "sm", variant: "outline", children: [
|
|
1091
1091
|
/* @__PURE__ */ jsx14(FolderOpen, { className: "mr-1.5 h-3.5 w-3.5" }),
|