@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 +3 -3
- package/dist/{chunk-DNZ4DTNA.js → chunk-2XNT74ZX.js} +2 -2
- package/dist/{chunk-AUFV7766.js → chunk-6NDOA4SB.js} +11 -8
- package/dist/{chunk-SXAMR3TV.js → chunk-CI6RWXWY.js} +767 -741
- package/dist/{chunk-BJFWPP5T.js → chunk-E267TDZP.js} +12 -12
- package/dist/{chunk-ELGN7DPS.js → chunk-JC7GMQK7.js} +1 -1
- package/dist/{chunk-6NQBODYV.js → chunk-NMR2CTGP.js} +6 -6
- package/dist/dashboard.d.ts +23 -1
- package/dist/dashboard.js +6 -4
- package/dist/globals.css +90 -55
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/pages.js +14 -14
- package/dist/styles.css +90 -55
- package/dist/workspace.js +1 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
modelProvider,
|
|
17
17
|
snapHarnessToModel,
|
|
18
18
|
snapModelToHarness
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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__ */
|
|
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: "
|
|
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-
|
|
1120
|
-
isActive ? "bg-
|
|
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-
|
|
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
|
{
|