@tangle-network/sandbox-ui 0.31.0 → 0.32.0

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/chat.js CHANGED
@@ -16,9 +16,9 @@ import {
16
16
  modelProvider,
17
17
  snapHarnessToModel,
18
18
  snapModelToHarness
19
- } from "./chunk-BJFWPP5T.js";
20
- import "./chunk-ELGN7DPS.js";
21
- import "./chunk-6NQBODYV.js";
19
+ } from "./chunk-E267TDZP.js";
20
+ import "./chunk-JC7GMQK7.js";
21
+ import "./chunk-NMR2CTGP.js";
22
22
  import "./chunk-EI44GEQ5.js";
23
23
  export {
24
24
  AgentSessionControls,
@@ -414,7 +414,7 @@ function UsageChart({ data, title, unit, className }) {
414
414
  onMouseEnter: () => setHoveredIndex(index),
415
415
  onMouseLeave: () => setHoveredIndex(null),
416
416
  children: [
417
- isHovered && /* @__PURE__ */ jsxs3("div", { className: "absolute -top-12 z-10 rounded-lg bg-popover px-3 py-1.5 text-sm shadow-lg", children: [
417
+ isHovered && /* @__PURE__ */ jsxs3("div", { className: "absolute -top-12 z-10 rounded-lg border border-border bg-popover px-3 py-1.5 text-sm shadow-[var(--shadow-dropdown)]", children: [
418
418
  /* @__PURE__ */ jsxs3("p", { className: "font-medium", children: [
419
419
  formatValue(point.value),
420
420
  " ",
@@ -490,7 +490,7 @@ function TemplateCard({ template, onUseTemplate, className }) {
490
490
  "div",
491
491
  {
492
492
  className: cn(
493
- "group relative flex flex-col justify-between rounded-2xl border border-border bg-card p-6 transition-all hover:border-primary/30 hover:shadow-md",
493
+ "group relative flex flex-col justify-between rounded-xl border border-border bg-card p-6 transition-colors hover:border-[var(--border-accent)]",
494
494
  className
495
495
  ),
496
496
  children: [
@@ -1048,7 +1048,7 @@ function SessionSidebar({
1048
1048
  className: cn("relative flex shrink-0 flex-col border-r border-border bg-card", className),
1049
1049
  style: { width: resizable ? resize.width : defaultWidth },
1050
1050
  children: [
1051
- /* @__PURE__ */ jsx7("div", { className: "flex h-14 shrink-0 items-center border-b border-border px-3", children: /* @__PURE__ */ jsxs7("div", { className: "flex w-full items-center justify-between gap-2", children: [
1051
+ /* @__PURE__ */ jsx7("div", { className: "flex shrink-0 items-center border-b border-border bg-muted/20 px-3 py-1.5", children: /* @__PURE__ */ jsxs7("div", { className: "flex w-full items-center justify-between gap-2", children: [
1052
1052
  /* @__PURE__ */ jsxs7("div", { className: "flex min-w-0 items-center gap-2", children: [
1053
1053
  /* @__PURE__ */ jsx7("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[var(--radius-sm)] border border-[var(--border-accent)] bg-[var(--accent-surface-soft)] text-primary", children: /* @__PURE__ */ jsx7(MessageSquareText, { className: "h-3.5 w-3.5" }) }),
1054
1054
  /* @__PURE__ */ jsxs7("div", { className: "min-w-0", children: [
@@ -1080,7 +1080,7 @@ function SessionSidebar({
1080
1080
  onChange: (event) => setQuery(event.target.value),
1081
1081
  placeholder: searchPlaceholder,
1082
1082
  "aria-label": searchPlaceholder,
1083
- className: "h-8 w-full rounded-[var(--radius-sm)] border border-border bg-muted pl-7 pr-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--border-accent)]"
1083
+ className: "h-8 w-full rounded-[var(--radius-sm)] border border-transparent bg-muted/40 pl-7 pr-2 text-sm text-foreground placeholder:text-muted-foreground transition-colors focus-visible:border-[var(--border-accent)] focus-visible:bg-transparent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--border-accent)]"
1084
1084
  }
1085
1085
  )
1086
1086
  ] }),
@@ -1104,20 +1104,23 @@ function SessionSidebar({
1104
1104
  );
1105
1105
  }) })
1106
1106
  ] }),
1107
- /* @__PURE__ */ jsx7("nav", { "aria-label": "Sessions", className: "flex-1 overflow-y-auto px-1.5 py-1.5", children: visibleItems.length === 0 ? /* @__PURE__ */ jsx7("div", { className: "rounded-[var(--radius-lg)] border border-dashed border-border px-3 py-3 text-sm text-muted-foreground", children: query.trim() ? `No sessions match "${query.trim()}".` : emptyMessage }) : /* @__PURE__ */ jsx7("ul", { className: "space-y-px", children: visibleItems.map((item) => {
1107
+ /* @__PURE__ */ jsx7("nav", { "aria-label": "Sessions", className: "flex-1 overflow-y-auto px-1.5 py-1.5", children: visibleItems.length === 0 ? /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center justify-center gap-2 px-4 py-10 text-center text-sm text-muted-foreground", children: [
1108
+ /* @__PURE__ */ jsx7(MessageSquareText, { className: "h-5 w-5 opacity-50", "aria-hidden": "true" }),
1109
+ /* @__PURE__ */ jsx7("p", { children: query.trim() ? `No sessions match "${query.trim()}".` : emptyMessage })
1110
+ ] }) : /* @__PURE__ */ jsx7("ul", { className: "space-y-px", children: visibleItems.map((item) => {
1108
1111
  const session = sessionsById.get(item.id) ?? null;
1109
1112
  const isActive = currentItemId === item.id;
1110
1113
  const status = session?.status ?? item.status;
1111
1114
  const visibleBadges = [
1112
- ...item.isPinned ? [{ id: `${item.id}-pinned`, label: "Pinned", tone: "accent" }] : [],
1115
+ ...item.isPinned ? [{ id: `${item.id}-pinned`, label: "Pinned", tone: "neutral" }] : [],
1113
1116
  ...item.badges ?? []
1114
1117
  ];
1115
- return /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsxs7(
1118
+ return /* @__PURE__ */ jsx7("li", { className: "animate-row-in", children: /* @__PURE__ */ jsxs7(
1116
1119
  "div",
1117
1120
  {
1118
1121
  className: cn(
1119
- "group relative flex items-center gap-2 rounded-[var(--radius-sm)] px-3 py-2 transition-colors",
1120
- isActive ? "bg-primary/10 font-medium text-foreground" : "text-muted-foreground hover:bg-accent/30"
1122
+ "group relative flex items-center gap-2 rounded-[var(--radius-sm)] px-2.5 py-1.5 transition-colors",
1123
+ isActive ? "bg-accent font-medium text-foreground" : "text-muted-foreground hover:bg-accent/30"
1121
1124
  ),
1122
1125
  children: [
1123
1126
  /* @__PURE__ */ jsxs7(
@@ -1157,7 +1160,7 @@ function SessionSidebar({
1157
1160
  },
1158
1161
  badge.id
1159
1162
  )),
1160
- session?.isForeground && /* @__PURE__ */ jsx7("span", { className: "h-1.5 w-1.5 rounded-full bg-primary animate-pulse", title: "Live" }),
1163
+ session?.isForeground && /* @__PURE__ */ jsx7("span", { className: "h-1.5 w-1.5 rounded-full bg-[var(--status-running)]", title: "Live" }),
1161
1164
  renderItemActions ? /* @__PURE__ */ jsx7(
1162
1165
  "div",
1163
1166
  {