@tangle-network/sandbox-ui 0.125.3 → 0.126.1

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/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as computeDiffStats, c as BRAND_PRISM_THEME, d as DiffStatsBadge, f as GitStatusBadge, i as buildUnifiedPatch, l as CodeSurface, m as PillTabs, n as SandboxArtifactPane, o as CodeView, p as PanelHeader, r as DiffView, s as FileBreadcrumb, t as ChangesPane, u as resolveLanguage } from "./workbench-DLQ07SoM.js";
2
- import { $ as PageShell, A as DropdownMenuContent, At as TabsList, B as DropdownMenuSubContent, Bt as ToastContainer, C as DialogOverlay, Ct as TableCell, D as DropZone, Dt as TableRow, E as DialogTrigger, Et as TableHeader, F as DropdownMenuRadioGroup, G as Heading, Gt as buttonVariants, H as DropdownMenuTrigger, Ht as Toolbar, I as DropdownMenuRadioItem, J as Input, Jt as useTheme, K as IconTile, Kt as initialsOf, L as DropdownMenuSeparator, Lt as TextShimmer, M as DropdownMenuItem, Mt as Tag, N as DropdownMenuLabel, O as DropdownMenu, Ot as Tabs, P as DropdownMenuPortal, Pt as TerminalDisplay, Q as PageHeader, Qt as TangleKnot, R as DropdownMenuShortcut, Rt as Textarea, S as DialogHeader, St as TableCaption, T as DialogTitle, Tt as TableHead, U as EmptyState, Ut as UploadProgress, V as DropdownMenuSubTrigger, Vt as ToastProvider, W as FilterField, Wt as badgeVariants, X as Metric, Xt as SectionTitle, Y as Label, Yt as useToast, Z as MetricStrip, Zt as Logo, _ as Dialog, _t as StatusPill, a as Badge, at as SelectItem, b as DialogDescription, bt as Table, c as Card, ct as SelectScrollUpButton, d as CardFooter, dt as SelectValue, et as Progress, f as CardHeader, ft as SidebarDropZone, g as CopyButton, gt as StatCard, h as CodeBlock, ht as SkeletonTable, i as AvatarImage, it as SelectGroup, j as DropdownMenuGroup, jt as TabsTrigger, k as DropdownMenuCheckboxItem, kt as TabsContent, l as CardContent, lt as SelectSeparator, m as Chip, mt as SkeletonCard, n as Avatar, nt as Select, o as Button, ot as SelectLabel, p as CardTitle, pt as Skeleton, q as InlineCode, qt as toneFor, r as AvatarFallback, rt as SelectContent, s as CATEGORY_TONES, st as SelectScrollDownButton, tt as SegmentedControl, u as CardDescription, ut as SelectTrigger, v as DialogClose, vt as Switch, w as DialogPortal, wt as TableFooter, x as DialogFooter, xt as TableBody, y as DialogContent, yt as TONE_CLASSES, z as DropdownMenuSub, zt as ThemeToggle } from "./primitives-DLE_MCwZ.js";
1
+ import { a as computeDiffStats, c as BRAND_PRISM_THEME, d as DiffStatsBadge, f as GitStatusBadge, i as buildUnifiedPatch, l as CodeSurface, m as PillTabs, n as SandboxArtifactPane, o as CodeView, p as PanelHeader, r as DiffView, s as FileBreadcrumb, t as ChangesPane, u as resolveLanguage } from "./workbench-CF7uaTsc.js";
2
+ import { $ as PageShell, A as DropdownMenuContent, At as TabsList, B as DropdownMenuSubContent, Bt as ToastContainer, C as DialogOverlay, Ct as TableCell, D as DropZone, Dt as TableRow, E as DialogTrigger, Et as TableHeader, F as DropdownMenuRadioGroup, G as Heading, Gt as buttonVariants, H as DropdownMenuTrigger, Ht as Toolbar, I as DropdownMenuRadioItem, J as Input, Jt as useTheme, K as IconTile, Kt as initialsOf, L as DropdownMenuSeparator, Lt as TextShimmer, M as DropdownMenuItem, Mt as Tag, N as DropdownMenuLabel, O as DropdownMenu, Ot as Tabs, P as DropdownMenuPortal, Pt as TerminalDisplay, Q as PageHeader, Qt as TangleKnot, R as DropdownMenuShortcut, Rt as Textarea, S as DialogHeader, St as TableCaption, T as DialogTitle, Tt as TableHead, U as EmptyState, Ut as UploadProgress, V as DropdownMenuSubTrigger, Vt as ToastProvider, W as FilterField, Wt as badgeVariants, X as Metric, Xt as SectionTitle, Y as Label, Yt as useToast, Z as MetricStrip, Zt as Logo, _ as Dialog, _t as StatusPill, a as Badge, at as SelectItem, b as DialogDescription, bt as Table, c as Card, ct as SelectScrollUpButton, d as CardFooter, dt as SelectValue, et as Progress, f as CardHeader, ft as SidebarDropZone, g as CopyButton, gt as StatCard, h as CodeBlock, ht as SkeletonTable, i as AvatarImage, it as SelectGroup, j as DropdownMenuGroup, jt as TabsTrigger, k as DropdownMenuCheckboxItem, kt as TabsContent, l as CardContent, lt as SelectSeparator, m as Chip, mt as SkeletonCard, n as Avatar, nt as Select, o as Button, ot as SelectLabel, p as CardTitle, pt as Skeleton, q as InlineCode, qt as toneFor, r as AvatarFallback, rt as SelectContent, s as CATEGORY_TONES, st as SelectScrollDownButton, tt as SegmentedControl, u as CardDescription, ut as SelectTrigger, v as DialogClose, vt as Switch, w as DialogPortal, wt as TableFooter, x as DialogFooter, xt as TableBody, y as DialogContent, yt as TONE_CLASSES, z as DropdownMenuSub, zt as ThemeToggle } from "./primitives-WP3v1yf0.js";
3
3
  import { t as WorkspacePaneHeader } from "./workspace-pane-header-Bg1cCcHX.js";
