@tangle-network/sandbox-ui 0.2.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.
Files changed (70) hide show
  1. package/README.md +68 -0
  2. package/dist/auth.d.ts +57 -0
  3. package/dist/auth.js +14 -0
  4. package/dist/branding-DCi5VEik.d.ts +13 -0
  5. package/dist/button-BidTtuRS.d.ts +15 -0
  6. package/dist/chat.d.ts +121 -0
  7. package/dist/chat.js +25 -0
  8. package/dist/chunk-2UHPE5T7.js +201 -0
  9. package/dist/chunk-4EIWPJMJ.js +545 -0
  10. package/dist/chunk-6MQIDUPA.js +502 -0
  11. package/dist/chunk-B26TQ7SA.js +47 -0
  12. package/dist/chunk-E6FS7R4X.js +109 -0
  13. package/dist/chunk-GRYHFH5O.js +110 -0
  14. package/dist/chunk-HMND7JPA.js +868 -0
  15. package/dist/chunk-HRMUF35V.js +19 -0
  16. package/dist/chunk-HYEAX3DC.js +822 -0
  17. package/dist/chunk-KMXV7DDX.js +174 -0
  18. package/dist/chunk-KYY2X6LY.js +318 -0
  19. package/dist/chunk-L6ZDH5F4.js +334 -0
  20. package/dist/chunk-LTFK464G.js +103 -0
  21. package/dist/chunk-M34OA6PQ.js +233 -0
  22. package/dist/chunk-M6VLC32S.js +219 -0
  23. package/dist/chunk-MCGKDCOR.js +173 -0
  24. package/dist/chunk-NI2EI43H.js +294 -0
  25. package/dist/chunk-OU4TRNQZ.js +173 -0
  26. package/dist/chunk-QD4QE5P5.js +40 -0
  27. package/dist/chunk-QSQBDR3N.js +180 -0
  28. package/dist/chunk-RQHJBTEU.js +10 -0
  29. package/dist/chunk-U62G5TS7.js +472 -0
  30. package/dist/chunk-ZOL2TR5M.js +475 -0
  31. package/dist/dashboard.d.ts +111 -0
  32. package/dist/dashboard.js +26 -0
  33. package/dist/editor.d.ts +196 -0
  34. package/dist/editor.js +713 -0
  35. package/dist/expanded-tool-detail-OkXGqTHe.d.ts +52 -0
  36. package/dist/files.d.ts +66 -0
  37. package/dist/files.js +11 -0
  38. package/dist/hooks.d.ts +22 -0
  39. package/dist/hooks.js +107 -0
  40. package/dist/index.d.ts +107 -0
  41. package/dist/index.js +551 -0
  42. package/dist/markdown.d.ts +55 -0
  43. package/dist/markdown.js +17 -0
  44. package/dist/pages.d.ts +89 -0
  45. package/dist/pages.js +1181 -0
  46. package/dist/parts-CyGkM6Fp.d.ts +50 -0
  47. package/dist/primitives.d.ts +189 -0
  48. package/dist/primitives.js +161 -0
  49. package/dist/run-CtFZ6s-D.d.ts +41 -0
  50. package/dist/run.d.ts +14 -0
  51. package/dist/run.js +29 -0
  52. package/dist/sidecar-CFU2W9j1.d.ts +8 -0
  53. package/dist/stores.d.ts +28 -0
  54. package/dist/stores.js +49 -0
  55. package/dist/terminal.d.ts +44 -0
  56. package/dist/terminal.js +160 -0
  57. package/dist/tool-call-feed-D5Ume-Pt.d.ts +66 -0
  58. package/dist/tool-display-BvsVW_Ur.d.ts +32 -0
  59. package/dist/types.d.ts +6 -0
  60. package/dist/types.js +0 -0
  61. package/dist/usage-chart-DINgSVL5.d.ts +60 -0
  62. package/dist/use-sidecar-auth-Bb0-w3lX.d.ts +339 -0
  63. package/dist/utils.d.ts +28 -0
  64. package/dist/utils.js +28 -0
  65. package/dist/workspace.d.ts +113 -0
  66. package/dist/workspace.js +15 -0
  67. package/package.json +174 -0
  68. package/src/styles/globals.css +230 -0
  69. package/src/styles/tokens.css +73 -0
  70. package/tailwind.config.cjs +99 -0
