@tangle-network/sandbox-ui 0.14.0 → 0.15.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.
Files changed (104) hide show
  1. package/dist/auth.d.ts +1 -74
  2. package/dist/auth.js +1 -4
  3. package/dist/chat.d.ts +1 -136
  4. package/dist/chat.js +2 -15
  5. package/dist/chunk-2BUPSB7O.js +0 -0
  6. package/dist/chunk-3J6FG3FJ.js +18 -0
  7. package/dist/chunk-76IQLPW2.js +206 -0
  8. package/dist/chunk-7ZA5SEK3.js +239 -0
  9. package/dist/chunk-AHBZCBDO.js +2960 -0
  10. package/dist/chunk-AZ3AWMTM.js +8 -0
  11. package/dist/chunk-CMY7W45U.js +380 -0
  12. package/dist/{chunk-QMU2PWOU.js → chunk-DNZ4DTNA.js} +71 -17
  13. package/dist/chunk-EI44GEQ5.js +6 -0
  14. package/dist/{chunk-5OQ27N57.js → chunk-GPT7VKK6.js} +34 -38
  15. package/dist/chunk-JBGKGLD7.js +16 -0
  16. package/dist/chunk-NJNME4J4.js +14 -0
  17. package/dist/chunk-QPAJR74X.js +20 -0
  18. package/dist/chunk-TK46XFLM.js +28 -0
  19. package/dist/chunk-WID73FPH.js +89 -0
  20. package/dist/chunk-YVXK4XRO.js +30 -0
  21. package/dist/dashboard.d.ts +538 -4
  22. package/dist/dashboard.js +15 -886
  23. package/dist/editor.d.ts +1 -120
  24. package/dist/editor.js +1 -5
  25. package/dist/files.d.ts +1 -129
  26. package/dist/files.js +2 -7
  27. package/dist/globals.css +2 -1265
  28. package/dist/hooks.d.ts +114 -11
  29. package/dist/hooks.js +17 -88
  30. package/dist/index.d.ts +24 -99
  31. package/dist/index.js +247 -252
  32. package/dist/markdown.d.ts +1 -29
  33. package/dist/markdown.js +2 -2
  34. package/dist/openui.d.ts +8 -115
  35. package/dist/openui.js +1 -6
  36. package/dist/pages.d.ts +1 -2
  37. package/dist/pages.js +68 -66
  38. package/dist/primitives.d.ts +14 -49
  39. package/dist/primitives.js +69 -77
  40. package/dist/run.d.ts +1 -14
  41. package/dist/run.js +2 -22
  42. package/dist/sdk-hooks.d.ts +3 -283
  43. package/dist/sdk-hooks.js +10 -14
  44. package/dist/stores.d.ts +2 -14
  45. package/dist/stores.js +11 -39
  46. package/dist/styles.css +2 -1265
  47. package/dist/{usage-chart-CPTcNlGs.d.ts → template-card-UhV3pmRC.d.ts} +16 -1
  48. package/dist/types.d.ts +11 -8
  49. package/dist/types.js +1 -0
  50. package/dist/utils.d.ts +1 -44
  51. package/dist/utils.js +6 -12
  52. package/dist/workspace.d.ts +5 -10
  53. package/dist/workspace.js +3 -19
  54. package/package.json +19 -54
  55. package/dist/active-sessions-store-CeOmXgv5.d.ts +0 -85
  56. package/dist/artifact-pane-Bh45Ssco.d.ts +0 -24
  57. package/dist/branding-DCi5VEik.d.ts +0 -13
  58. package/dist/button-CMQuQEW_.d.ts +0 -17
  59. package/dist/chat-container-f4yEs6KN.d.ts +0 -106
  60. package/dist/chunk-34A66VBG.js +0 -214
  61. package/dist/chunk-34I7UFSX.js +0 -92
  62. package/dist/chunk-36QY2W5G.js +0 -802
  63. package/dist/chunk-4CLN43XT.js +0 -45
  64. package/dist/chunk-54SQQMMM.js +0 -156
  65. package/dist/chunk-66EZOYZR.js +0 -102
  66. package/dist/chunk-BX6AQMUS.js +0 -183
  67. package/dist/chunk-DI3NZ5ZX.js +0 -192
  68. package/dist/chunk-DPGIXDAI.js +0 -220
  69. package/dist/chunk-DXMIEK4K.js +0 -1426
  70. package/dist/chunk-GSZA3TSY.js +0 -79
  71. package/dist/chunk-HB5Y37YU.js +0 -54
  72. package/dist/chunk-LQNEZDRM.js +0 -109
  73. package/dist/chunk-MA7YKRUP.js +0 -131
  74. package/dist/chunk-MKTSMWVD.js +0 -109
  75. package/dist/chunk-MQXABZTB.js +0 -1348
  76. package/dist/chunk-MT5FJ3ZT.js +0 -186
  77. package/dist/chunk-NKUPJC34.js +0 -2070
  78. package/dist/chunk-OEX7NZE3.js +0 -321
  79. package/dist/chunk-OKLQVY3Y.js +0 -139
  80. package/dist/chunk-Q56BYXQF.js +0 -61
  81. package/dist/chunk-QD4QE5P5.js +0 -40
  82. package/dist/chunk-QDH5GEGY.js +0 -630
  83. package/dist/chunk-QID2OOMG.js +0 -133
  84. package/dist/chunk-RQHJBTEU.js +0 -10
  85. package/dist/chunk-T7HMZEVO.js +0 -216
  86. package/dist/chunk-U6QTHMY6.js +0 -1290
  87. package/dist/chunk-US6JKJKH.js +0 -124
  88. package/dist/chunk-VX3XOUEB.js +0 -63
  89. package/dist/chunk-XLG757B6.js +0 -933
  90. package/dist/chunk-ZMNSRDMH.js +0 -127
  91. package/dist/chunk-ZNCEM5CD.js +0 -316
  92. package/dist/document-editor-pane-A70-EhdQ.d.ts +0 -124
  93. package/dist/document-editor-pane-TLPVRBBU.js +0 -11
  94. package/dist/expanded-tool-detail-Dh99mcbY.d.ts +0 -63
  95. package/dist/file-tabs-BLfxfmAH.d.ts +0 -51
  96. package/dist/parts-CyGkM6Fp.d.ts +0 -50
  97. package/dist/run-CtFZ6s-D.d.ts +0 -41
  98. package/dist/sidebar-drop-zone-tDBsuOH5.d.ts +0 -301
  99. package/dist/sidecar-CFU2W9j1.d.ts +0 -8
  100. package/dist/template-card-BAtvcAkU.d.ts +0 -18
  101. package/dist/tool-call-feed-Bs3MyQMT.d.ts +0 -68
  102. package/dist/tool-display-Ct9nFAzJ.d.ts +0 -32
  103. package/dist/use-sandbox-metrics-DWc0k9Xm.d.ts +0 -153
  104. package/dist/variant-list-BrHYcBCk.d.ts +0 -540