4
- import { C as WorkspaceLayout, S as DirectoryPane, _ as formatRelativeAge, a as TaskBoard, b as StatusBar, c as SandboxWorkbench, d as createShellShouldRevalidate, f as shellShouldRevalidate, g as useOptimisticSessionItems, h as dispatchSessionCreated, i as CalendarView, l as WorkspaceArtifactView, m as SESSION_CREATED_EVENT, n as WorkspaceFilesPane, o as AuditResults, p as SessionSidebar, r as ApprovalQueue, s as AgentWorkbench, t as ArtifactPane, u as SessionActivityMonitor, v as RuntimePane, x as StatusBanner, y as TerminalPanel } from "./workspace-CjeZTLPQ.js";
5
- import { $ as SidebarPanelHeader, A as SandboxStatusPill, B as ProfileAvatar, C as PlanCards, D as SandboxCard, E as NewSandboxCard, F as ClusterStatusBar, G as RailHeader, H as RailCollapseToggle, I as INSUFFICIENT_BALANCE_CODE, J as RailThemeToggle, K as RailModeButton, L as OutOfCreditsModal, M as ActivityFeed, N as ResourceSnapshot, O as canAdminSandbox, P as ResourceMeter, Q as SidebarPanelContent, R as parseInsufficientBalance, S as BackendSelector, T as SandboxTable, U as RailExpandable, V as RailButton, W as RailFlyout, X as SidebarContent, Y as Sidebar, Z as SidebarPanel, _ as HARNESS_OPTIONS, a as NetworkConfig, at as SIDEBAR_MOBILE_WIDTH, b as HARNESS_BRAND, c as GitPanel, ct as SIDEBAR_RAIL_WIDTH, d as VariantList, dt as useSidebar, et as SidebarRail, f as MetricAreaChart, g as DashboardLayout, h as SidebarLayout, i as BackendConfig, it as RailTooltip, j as sandboxStatus, k as SANDBOX_STATUS, l as UsageSummary, lt as SIDEBAR_TOTAL_WIDTH, m as ProfileSelector, n as PromoBanner, nt as SidebarRailHeader, o as ProcessList, ot as SIDEBAR_PANEL_WIDTH, p as ProfileComparison, q as RailSeparator, r as SnapshotList, rt as SidebarRailNav, s as PortsList, st as SIDEBAR_RAIL_LABELED_WIDTH, t as InfoPanel, tt as SidebarRailFooter, u as SystemLogsViewer, ut as SidebarProvider, v as HarnessPicker, w as InvoiceTable, x as HarnessLogo, y as chatCapableHarnesses, z as CreditBalance } from "./dashboard-Ce1Qy0Yv.js";
4
+ import { _ as StatusBar, a as TaskBoard, b as WorkspaceLayout, c as createShellShouldRevalidate, d as SESSION_CREATED_EVENT, f as dispatchSessionCreated, g as TerminalPanel, h as RuntimePane, i as CalendarView, l as shellShouldRevalidate, m as formatRelativeAge, n as WorkspaceFilesPane, o as SandboxWorkbench, p as useOptimisticSessionItems, r as ApprovalQueue, s as WorkspaceArtifactView, t as ArtifactPane, u as SessionSidebar, v as StatusBanner, y as DirectoryPane } from "./workspace-C68fk9qa.js";
5
+ import { $ as useSidebar, A as parseInsufficientBalance, B as SidebarPanel, C as SandboxStatusPill, D as ResourceMeter, E as ResourceSnapshot, F as RailHeader, G as SidebarRailNav, H as SidebarPanelHeader, I as RailModeButton, J as SIDEBAR_PANEL_WIDTH, K as RailTooltip, L as RailSeparator, M as RailButton, N as RailExpandable, O as INSUFFICIENT_BALANCE_CODE, P as RailFlyout, Q as SidebarProvider, R as Sidebar, S as SANDBOX_STATUS, T as ActivityFeed, U as SidebarRail, V as SidebarPanelContent, W as SidebarRailFooter, X as SIDEBAR_RAIL_WIDTH, Y as SIDEBAR_RAIL_LABELED_WIDTH, Z as SIDEBAR_TOTAL_WIDTH, _ as BackendSelector, a as PortsList, b as SandboxCard, c as SystemLogsViewer, d as DashboardLayout, f as HARNESS_OPTIONS, g as HarnessLogo, h as HARNESS_BRAND, i as TemplateCard, j as ProfileAvatar, k as OutOfCreditsModal, l as MetricAreaChart, m as chatCapableHarnesses, n as SnapshotList, o as GitPanel, p as HarnessPicker, q as SIDEBAR_MOBILE_WIDTH, r as ProcessList, s as UsageSummary, t as PromoBanner, u as SidebarLayout, v as SandboxTable, w as sandboxStatus, x as canAdminSandbox, y as NewSandboxCard, z as SidebarContent } from "./dashboard-Bms7lRpU.js";
6
6
  import { n as canonicalModelId, r as modelBrandFor, t as ModelBrandStack } from "./model-brand-hMyDTUqB.js";