@@ -0,0 +1,50 @@
1
+ /** A single message in a chat session. */
2
+ interface SessionMessage {
3
+ id: string;
4
+ role: 'user' | 'assistant' | 'system';
5
+ sessionID?: string;
6
+ time?: {
7
+ created?: number;
8
+ updated?: number;
9
+ completed?: number;
10
+ };
11
+ /** Monotonically increasing insertion index for stable ordering. */
12
+ _insertionIndex?: number;
13
+ }
14
+
15
+ interface TextPart {
16
+ type: 'text';
17
+ text: string;
18
+ /** If true this text was synthesised client-side (e.g. echo of user input). */
19
+ synthetic?: boolean;
20
+ }
21
+ type ToolStatus = 'pending' | 'running' | 'completed' | 'error';
22
+ interface ToolTime {
23
+ start?: number;
24
+ end?: number;
25
+ }
26
+ interface ToolState {
27
+ status: ToolStatus;
28
+ input?: unknown;
29
+ output?: unknown;
30
+ error?: string;
31
+ metadata?: Record<string, unknown>;
32
+ time?: ToolTime;
33
+ }
34
+ interface ToolPart {
35
+ type: 'tool';
36
+ /** Unique ID for this tool invocation. */
37
+ id: string;
38
+ /** Tool name (e.g. "bash", "read", "write", "grep", "glob"). */
39
+ tool: string;
40
+ state: ToolState;
41
+ callID?: string;
42
+ }
43
+ interface ReasoningPart {
44
+ type: 'reasoning';
45
+ text: string;
46
+ time?: ToolTime;
47
+ }
48
+ type SessionPart = TextPart | ToolPart | ReasoningPart;
49
+
50
+ export type { ReasoningPart as R, SessionMessage as S, TextPart as T, SessionPart as a, ToolPart as b, ToolState as c, ToolStatus as d, ToolTime as e };
@@ -0,0 +1,189 @@
1
+ export { B as Button, a as ButtonProps, b as buttonVariants } from './button-BidTtuRS.js';
2
+ import * as React$1 from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+ import { VariantProps } from 'class-variance-authority';
7
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
8
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
9
+ import * as SelectPrimitive from '@radix-ui/react-select';
10
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
11
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
12
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
13
+ import * as LabelPrimitive from '@radix-ui/react-label';
14
+
15
+ declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
16
+ variant?: "default" | "glass" | "sandbox";
17
+ hover?: boolean;
18
+ } & React$1.RefAttributes<HTMLDivElement>>;
19
+ declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
20
+ declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
21
+ declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
22
+ declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
23
+ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
24
+
25
+ declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
26
+ declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
27
+ declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
28
+ declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
29
+ declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
30
+ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
31
+ variant?: "default" | "sandbox";
32
+ } & React$1.RefAttributes<HTMLDivElement>>;
33
+ declare const DialogHeader: {
34
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
35
+ displayName: string;
36
+ };
37
+ declare const DialogFooter: {
38
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
39
+ displayName: string;
40
+ };
41
+ declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
42
+ declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
43
+
44
+ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
45
+ variant?: "default" | "sandbox";
46
+ label?: string;
47
+ error?: string;
48
+ hint?: string;
49
+ }
50
+ declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
51
+ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
52
+ variant?: "default" | "sandbox";
53
+ label?: string;
54
+ error?: string;
55
+ hint?: string;
56
+ }
57
+ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
58
+
59
+ declare const badgeVariants: (props?: ({
60
+ variant?: "default" | "destructive" | "outline" | "secondary" | "sandbox" | "error" | "success" | "warning" | "info" | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
63
+ }
64
+ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
65
+
66
+ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
67
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
68
+ declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
69
+
70
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
71
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
72
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
73
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
74
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
75
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
76
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
77
+ inset?: boolean;
78
+ } & React$1.RefAttributes<HTMLDivElement>>;
79
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
80
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
81
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
82
+ inset?: boolean;
83
+ } & React$1.RefAttributes<HTMLDivElement>>;
84
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
85
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
86
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
87
+ inset?: boolean;
88
+ } & React$1.RefAttributes<HTMLDivElement>>;
89
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
90
+ declare const DropdownMenuShortcut: {
91
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
92
+ displayName: string;
93
+ };
94
+
95
+ declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
96
+ declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
97
+ declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
98
+ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
99
+ declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
100
+ declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
101
+ declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
102
+ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
103
+ declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
104
+ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
105
+
106
+ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
107
+ declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
108
+ declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
109
+ declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
110
+ declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
111
+ declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
112
+ declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
113
+ declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
114
+
115
+ declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
116
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
117
+ variant?: "default" | "pills" | "underline";
118
+ } & React$1.RefAttributes<HTMLDivElement>>;
119
+ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
120
+ variant?: "default" | "pills" | "underline";
121
+ } & React$1.RefAttributes<HTMLButtonElement>>;
122
+ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
123
+
124
+ declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
125
+ variant?: "default" | "sandbox";
126
+ showValue?: boolean;
127
+ } & React$1.RefAttributes<HTMLDivElement>>;
128
+
129
+ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
130
+
131
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
132
+ declare function SkeletonCard({ className }: {
133
+ className?: string;
134
+ }): react_jsx_runtime.JSX.Element;
135
+ declare function SkeletonTable({ rows }: {
136
+ rows?: number;
137
+ }): react_jsx_runtime.JSX.Element;
138
+
139
+ interface Toast {
140
+ id: string;
141
+ title: string;
142
+ description?: string;
143
+ variant?: "default" | "success" | "error" | "warning" | "info";
144
+ duration?: number;
145
+ }
146
+ interface ToastContainerProps {
147
+ toasts: Toast[];
148
+ onDismiss: (id: string) => void;
149
+ }
150
+ declare function ToastContainer({ toasts, onDismiss }: ToastContainerProps): react_jsx_runtime.JSX.Element;
151
+ type ToastInput = Omit<Toast, "id">;
152
+ interface ToastContextValue {
153
+ toasts: Toast[];
154
+ toast: (input: ToastInput) => void;
155
+ success: (title: string, description?: string) => void;
156
+ error: (title: string, description?: string) => void;
157
+ warning: (title: string, description?: string) => void;
158
+ info: (title: string, description?: string) => void;
159
+ dismiss: (id: string) => void;
160
+ }
161
+ declare function ToastProvider({ children }: {
162
+ children: React$1.ReactNode;
163
+ }): react_jsx_runtime.JSX.Element;
164
+ declare function useToast(): ToastContextValue;
165
+
166
+ declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
167
+
168
+ interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
169
+ icon?: React$1.ReactNode;
170
+ title: string;
171
+ description?: string;
172
+ action?: React$1.ReactNode;
173
+ }
174
+ declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
175
+
176
+ interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
177
+ variant?: "default" | "sandbox";
178
+ title: string;
179
+ value: string | number;
180
+ subtitle?: string;
181
+ icon?: React$1.ReactNode;
182
+ trend?: {
183
+ value: number;
184
+ label?: string;
185
+ };
186
+ }
187
+ declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
188
+
189
+ export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Input, type InputProps, Label, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonCard, SkeletonTable, StatCard, type StatCardProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type Toast, ToastContainer, ToastProvider, badgeVariants, useToast };
@@ -0,0 +1,161 @@
1
+ import {
2
+ Label,
3
+ Select,
4
+ SelectContent,
5
+ SelectGroup,
6
+ SelectItem,
7
+ SelectLabel,
8
+ SelectScrollDownButton,
9
+ SelectScrollUpButton,
10
+ SelectSeparator,
11
+ SelectTrigger,
12
+ SelectValue,
13
+ StatCard,
14
+ Switch,
15
+ Table,
16
+ TableBody,
17
+ TableCaption,
18
+ TableCell,
19
+ TableFooter,
20
+ TableHead,
21
+ TableHeader,
22
+ TableRow,
23
+ ToastContainer,
24
+ ToastProvider,
25
+ useToast
26
+ } from "./chunk-ZOL2TR5M.js";
27
+ import {
28
+ Avatar,
29
+ AvatarFallback,
30
+ AvatarImage
31
+ } from "./chunk-B26TQ7SA.js";
32
+ import {
33
+ Dialog,
34
+ DialogClose,
35
+ DialogContent,
36
+ DialogDescription,
37
+ DialogFooter,
38
+ DialogHeader,
39
+ DialogOverlay,
40
+ DialogPortal,
41
+ DialogTitle,
42
+ DialogTrigger,
43
+ EmptyState,
44
+ Input,
45
+ Tabs,
46
+ TabsContent,
47
+ TabsList,
48
+ TabsTrigger,
49
+ Textarea
50
+ } from "./chunk-NI2EI43H.js";
51
+ import {
52
+ DropdownMenu,
53
+ DropdownMenuCheckboxItem,
54
+ DropdownMenuContent,
55
+ DropdownMenuGroup,
56
+ DropdownMenuItem,
57
+ DropdownMenuLabel,
58
+ DropdownMenuPortal,
59
+ DropdownMenuRadioGroup,
60
+ DropdownMenuRadioItem,
61
+ DropdownMenuSeparator,
62
+ DropdownMenuShortcut,
63
+ DropdownMenuSub,
64
+ DropdownMenuSubContent,
65
+ DropdownMenuSubTrigger,
66
+ DropdownMenuTrigger
67
+ } from "./chunk-MCGKDCOR.js";
68
+ import {
69
+ Badge,
70
+ Card,
71
+ CardContent,
72
+ CardDescription,
73
+ CardFooter,
74
+ CardHeader,
75
+ CardTitle,
76
+ Progress,
77
+ Skeleton,
78
+ SkeletonCard,
79
+ SkeletonTable,
80
+ badgeVariants
81
+ } from "./chunk-2UHPE5T7.js";
82
+ import {
83
+ Button,
84
+ buttonVariants
85
+ } from "./chunk-E6FS7R4X.js";
86
+ import "./chunk-RQHJBTEU.js";
87
+ export {
88
+ Avatar,
89
+ AvatarFallback,
90
+ AvatarImage,
91
+ Badge,
92
+ Button,
93
+ Card,
94
+ CardContent,
95
+ CardDescription,
96
+ CardFooter,
97
+ CardHeader,
98
+ CardTitle,
99
+ Dialog,
100
+ DialogClose,
101
+ DialogContent,
102
+ DialogDescription,
103
+ DialogFooter,
104
+ DialogHeader,
105
+ DialogOverlay,
106
+ DialogPortal,
107
+ DialogTitle,
108
+ DialogTrigger,
109
+ DropdownMenu,
110
+ DropdownMenuCheckboxItem,
111
+ DropdownMenuContent,
112
+ DropdownMenuGroup,
113
+ DropdownMenuItem,
114
+ DropdownMenuLabel,
115
+ DropdownMenuPortal,
116
+ DropdownMenuRadioGroup,
117
+ DropdownMenuRadioItem,
118
+ DropdownMenuSeparator,
119
+ DropdownMenuShortcut,
120
+ DropdownMenuSub,
121
+ DropdownMenuSubContent,
122
+ DropdownMenuSubTrigger,
123
+ DropdownMenuTrigger,
124
+ EmptyState,
125
+ Input,
126
+ Label,
127
+ Progress,
128
+ Select,
129
+ SelectContent,
130
+ SelectGroup,
131
+ SelectItem,
132
+ SelectLabel,
133
+ SelectScrollDownButton,
134
+ SelectScrollUpButton,
135
+ SelectSeparator,
136
+ SelectTrigger,
137
+ SelectValue,
138
+ Skeleton,
139
+ SkeletonCard,
140
+ SkeletonTable,
141
+ StatCard,
142
+ Switch,
143
+ Table,
144
+ TableBody,
145
+ TableCaption,
146
+ TableCell,
147
+ TableFooter,
148
+ TableHead,
149
+ TableHeader,
150
+ TableRow,
151
+ Tabs,
152
+ TabsContent,
153
+ TabsList,
154
+ TabsTrigger,
155
+ Textarea,
156
+ ToastContainer,
157
+ ToastProvider,
158
+ badgeVariants,
159
+ buttonVariants,
160
+ useToast
161
+ };
@@ -0,0 +1,41 @@
1
+ import { S as SessionMessage } from './parts-CyGkM6Fp.js';
2
+
3
+ /** Broad category of a tool invocation, used for display grouping. */
4
+ type ToolCategory = "command" | "write" | "read" | "search" | "edit" | "task" | "web" | "todo" | "other";
5
+ interface RunStats {
6
+ toolCount: number;
7
+ messageCount: number;
8
+ thinkingDurationMs: number;
9
+ textPartCount: number;
10
+ toolCategories: Set<ToolCategory>;
11
+ }
12
+ interface FinalTextPart {
13
+ messageId: string;
14
+ partIndex: number;
15
+ text: string;
16
+ }
17
+ /**
18
+ * A Run is a consecutive group of assistant messages that form one
19
+ * logical "turn" of the agent. Runs are collapsible in the UI and
20
+ * show a summary header when collapsed.
21
+ */
22
+ interface Run {
23
+ id: string;
24
+ messages: SessionMessage[];
25
+ isComplete: boolean;
26
+ isStreaming: boolean;
27
+ stats: RunStats;
28
+ summaryText: string | null;
29
+ finalTextPart: FinalTextPart | null;
30
+ }
31
+ interface MessageRun {
32
+ type: "run";
33
+ run: Run;
34
+ }
35
+ interface MessageUser {
36
+ type: "user";
37
+ message: SessionMessage;
38
+ }
39
+ type GroupedMessage = MessageRun | MessageUser;
40
+
41
+ export type { FinalTextPart as F, GroupedMessage as G, MessageRun as M, Run as R, ToolCategory as T, MessageUser as a, RunStats as b };
package/dist/run.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ export { E as ExpandedToolDetail, a as ExpandedToolDetailProps, I as InlineThinkingItem, b as InlineThinkingItemProps, c as InlineToolItem, d as InlineToolItemProps, R as RunGroup, e as RunGroupProps } from './expanded-tool-detail-OkXGqTHe.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ export { F as FeedSegment, T as ToolCallData, a as ToolCallFeed, b as ToolCallFeedProps, c as ToolCallGroup, d as ToolCallGroupProps, e as ToolCallStatus, f as ToolCallStep, g as ToolCallStepProps, h as ToolCallType, p as parseToolEvent } from './tool-call-feed-D5Ume-Pt.js';
4
+ import 'react';
5
+ import './run-CtFZ6s-D.js';
6
+ import './parts-CyGkM6Fp.js';
7
+ import './branding-DCi5VEik.js';
8
+ import './tool-display-BvsVW_Ur.js';
9
+
10
+ declare function LiveDuration({ startTime }: {
11
+ startTime: number;
12
+ }): react_jsx_runtime.JSX.Element;
13
+
14
+ export { LiveDuration };
package/dist/run.js ADDED
@@ -0,0 +1,29 @@
1
+ import {
2
+ ToolCallFeed,
3
+ ToolCallGroup,
4
+ ToolCallStep,
5
+ parseToolEvent
6
+ } from "./chunk-M6VLC32S.js";
7
+ import {
8
+ ExpandedToolDetail,
9
+ InlineThinkingItem,
10
+ InlineToolItem,
11
+ LiveDuration,
12
+ RunGroup
13
+ } from "./chunk-6MQIDUPA.js";
14
+ import "./chunk-LTFK464G.js";
15
+ import "./chunk-M34OA6PQ.js";
16
+ import "./chunk-HRMUF35V.js";
17
+ import "./chunk-QSQBDR3N.js";
18
+ import "./chunk-RQHJBTEU.js";
19
+ export {
20
+ ExpandedToolDetail,
21
+ InlineThinkingItem,
22
+ InlineToolItem,
23
+ LiveDuration,
24
+ RunGroup,
25
+ ToolCallFeed,
26
+ ToolCallGroup,
27
+ ToolCallStep,
28
+ parseToolEvent
29
+ };
@@ -0,0 +1,8 @@
1
+ /** A chat session on the sidecar session gateway. */
2
+ interface Session {
3
+ id: string;
4
+ title: string;
5
+ parentID?: string;
6
+ }
7
+
8
+ export type { Session as S };
@@ -0,0 +1,28 @@
1
+ import * as nanostores from 'nanostores';
2
+ import { S as SessionMessage, a as SessionPart } from './parts-CyGkM6Fp.js';
3
+
4
+ interface ChatSession {
5
+ /** Sidecar HTTP base URL, e.g. "http://localhost:8080". */
6
+ sidecarUrl: string;
7
+ /** Auth token for the sidecar API. */
8
+ token: string;
9
+ /** Unique session identifier. */
10
+ sessionId: string;
11
+ }
12
+ /** The currently active chat session (null when disconnected). */
13
+ declare const sessionAtom: nanostores.PreinitializedWritableAtom<ChatSession | null> & object;
14
+ declare function connectSession(session: ChatSession): void;
15
+ declare function disconnectSession(): void;
16
+
17
+ /** Ordered list of messages in the current chat session. */
18
+ declare const messagesAtom: nanostores.PreinitializedWritableAtom<SessionMessage[]> & object;
19
+ /** Map of message ID → parts for that message. */
20
+ declare const partMapAtom: nanostores.PreinitializedMapStore<Record<string, SessionPart[]>> & object;
21
+ /** Whether the assistant is currently streaming a response. */
22
+ declare const isStreamingAtom: nanostores.PreinitializedWritableAtom<boolean> & object;
23
+ declare function addMessage(msg: SessionMessage): void;
24
+ declare function addParts(messageId: string, parts: SessionPart[]): void;
25
+ declare function updatePart(messageId: string, partIndex: number, part: SessionPart): void;
26
+ declare function clearChat(): void;
27
+
28
+ export { type ChatSession, addMessage, addParts, clearChat, connectSession, disconnectSession, isStreamingAtom, messagesAtom, partMapAtom, sessionAtom, updatePart };
package/dist/stores.js ADDED
@@ -0,0 +1,49 @@
1
+ // src/stores/session-store.ts
2
+ import { atom } from "nanostores";
3
+ var sessionAtom = atom(null);
4
+ function connectSession(session) {
5
+ sessionAtom.set(session);
6
+ }
7
+ function disconnectSession() {
8
+ sessionAtom.set(null);
9
+ }
10
+
11
+ // src/stores/chat-store.ts
12
+ import { atom as atom2, map } from "nanostores";
13
+ var messagesAtom = atom2([]);
14
+ var partMapAtom = map({});
15
+ var isStreamingAtom = atom2(false);
16
+ var insertionCounter = 0;
17
+ function addMessage(msg) {
18
+ const withIndex = { ...msg, _insertionIndex: insertionCounter++ };
19
+ messagesAtom.set([...messagesAtom.get(), withIndex]);
20
+ }
21
+ function addParts(messageId, parts) {
22
+ const current = partMapAtom.get();
23
+ const existing = current[messageId] ?? [];
24
+ partMapAtom.setKey(messageId, [...existing, ...parts]);
25
+ }
26
+ function updatePart(messageId, partIndex, part) {
27
+ const current = partMapAtom.get();
28
+ const existing = [...current[messageId] ?? []];
29
+ existing[partIndex] = part;
30
+ partMapAtom.setKey(messageId, existing);
31
+ }
32
+ function clearChat() {
33
+ messagesAtom.set([]);
34
+ partMapAtom.set({});
35
+ isStreamingAtom.set(false);
36
+ insertionCounter = 0;
37
+ }
38
+ export {
39
+ addMessage,
40
+ addParts,
41
+ clearChat,
42
+ connectSession,
43
+ disconnectSession,
44
+ isStreamingAtom,
45
+ messagesAtom,
46
+ partMapAtom,
47
+ sessionAtom,
48
+ updatePart
49
+ };
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface TerminalTheme {
4
+ background: string;
5
+ foreground: string;
6
+ cursor: string;
7
+ cursorAccent: string;
8
+ selectionBackground: string;
9
+ selectionForeground: string;
10
+ black: string;
11
+ red: string;
12
+ green: string;
13
+ yellow: string;
14
+ blue: string;
15
+ magenta: string;
16
+ cyan: string;
17
+ white: string;
18
+ brightBlack: string;
19
+ brightRed: string;
20
+ brightGreen: string;
21
+ brightYellow: string;
22
+ brightBlue: string;
23
+ brightMagenta: string;
24
+ brightCyan: string;
25
+ brightWhite: string;
26
+ }
27
+ interface TerminalViewProps {
28
+ /** Base URL of the sidecar. */
29
+ apiUrl: string;
30
+ /** Bearer token for authentication. */
31
+ token: string;
32
+ /** xterm color theme override. */
33
+ theme?: Partial<TerminalTheme>;
34
+ /** Title shown in the welcome box. Default: "Terminal". */
35
+ title?: string;
36
+ /** Subtitle shown in the welcome box. Default: "Connected to PTY session". */
37
+ subtitle?: string;
38
+ /** ANSI-escaped prompt string. Default: green "$ ". */
39
+ prompt?: string;
40
+ }
41
+ declare const DEFAULT_TERMINAL_THEME: TerminalTheme;
42
+ declare function TerminalView({ apiUrl, token, theme, title, subtitle, prompt, }: TerminalViewProps): react_jsx_runtime.JSX.Element;
43
+
44
+ export { DEFAULT_TERMINAL_THEME, type TerminalTheme, TerminalView, type TerminalViewProps };