@@ -1,51 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- /**
4
- * FileTree — directory browser with file type icons.
5
- *
6
- * Renders a hierarchical file system view. Clicking a file
7
- * triggers onSelect with the full path.
8
- */
9
- interface FileNode {
10
- name: string;
11
- path: string;
12
- type: "file" | "directory";
13
- children?: FileNode[];
14
- size?: number;
15
- mimeType?: string;
16
- }
17
- interface FileTreeProps {
18
- root: FileNode;
19
- selectedPath?: string;
20
- onSelect?: (path: string, node: FileNode) => void;
21
- className?: string;
22
- defaultExpanded?: boolean;
23
- visibility?: FileTreeVisibilityOptions;
24
- }
25
- interface FileTreeVisibilityOptions {
26
- hiddenPaths?: string[];
27
- hiddenPathPrefixes?: string[];
28
- isVisible?: (node: FileNode) => boolean;
29
- }
30
- declare function filterFileTree(root: FileNode, visibility?: FileTreeVisibilityOptions): FileNode | null;
31
- declare function FileTree({ root, selectedPath, onSelect, className, defaultExpanded, visibility, }: FileTreeProps): react_jsx_runtime.JSX.Element | null;
32
-
33
- /**
34
- * FileTabs — tab bar for open files in the preview panel.
35
- */
36
- interface FileTabData {
37
- id: string;
38
- name: string;
39
- path: string;
40
- dirty?: boolean;
41
- }
42
- interface FileTabsProps {
43
- tabs: FileTabData[];
44
- activeId?: string;
45
- onSelect: (id: string) => void;
46
- onClose: (id: string) => void;
47
- className?: string;
48
- }
49
- declare function FileTabs({ tabs, activeId, onSelect, onClose, className }: FileTabsProps): react_jsx_runtime.JSX.Element | null;
50
-
51
- export { type FileNode as F, type FileTabData as a, FileTabs as b, type FileTabsProps as c, FileTree as d, type FileTreeProps as e, type FileTreeVisibilityOptions as f, filterFileTree as g };
@@ -1,50 +0,0 @@
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 };
@@ -1,41 +0,0 @@
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 };
@@ -1,301 +0,0 @@
1
- import * as React$1 from 'react';
2
- import { ReactNode } 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" | "elevated";
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
- declare const inputVariants: (props?: ({
45
- variant?: "default" | "sandbox" | "error" | null | undefined;
46
- size?: "default" | "sm" | "lg" | null | undefined;
47
- } & class_variance_authority_types.ClassProp) | undefined) => string;
48
- interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
49
- label?: string;
50
- error?: string;
51
- hint?: string;
52
- }
53
- declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
54
- interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
55
- variant?: "default" | "sandbox";
56
- label?: string;
57
- error?: string;
58
- hint?: string;
59
- }
60
- declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
61
-
62
- declare const badgeVariants: (props?: ({
63
- variant?: "default" | "destructive" | "outline" | "secondary" | "sandbox" | "error" | "success" | "warning" | "info" | "running" | "creating" | "stopped" | "warm" | "cold" | "deleted" | null | undefined;
64
- } & class_variance_authority_types.ClassProp) | undefined) => string;
65
- type BadgeVariant = "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error" | "info" | "sandbox" | "running" | "creating" | "stopped" | "warm" | "cold" | "deleted" | null;
66
- interface BadgeProps extends VariantProps<typeof badgeVariants> {
67
- variant?: BadgeVariant;
68
- className?: string;
69
- children?: React$1.ReactNode;
70
- dot?: boolean;
71
- onClick?: React$1.MouseEventHandler<HTMLDivElement>;
72
- style?: React$1.CSSProperties;
73
- id?: string;
74
- role?: React$1.AriaRole;
75
- title?: string;
76
- [key: string]: unknown;
77
- }
78
- declare function Badge({ className, variant, dot, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
79
-
80
- declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
81
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
82
- declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
83
-
84
- declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
85
- declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
86
- declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
87
- declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
88
- declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
89
- declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
90
- declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
91
- inset?: boolean;
92
- } & React$1.RefAttributes<HTMLDivElement>>;
93
- declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
94
- declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
95
- declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
96
- inset?: boolean;
97
- } & React$1.RefAttributes<HTMLDivElement>>;
98
- declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
99
- declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
100
- declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
101
- inset?: boolean;
102
- } & React$1.RefAttributes<HTMLDivElement>>;
103
- declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
104
- declare const DropdownMenuShortcut: {
105
- ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
106
- displayName: string;
107
- };
108
-
109
- declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
110
- declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
111
- declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
112
- declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
113
- declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
114
- declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
115
- declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
116
- declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
117
- declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
118
- declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
119
-
120
- declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
121
- declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
122
- declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
123
- declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
124
- declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
125
- declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
126
- declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
127
- declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
128
-
129
- declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
130
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
131
- variant?: "default" | "pills" | "underline";
132
- } & React$1.RefAttributes<HTMLDivElement>>;
133
- declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
134
- variant?: "default" | "pills" | "underline";
135
- } & React$1.RefAttributes<HTMLButtonElement>>;
136
- declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
137
-
138
- declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
139
- variant?: "default" | "sandbox";
140
- showValue?: boolean;
141
- } & React$1.RefAttributes<HTMLDivElement>>;
142
-
143
- declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
144
-
145
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
146
- declare function SkeletonCard({ className }: {
147
- className?: string;
148
- }): react_jsx_runtime.JSX.Element;
149
- declare function SkeletonTable({ rows }: {
150
- rows?: number;
151
- }): react_jsx_runtime.JSX.Element;
152
-
153
- interface Toast {
154
- id: string;
155
- title: string;
156
- description?: string;
157
- variant?: "default" | "success" | "error" | "warning" | "info";
158
- duration?: number;
159
- }
160
- interface ToastContainerProps {
161
- toasts: Toast[];
162
- onDismiss: (id: string) => void;
163
- }
164
- declare function ToastContainer({ toasts, onDismiss }: ToastContainerProps): react_jsx_runtime.JSX.Element;
165
- type ToastInput = Omit<Toast, "id">;
166
- interface ToastContextValue {
167
- toasts: Toast[];
168
- toast: (input: ToastInput) => void;
169
- success: (title: string, description?: string) => void;
170
- error: (title: string, description?: string) => void;
171
- warning: (title: string, description?: string) => void;
172
- info: (title: string, description?: string) => void;
173
- dismiss: (id: string) => void;
174
- }
175
- declare function ToastProvider({ children }: {
176
- children: React$1.ReactNode;
177
- }): react_jsx_runtime.JSX.Element;
178
- declare function useToast(): ToastContextValue;
179
-
180
- declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
181
-
182
- interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
183
- icon?: React$1.ReactNode;
184
- title: string;
185
- description?: string;
186
- action?: React$1.ReactNode;
187
- }
188
- declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
189
-
190
- interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
191
- variant?: "default" | "sandbox";
192
- title: string;
193
- value: string | number;
194
- subtitle?: string;
195
- icon?: React$1.ReactNode;
196
- trend?: {
197
- value: number;
198
- label?: string;
199
- };
200
- }
201
- declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
202
-
203
- interface LogoProps {
204
- variant?: "sandbox";
205
- size?: "sm" | "md" | "lg" | "xl";
206
- className?: string;
207
- iconOnly?: boolean;
208
- }
209
- declare function TangleKnot({ size, className }: {
210
- size: number;
211
- className?: string;
212
- }): react_jsx_runtime.JSX.Element;
213
- declare function Logo({ variant, size, className, iconOnly }: LogoProps): react_jsx_runtime.JSX.Element;
214
- declare namespace Logo {
215
- var displayName: string;
216
- }
217
-
218
- interface TerminalDisplayProps extends React$1.HTMLAttributes<HTMLDivElement> {
219
- variant?: "default" | "sandbox";
220
- title?: string;
221
- showHeader?: boolean;
222
- autoScroll?: boolean;
223
- maxHeight?: string;
224
- }
225
- declare const TerminalDisplay: React$1.ForwardRefExoticComponent<TerminalDisplayProps & React$1.RefAttributes<HTMLDivElement>>;
226
- interface TerminalLineProps extends React$1.HTMLAttributes<HTMLDivElement> {
227
- type?: "input" | "output" | "error" | "success" | "info" | "thinking" | "command" | "warning";
228
- prompt?: string;
229
- timestamp?: string;
230
- }
231
- declare const TerminalLine: React$1.ForwardRefExoticComponent<TerminalLineProps & React$1.RefAttributes<HTMLDivElement>>;
232
- declare const TerminalCursor: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & React$1.RefAttributes<HTMLSpanElement>>;
233
- interface TerminalInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onSubmit"> {
234
- onSubmit?: (value: string) => void;
235
- variant?: "default" | "sandbox";
236
- }
237
- declare const TerminalInput: React$1.ForwardRefExoticComponent<TerminalInputProps & React$1.RefAttributes<HTMLInputElement>>;
238
-
239
- interface DropZoneProps {
240
- /** Called with dropped files */
241
- onDrop: (files: File[]) => void;
242
- /** Accepted file types (e.g. ".pdf,.csv,.xlsx") */
243
- accept?: string;
244
- /** Whether drop zone is active */
245
- disabled?: boolean;
246
- /** Custom overlay content (replaces default) */
247
- overlay?: ReactNode;
248
- /** Overlay title */
249
- title?: string;
250
- /** Overlay description */
251
- description?: string;
252
- /** Overlay icon (Material Symbols name or ReactNode) */
253
- icon?: string | ReactNode;
254
- /** Children wrapped by the drop zone */
255
- children: ReactNode;
256
- className?: string;
257
- }
258
- declare function DropZone({ onDrop, accept, disabled, overlay, title, description, icon, children, className, }: DropZoneProps): react_jsx_runtime.JSX.Element;
259
-
260
- /**
261
- * UploadProgress — file upload status indicators.
262
- *
263
- * Shows a list of files being uploaded with progress bars,
264
- * completion checkmarks, and error states.
265
- */
266
- interface UploadFile {
267
- id: string;
268
- name: string;
269
- size: number;
270
- status: "pending" | "uploading" | "complete" | "error";
271
- progress?: number;
272
- error?: string;
273
- }
274
- interface UploadProgressProps {
275
- files: UploadFile[];
276
- onRemove?: (id: string) => void;
277
- onRetry?: (id: string) => void;
278
- className?: string;
279
- }
280
- declare function UploadProgress({ files, onRemove, onRetry, className }: UploadProgressProps): react_jsx_runtime.JSX.Element | null;
281
-
282
- interface SidebarDropZoneProps {
283
- /** Called with dropped files */
284
- onDrop: (files: File[]) => void;
285
- /** Accepted file types (e.g. ".pdf,.csv") */
286
- accept?: string;
287
- /** Whether drop zone is active */
288
- disabled?: boolean;
289
- /** Title shown in the drop zone */
290
- title?: string;
291
- /** Description shown below the title */
292
- description?: string;
293
- /** Custom icon (replaces default upload icon) */
294
- icon?: ReactNode;
295
- /** Always visible (not just on drag). Useful as a persistent upload area. */
296
- persistent?: boolean;
297
- className?: string;
298
- }
299
- declare function SidebarDropZone({ onDrop, accept, disabled, title, description, icon, persistent, className, }: SidebarDropZoneProps): react_jsx_runtime.JSX.Element;
300
-
301
- export { SelectSeparator as $, Avatar as A, Badge as B, Card as C, Dialog as D, DropdownMenuRadioGroup as E, DropdownMenuRadioItem as F, DropdownMenuSeparator as G, DropdownMenuShortcut as H, DropdownMenuSub as I, DropdownMenuSubContent as J, DropdownMenuSubTrigger as K, DropdownMenuTrigger as L, EmptyState as M, type EmptyStateProps as N, Input as O, type InputProps as P, Label as Q, Logo as R, type LogoProps as S, Progress as T, Select as U, SelectContent as V, SelectGroup as W, SelectItem as X, SelectLabel as Y, SelectScrollDownButton as Z, SelectScrollUpButton as _, AvatarFallback as a, SelectTrigger as a0, SelectValue as a1, SidebarDropZone as a2, type SidebarDropZoneProps as a3, Skeleton as a4, SkeletonCard as a5, SkeletonTable as a6, StatCard as a7, type StatCardProps as a8, Switch as a9, useToast as aA, Table as aa, TableBody as ab, TableCaption as ac, TableCell as ad, TableFooter as ae, TableHead as af, TableHeader as ag, TableRow as ah, Tabs as ai, TabsContent as aj, TabsList as ak, TabsTrigger as al, TangleKnot as am, TerminalCursor as an, TerminalDisplay as ao, TerminalInput as ap, TerminalLine as aq, Textarea as ar, type TextareaProps as as, type Toast as at, ToastContainer as au, ToastProvider as av, type UploadFile as aw, UploadProgress as ax, type UploadProgressProps as ay, badgeVariants as az, AvatarImage as b, type BadgeProps as c, CardContent as d, CardDescription as e, CardFooter as f, CardHeader as g, CardTitle as h, DialogClose as i, DialogContent as j, DialogDescription as k, DialogFooter as l, DialogHeader as m, DialogOverlay as n, DialogPortal as o, DialogTitle as p, DialogTrigger as q, DropZone as r, type DropZoneProps as s, DropdownMenu as t, DropdownMenuCheckboxItem as u, DropdownMenuContent as v, DropdownMenuGroup as w, DropdownMenuItem as x, DropdownMenuLabel as y, DropdownMenuPortal as z };
@@ -1,8 +0,0 @@
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 };
@@ -1,18 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- interface TemplateCardData {
5
- id: string;
6
- name: string;
7
- description: string;
8
- icon?: React.ReactNode;
9
- tags?: string[];
10
- }
11
- interface TemplateCardProps {
12
- template: TemplateCardData;
13
- onUseTemplate: (templateId: string) => void;
14
- className?: string;
15
- }
16
- declare function TemplateCard({ template, onUseTemplate, className }: TemplateCardProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { type TemplateCardData as T, TemplateCard as a, type TemplateCardProps as b };
@@ -1,68 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type ToolCallType = "bash" | "read" | "write" | "edit" | "glob" | "grep" | "list" | "download" | "inspect" | "audit" | "unknown";
5
- type ToolCallStatus = "running" | "success" | "error";
6
- interface ToolCallStepProps {
7
- type: ToolCallType;
8
- label: string;
9
- status: ToolCallStatus;
10
- detail?: string;
11
- output?: string;
12
- /** Override syntax highlighting language; inferred from detail path if omitted */
13
- language?: string;
14
- duration?: number;
15
- className?: string;
16
- }
17
- declare function ToolCallStep({ type, label, status, detail, output, language, duration, className, }: ToolCallStepProps): react_jsx_runtime.JSX.Element;
18
- /**
19
- * ToolCallGroup — groups multiple tool calls under a heading.
20
- */
21
- interface ToolCallGroupProps {
22
- title?: string;
23
- children: ReactNode;
24
- className?: string;
25
- }
26
- declare function ToolCallGroup({ title, children, className }: ToolCallGroupProps): react_jsx_runtime.JSX.Element;
27
-
28
- interface ToolCallData {
29
- id: string;
30
- type: ToolCallType;
31
- label: string;
32
- status: ToolCallStatus;
33
- detail?: string;
34
- output?: string;
35
- duration?: number;
36
- }
37
- type FeedSegment = {
38
- kind: "text";
39
- content: string;
40
- } | {
41
- kind: "tool_call";
42
- call: ToolCallData;
43
- } | {
44
- kind: "tool_group";
45
- title?: string;
46
- calls: ToolCallData[];
47
- };
48
- interface ToolCallFeedProps {
49
- segments: FeedSegment[];
50
- className?: string;
51
- }
52
- /**
53
- * Renders a feed of interleaved text and tool calls.
54
- */
55
- declare function ToolCallFeed({ segments, className }: ToolCallFeedProps): react_jsx_runtime.JSX.Element | null;
56
- /**
57
- * Parse raw SSE tool events into FeedSegments.
58
- *
59
- * This is the bridge between the orchestrator's SSE stream format
60
- * and the ToolCallFeed component. Consumers call this in their
61
- * useToolCallStream hook.
62
- */
63
- declare function parseToolEvent(event: {
64
- type: string;
65
- data: Record<string, unknown>;
66
- }): ToolCallData | null;
67
-
68
- export { type FeedSegment as F, type ToolCallData as T, ToolCallFeed as a, type ToolCallFeedProps as b, ToolCallGroup as c, type ToolCallGroupProps as d, type ToolCallStatus as e, ToolCallStep as f, type ToolCallStepProps as g, type ToolCallType as h, parseToolEvent as p };
@@ -1,32 +0,0 @@
1
- import { b as ToolPart } from './parts-CyGkM6Fp.js';
2
- import { ReactNode } from 'react';
3
-
4
- /**
5
- * Variant-specific rendering instructions for tool output.
6
- * Maps directly to specialised preview components.
7
- */
8
- type DisplayVariant = "command" | "write-file" | "read-file" | "diff" | "question" | "web-search" | "grep" | "glob" | "default";
9
- /**
10
- * Custom renderer for tool details. Return a ReactNode to override the
11
- * default ExpandedToolDetail, or null to fall back to the built-in renderer.
12
- */
13
- type CustomToolRenderer = (part: ToolPart) => ReactNode | null;
14
- /**
15
- * Visual metadata for a tool invocation — computed from the tool name,
16
- * input, and output by `getToolDisplayMetadata()`.
17
- */
18
- interface ToolDisplayMetadata {
19
- title: string;
20
- description?: string;
21
- inputTitle?: string;
22
- outputTitle?: string;
23
- inputLanguage?: string;
24
- outputLanguage?: string;
25
- hasDiffOutput?: boolean;
26
- diffFilePath?: string;
27
- displayVariant?: DisplayVariant;
28
- commandSnippet?: string;
29
- targetPath?: string;
30
- }
31
-
32
- export type { CustomToolRenderer as C, DisplayVariant as D, ToolDisplayMetadata as T };