7
- import { a as PricingPage, i as UsageChart, n as SandboxPageShell, o as formatPrice, r as TemplateCard, s as BillingDashboard, t as DashboardPageHeader } from "./page-layout-DJV7cbxx.js";
7
+ import { a as formatPrice, i as PricingPage, n as SandboxPageShell, o as BillingDashboard, r as UsageChart, t as DashboardPageHeader } from "./page-layout-2IRtfx51.js";
8
8
  import { t as usePtySession } from "./use-pty-session-Bf4hBLXJ.js";
9
9
  import { CSV_PREVIEW_ROW_LIMIT, FileArtifactPane, FilePreview, FileTabs, FileTree, RichFileTree, detectFileFormat, fileExtension, filterFileTree, getCodeLanguage, getFormatLabel, getSyntaxLanguage, parseCsv, resolveFilePreviewKind } from "./files.js";
10
10
  import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-CMRPEvon.js";
@@ -21,4 +21,4 @@ import { TOOL_CATEGORY_ICONS, cn, copyText, focusField, focusFieldInvalid, focus
21
21
  import { TerminalCursor as TerminalDisplayCursor, TerminalInput as TerminalDisplayInput, TerminalLine as TerminalDisplayLine } from "@tangle-network/ui/primitives";
22
22
  import { CodeBlock as CodeBlockDisplay, Markdown, getSanitizedMarkdownHeadingIdFromRawFragment } from "@tangle-network/ui/markdown";
23
23
  import { CommandPreview, DiffPreview, GlobResultsPreview, GrepResultsPreview, QuestionPreview, WebSearchPreview, WriteFilePreview } from "@tangle-network/ui/tool-previews";
24
- export { ActivityFeed, AgentMessagingConnection, AgentProfilePicker, AgentTimeline, AgentWorkbench, ApprovalQueue, ArtifactAgentDock, ArtifactPane, AuditResults, AuthHeader, Avatar, AvatarFallback, AvatarImage, BRAND_PRISM_THEME, BackendConfig, BackendSelector, Badge, BillingDashboard, Button, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, CalendarView, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChangesPane, ChatContainer, ChatMessage, Chip, ClusterStatusBar, CodeBlock, CodeBlockDisplay, CodeSurface, CodeView, CommandPreview, CopyButton, CreditBalance, DEFAULT_REASONING_LEVEL_OPTIONS, DashboardLayout, DashboardPageHeader, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, DiffStatsBadge, DiffView, DirectoryPane, DropZone, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmbeddedAppView, EmptyState, ExpandedToolDetail, FileArtifactPane, FileBreadcrumb, FilePreview, FileTabs, FileTree, FilterField, GitHubLoginButton, GitPanel, GitStatusBadge, GlobResultsPreview, GrepResultsPreview, HARNESS_BRAND, HARNESS_OPTIONS, HARNESS_REASONING_OPTIONS, HarnessLogo, HarnessPicker, Heading, INSUFFICIENT_BALANCE_CODE, IconTile, InfoPanel, InlineCode, InlineThinkingItem, InlineToolItem, Input, InvoiceTable, Label, LiveDuration, LoginLayout, Logo, Markdown, MessageList, Metric, MetricAreaChart, MetricStrip, ModelBrandStack, NetworkConfig, NewSandboxCard, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, OutOfCreditsModal, PageHeader, PageShell, PanelHeader, PillTabs, PlanCards, PortsList, PreviewView, PricingPage, ProcessList, ProfileAvatar, ProfileComparison, ProfileSelector, Progress, PromoBanner, QuestionPreview, RailButton, RailCollapseToggle, RailExpandable, RailFlyout, RailHeader, RailModeButton, RailSeparator, RailThemeToggle, RailTooltip, RealtimeSessionRegistry, ReasoningLevelPicker, ResourceMeter, ResourceSnapshot, RichFileTree, RunGroup, RunRowShell, RunRowStatusDot, RuntimePane, SANDBOX_STATUS, SESSION_CREATED_EVENT, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_LABELED_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxArtifactPane, SandboxCard, SandboxPageShell, SandboxStatusPill, SandboxTable, SandboxWorkbench, SectionTitle, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SessionActivityMonitor, SessionSidebar, Sidebar, SidebarContent, SidebarDropZone, SidebarLayout, SidebarPanel, SidebarPanelContent, SidebarPanelHeader, SidebarProvider, SidebarRail, SidebarRailFooter, SidebarRailHeader, SidebarRailNav, Skeleton, SkeletonCard, SkeletonTable, SnapshotList, StatCard, StatusBanner, StatusBar, StatusPill, Switch, SystemLogsViewer, TONE_CLASSES, TOOL_CATEGORY_ICONS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TangleKnot, TangleLoginButton, TaskBoard, TemplateCard, TerminalDisplay, TerminalDisplayCursor, TerminalDisplayInput, TerminalDisplayLine, TerminalPanel, TextShimmer, Textarea, ThemeToggle, ThinkingIndicator, ToastContainer, ToastProvider, ToolCallFeed, Toolbar, UploadProgress, UsageChart, UsageSummary, UserMenu, UserMessage, VariantList, WebSearchPreview, WorkspaceArtifactView, WorkspaceFilesPane, WorkspaceLayout, WorkspacePaneHeader, WriteFilePreview, activeSessionsAtom, addMessage, addParts, badgeVariants, buildUnifiedPatch, bumpActiveSessionActivity, buttonVariants, canAdminSandbox, canonicalModelId, chatCapableHarnesses, clearChat, cn, computeDiffStats, connectSession, copyText, createAuthFetcher, createFetchTransport, createShellShouldRevalidate, detectFileFormat, disconnectSession, dispatchSessionCreated, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatPrice, formatRelativeAge, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, messagesAtom, modelBrandFor, modelProvider, parseCsv, parseInsufficientBalance, parseToolEvent, partMapAtom, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, resolveLanguage, sandboxStatus, sessionAtom, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, shellShouldRevalidate, snapHarnessToModel, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useOptimisticSessionItems, useProjectActivity, useProjectSessions, usePtySession, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessionStream, useSessions, useSessionsByActivity, useSidebar, useSidecarAuth, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
24
+ export { ActivityFeed, AgentMessagingConnection, AgentProfilePicker, AgentTimeline, ApprovalQueue, ArtifactAgentDock, ArtifactPane, AuthHeader, Avatar, AvatarFallback, AvatarImage, BRAND_PRISM_THEME, BackendSelector, Badge, BillingDashboard, Button, CATEGORY_TONES, CSV_PREVIEW_ROW_LIMIT, CalendarView, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChangesPane, ChatContainer, ChatMessage, Chip, CodeBlock, CodeBlockDisplay, CodeSurface, CodeView, CommandPreview, CopyButton, DEFAULT_REASONING_LEVEL_OPTIONS, DashboardLayout, DashboardPageHeader, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, DiffStatsBadge, DiffView, DirectoryPane, DropZone, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmbeddedAppView, EmptyState, ExpandedToolDetail, FileArtifactPane, FileBreadcrumb, FilePreview, FileTabs, FileTree, FilterField, GitHubLoginButton, GitPanel, GitStatusBadge, GlobResultsPreview, GrepResultsPreview, HARNESS_BRAND, HARNESS_OPTIONS, HARNESS_REASONING_OPTIONS, HarnessLogo, HarnessPicker, Heading, INSUFFICIENT_BALANCE_CODE, IconTile, InlineCode, InlineThinkingItem, InlineToolItem, Input, Label, LiveDuration, LoginLayout, Logo, Markdown, MessageList, Metric, MetricAreaChart, MetricStrip, ModelBrandStack, NewSandboxCard, OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, OutOfCreditsModal, PageHeader, PageShell, PanelHeader, PillTabs, PortsList, PreviewView, PricingPage, ProcessList, ProfileAvatar, Progress, PromoBanner, QuestionPreview, RailButton, RailExpandable, RailFlyout, RailHeader, RailModeButton, RailSeparator, RailTooltip, RealtimeSessionRegistry, ReasoningLevelPicker, ResourceMeter, ResourceSnapshot, RichFileTree, RunGroup, RunRowShell, RunRowStatusDot, RuntimePane, SANDBOX_STATUS, SESSION_CREATED_EVENT, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_LABELED_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxArtifactPane, SandboxCard, SandboxPageShell, SandboxStatusPill, SandboxTable, SandboxWorkbench, SectionTitle, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SessionSidebar, Sidebar, SidebarContent, SidebarDropZone, SidebarLayout, SidebarPanel, SidebarPanelContent, SidebarPanelHeader, SidebarProvider, SidebarRail, SidebarRailFooter, SidebarRailNav, Skeleton, SkeletonCard, SkeletonTable, SnapshotList, StatCard, StatusBanner, StatusBar, StatusPill, Switch, SystemLogsViewer, TONE_CLASSES, TOOL_CATEGORY_ICONS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TangleKnot, TangleLoginButton, TaskBoard, TemplateCard, TerminalDisplay, TerminalDisplayCursor, TerminalDisplayInput, TerminalDisplayLine, TerminalPanel, TextShimmer, Textarea, ThemeToggle, ThinkingIndicator, ToastContainer, ToastProvider, ToolCallFeed, Toolbar, UploadProgress, UsageChart, UsageSummary, UserMenu, UserMessage, WebSearchPreview, WorkspaceArtifactView, WorkspaceFilesPane, WorkspaceLayout, WorkspacePaneHeader, WriteFilePreview, activeSessionsAtom, addMessage, addParts, badgeVariants, buildUnifiedPatch, bumpActiveSessionActivity, buttonVariants, canAdminSandbox, canonicalModelId, chatCapableHarnesses, clearChat, cn, computeDiffStats, connectSession, copyText, createAuthFetcher, createFetchTransport, createShellShouldRevalidate, detectFileFormat, disconnectSession, dispatchSessionCreated, fileExtension, filterFileTree, findUnsupportedOpenUINode, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatPrice, formatRelativeAge, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSanitizedMarkdownHeadingIdFromRawFragment, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, initialsOf, isStreamingAtom, messagesAtom, modelBrandFor, modelProvider, parseCsv, parseInsufficientBalance, parseToolEvent, partMapAtom, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, resolveLanguage, sandboxStatus, sessionAtom, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, shellShouldRevalidate, snapHarnessToModel, timeAgo, toneFor, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useCreateSession, useDeleteSession, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useOptimisticSessionItems, useProjectActivity, useProjectSessions, usePtySession, useRealtimeSession, useRenameSession, useRunCollapseState, useRunGroups, useSSEStream, useSandboxMetrics, useSdkSession, useSessionStream, useSessions, useSessionsByActivity, useSidebar, useSidecarAuth, useTheme, useToast, useToolCallStream, useTotalRunningSessions, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
@@ -2,7 +2,7 @@ import { t as cn } from "./utils-DzWbktWG.js";
2
2
  import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, PageHeader, PageShell, Progress } from "@tangle-network/ui/primitives";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import * as React$1 from "react";
5
- import { ArrowRight, Check, Zap } from "lucide-react";
5
+ import { Check, Zap } from "lucide-react";
6
6
  //#region src/dashboard/billing-dashboard.tsx
7
7
  const variantColors = { sandbox: {
8
8
  accent: "text-[var(--accent-text)]",
@@ -531,42 +531,6 @@ function UsageChart({ data, title, unit, className }) {
531
531
  });
532
532
  }
533
533
  //#endregion
534
- //#region src/dashboard/template-card.tsx
535
- function TemplateCard({ template, onUseTemplate, className }) {
536
- return /* @__PURE__ */ jsxs("div", {
537
- className: cn("group relative flex flex-col justify-between rounded-xl border border-[var(--md3-outline-variant)] bg-surface-container p-6 transition-colors hover:border-[var(--border-accent)]", className),
538
- children: [/* @__PURE__ */ jsxs("div", { children: [
539
- /* @__PURE__ */ jsx("div", {
540
- className: "mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-surface-container-high border border-[var(--md3-outline-variant)]",
541
- children: template.icon ?? /* @__PURE__ */ jsx("span", {
542
- className: "text-lg font-bold text-primary",
543
- children: template.name.charAt(0).toUpperCase()
544
- })
545
- }),
546
- /* @__PURE__ */ jsx("h3", {
547
- className: "mb-1 text-base font-bold text-foreground",
548
- children: template.name
549
- }),
550
- /* @__PURE__ */ jsx("p", {
551
- className: "text-sm text-muted-foreground leading-relaxed line-clamp-2",
552
- children: template.description
553
- }),
554
- template.tags && template.tags.length > 0 && /* @__PURE__ */ jsx("div", {
555
- className: "mt-3 flex flex-wrap gap-1.5",
556
- children: template.tags.map((tag, i) => /* @__PURE__ */ jsx("span", {
557
- className: "rounded-full bg-surface-container-high px-2 py-0.5 text-[10px] font-medium text-muted-foreground",
558
- children: tag
559
- }, `${tag}-${i}`))
560
- })
561
- ] }), /* @__PURE__ */ jsxs("button", {
562
- type: "button",
563
- onClick: () => onUseTemplate(template.id),
564
- className: "mt-5 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-primary/10 border border-primary/20 px-4 py-2.5 text-sm font-bold text-primary transition-colors hover:bg-primary hover:text-primary-foreground active:scale-[0.98]",
565
- children: ["Use Template", /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 transition-transform group-hover:translate-x-0.5" })]
566
- })]
567
- });
568
- }
569
- //#endregion
570
534
  //#region src/dashboard/page-layout.tsx
571
535
  /** Product page spacing; the generic UI PageShell remains an exact re-export. */
572
536
  function SandboxPageShell({ children, className }) {
@@ -584,4 +548,4 @@ function DashboardPageHeader({ title, description, actions, className }) {
584
548
  });
585
549
  }
586
550
  //#endregion
587
- export { PricingPage as a, UsageChart as i, SandboxPageShell as n, formatPrice as o, TemplateCard as r, BillingDashboard as s, DashboardPageHeader as t };
551
+ export { formatPrice as a, PricingPage as i, SandboxPageShell as n, BillingDashboard as o, UsageChart as r, DashboardPageHeader as t };
package/dist/pages.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r as ModelInfo } from "./model-brand-B9A4H9pJ.js";
2
- import { d as BillingBalance, h as BillingUsage, l as PricingTier, m as BillingSubscription, n as TemplateCardData, o as UsageDataPoint } from "./template-card-L-4gmjx2.js";
3
- import * as React$1 from "react";
2
+ import { c as BillingBalance, d as BillingSubscription, f as BillingUsage, o as PricingTier, r as UsageDataPoint } from "./usage-chart-BjM8ShvX.js";
3
+ import * as React$2 from "react";
4
4
  import { CSSProperties, ReactNode } from "react";
5
5
  //#region src/pages/auth-page.d.ts
6
6
  /**
@@ -82,14 +82,14 @@ interface BillingPageProps {
82
82
  onSelectTier?: (tierId: string) => void;
83
83
  fetchBillingData?: () => Promise<BillingPageData>;
84
84
  }
85
- export declare function BillingPage({ variant, initialData, apiBasePath, onManageSubscription, onAddCredits, onSelectTier, fetchBillingData }: BillingPageProps): React$1.JSX.Element;
85
+ export declare function BillingPage({ variant, initialData, apiBasePath, onManageSubscription, onAddCredits, onSelectTier, fetchBillingData }: BillingPageProps): React$2.JSX.Element;
86
86
  //#endregion
87
- //#region src/pages/provisioning-wizard.d.ts
87
+ //#region src/pages/provisioning-types.d.ts
88
88
  interface EnvironmentOption {
89
89
  id: string;
90
90
  name: string;
91
91
  description: string;
92
- icon: React$1.ReactNode;
92
+ icon: React.ReactNode;
93
93
  color: string;
94
94
  }
95
95
  interface EnvironmentEntry {
@@ -108,12 +108,6 @@ interface PricingRates {
108
108
  diskPerGbHr: number;
109
109
  minChargePerHr?: number;
110
110
  }
111
- /**
112
- * Describes one selectable plan tier for the purpose of badging locked
113
- * presets with the *correct* upgrade target. Without this, every locked
114
- * preset shows "Pro" — wrong for a user who is already on Pro and whose
115
- * next step up is Enterprise.
116
- */
117
111
  interface PlanTierInfo {
118
112
  /** Stable id (e.g. "free" | "pro" | "enterprise") */
119
113
  id: string;
@@ -152,40 +146,6 @@ interface SshAccessConfig {
152
146
  */
153
147
  onRefreshKeys?: () => Promise<SshKeyOption[] | void>;
154
148
  }
155
- interface ProvisioningWizardProps {
156
- environments?: EnvironmentOption[];
157
- onLoadEnvironments?: () => Promise<EnvironmentEntry[]>;
158
- onSubmit?: (config: ProvisioningConfig) => void | Promise<void>;
159
- onBack?: () => void;
160
- className?: string;
161
- /**
162
- * @deprecated The wizard now always renders as a single scrolling page.
163
- * Kept for backwards compatibility — no longer changes the layout.
164
- */
165
- variant?: "flat" | "multistep";
166
- /** Pre-select an environment by ID (e.g. from a template link) */
167
- defaultEnvironment?: string;
168
- /** Pre-fill all form fields from a template preset */
169
- defaultConfig?: Partial<ProvisioningConfig>;
170
- /**
171
- * @deprecated No-op. The wizard no longer uses steps. Kept for
172
- * backwards compatibility.
173
- */
174
- skipToReview?: boolean;
175
- /** Load user's startup scripts for the advanced options selector */
176
- onLoadStartupScripts?: () => Promise<StartupScriptEntry[]>;
177
- /** Plan-based resource limits — caps the slider maximums */
178
- resourceLimits?: ResourceLimits;
179
- sshAccess?: SshAccessConfig;
180
- /** Real pricing rates from the API for accurate cost calculation */
181
- pricingRates?: PricingRates;
182
- /**
183
- * Ordered list of plan tiers (smallest to largest). When provided,
184
- * locked presets are badged with the label of the smallest tier that
185
- * would unlock them. Falls back to a generic "Pro" badge when omitted.
186
- */
187
- planTiers?: PlanTierInfo[];
188
- }
189
149
  interface StartupScriptEntry {
190
150
  id: string;
191
151
  name: string;
@@ -208,78 +168,6 @@ interface ProvisioningConfig {
208
168
  bare: boolean;
209
169
  startupScriptIds?: string[];
210
170
  }
211
- export declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
212
- export declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, defaultEnvironment, defaultConfig, onLoadStartupScripts, resourceLimits, sshAccess, pricingRates, planTiers }: ProvisioningWizardProps): React$1.JSX.Element;
213
- //#endregion
214
- //#region src/pages/standalone-pricing-page.d.ts
215
- type ProductVariant$1 = "sandbox";
216
- interface StandalonePricingPageProps {
217
- variant?: ProductVariant$1;
218
- initialTiers?: PricingTier[];
219
- apiBasePath?: string;
220
- onSelectTier?: (tierId: string, billingPeriod: "monthly" | "yearly") => void;
221
- fetchTiers?: () => Promise<PricingTier[]>;
222
- title?: string;
223
- subtitle?: string;
224
- eyebrow?: string;
225
- className?: string;
226
- }
227
- export declare function StandalonePricingPage({ variant, initialTiers, apiBasePath, onSelectTier, fetchTiers, title, subtitle, eyebrow, className }: StandalonePricingPageProps): React$1.JSX.Element;
228
- //#endregion
229
- //#region src/pages/profiles-page.d.ts
230
- interface ProfileMetrics {
231
- total_runs: number;
232
- success_rate: number;
233
- avg_duration_ms: number;
234
- avg_tokens_used?: number;
235
- last_run_at?: string;
236
- }
237
- interface Profile {
238
- id: string;
239
- name: string;
240
- description?: string;
241
- extends?: string;
242
- model?: string;
243
- system_prompt?: string;
244
- instructions?: string[];
245
- tags?: string[];
246
- is_builtin?: boolean;
247
- is_public?: boolean;
248
- metrics?: ProfileMetrics;
249
- created_at?: string;
250
- updated_at?: string;
251
- }
252
- interface ProfileFormData {
253
- name: string;
254
- description?: string;
255
- extends?: string;
256
- model?: string;
257
- system_prompt?: string;
258
- instructions?: string[];
259
- tags?: string[];
260
- is_public?: boolean;
261
- }
262
- interface ProfilesPageProps {
263
- /** API client for profile operations */
264
- apiClient: {
265
- listProfiles: () => Promise<{
266
- builtin: Profile[];
267
- custom: Profile[];
268
- }>;
269
- createProfile: (data: ProfileFormData) => Promise<Profile>;
270
- updateProfile: (id: string, data: Partial<ProfileFormData>) => Promise<Profile>;
271
- deleteProfile: (id: string) => Promise<void>;
272
- };
273
- /** User's subscription tier for limit enforcement */
274
- tier?: "free" | "starter" | "pro" | "enterprise";
275
- /** Maximum profiles allowed for current tier */
276
- maxProfiles?: number;
277
- /** Callback when navigating to profile comparison */
278
- onCompareClick?: (profiles: Profile[]) => void;
279
- /** Custom page title */
280
- title?: string;
281
- }
282
- export declare function ProfilesPage({ apiClient, tier, maxProfiles, onCompareClick, title }: ProfilesPageProps): React$1.JSX.Element;
283
171
  //#endregion
284
172
  //#region src/pages/secrets-page.d.ts
285
173
  interface Secret {
@@ -303,7 +191,7 @@ interface SecretsPageProps {
303
191
  /** Page title. Defaults to "Environment Secrets". */
304
192
  title?: string;
305
193
  /** Text below the title. Defaults to the Sandbox environment-variable description. */
306
- description?: React$1.ReactNode;
194
+ description?: React$2.ReactNode;
307
195
  /** Explains where a new secret is used, in the create dialog. */
308
196
  createDescription?: string;
309
197
  /** Text in the empty state. */
@@ -324,16 +212,7 @@ interface SecretsPageProps {
324
212
  label?: string;
325
213
  };
326
214
  }
327
- export declare function SecretsPage({ apiClient, className, teamSecretsHint, title, description, createDescription, emptyDescription, deleteConsequence, variant }: SecretsPageProps): React$1.JSX.Element;
328
- //#endregion
329
- //#region src/pages/templates-page.d.ts
330
- interface TemplatesPageProps {
331
- templates: TemplateCardData[] | null;
332
- loading?: boolean;
333
- onUseTemplate: (templateId: string) => void;
334
- className?: string;
335
- }
336
- export declare function TemplatesPage({ templates, loading, onUseTemplate, className }: TemplatesPageProps): React$1.JSX.Element;
215
+ export declare function SecretsPage({ apiClient, className, teamSecretsHint, title, description, createDescription, emptyDescription, deleteConsequence, variant }: SecretsPageProps): React$2.JSX.Element;
337
216
  //#endregion
338
217
  //#region src/pages/startup-scripts-page.d.ts
339
218
  type ScriptType = "bash" | "python" | "node" | "ruby" | "custom";
@@ -388,11 +267,11 @@ interface StartupScriptsPageProps {
388
267
  apiClient: StartupScriptsApiClient;
389
268
  className?: string;
390
269
  }
391
- export declare function StartupScriptsPage({ apiClient, className }: StartupScriptsPageProps): React$1.JSX.Element;
270
+ export declare function StartupScriptsPage({ apiClient, className }: StartupScriptsPageProps): React$2.JSX.Element;
392
271
  //#endregion
393
272
  //#region src/lib/template-presets.d.ts
394
273
  type TemplateCategory = "blockchain" | "ai-ml" | "frontend" | "infrastructure" | "general";
395
274
  type TemplatePreset = Omit<ProvisioningConfig, "name" | "gitUrl" | "envVars" | "driver" | "startupScriptIds">;
396
275
  export declare function getPresetForTemplate(id: string): TemplatePreset;
397
276
  //#endregion
398
- export type { AuthPageProps, BillingPageData, BillingPageProps, EnvironmentEntry, EnvironmentOption, ModelInfo, PlanTierInfo, PricingRates, PricingTier, ProductVariant, Profile, ProfileFormData, ProfileMetrics, ProfilesPageProps, ProvisioningConfig, ProvisioningWizardProps, ResourceLimits, ScriptType, Secret, SecretsApiClient, SecretsPageProps, SocialProvider, SshAccessConfig, SshKeyOption, StandalonePricingPageProps, StartupScript, StartupScriptEntry, StartupScriptFormData, StartupScriptsApiClient, StartupScriptsPageProps, TemplateCategory, TemplatePreset, TemplatesPageProps };
277
+ export type { AuthPageProps, BillingPageData, BillingPageProps, EnvironmentEntry, EnvironmentOption, ModelInfo, PlanTierInfo, PricingRates, PricingTier, ProductVariant, ProvisioningConfig, ResourceLimits, ScriptType, Secret, SecretsApiClient, SecretsPageProps, SocialProvider, SshAccessConfig, SshKeyOption, StartupScript, StartupScriptEntry, StartupScriptFormData, StartupScriptsApiClient, StartupScriptsPageProps, TemplateCategory, TemplatePreset };