@tangle-network/sandbox-ui 0.6.1 → 0.9.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 (68) hide show
  1. package/README.md +5 -6
  2. package/dist/auth.d.ts +10 -6
  3. package/dist/auth.js +3 -3
  4. package/dist/{chat-container-Cg-GwyiK.d.ts → chat-container-f4yEs6KN.d.ts} +9 -1
  5. package/dist/chat.d.ts +12 -2
  6. package/dist/chat.js +10 -10
  7. package/dist/{chunk-WBQ7VULC.js → chunk-34A66VBG.js} +7 -7
  8. package/dist/{chunk-JP725R4W.js → chunk-34I7UFSX.js} +2 -2
  9. package/dist/{chunk-CNWVHQFY.js → chunk-54SQQMMM.js} +6 -24
  10. package/dist/{chunk-DLCFZDGX.js → chunk-5UM2XMEJ.js} +39 -14
  11. package/dist/{chunk-YYGECNZZ.js → chunk-66EZOYZR.js} +3 -3
  12. package/dist/{chunk-6V4XVKFY.js → chunk-7YWFOGKQ.js} +344 -338
  13. package/dist/{chunk-DCPYTL4W.js → chunk-D4CZWJCD.js} +72 -148
  14. package/dist/{chunk-XTPAWK7L.js → chunk-DI3NZ5ZX.js} +15 -51
  15. package/dist/{chunk-MXRQ4MJE.js → chunk-DXMIEK4K.js} +34 -23
  16. package/dist/{chunk-ZMWWE5RF.js → chunk-EXSOPXIY.js} +141 -123
  17. package/dist/{chunk-GW4GRAWJ.js → chunk-GSZA3TSY.js} +18 -12
  18. package/dist/{chunk-W4LM3QYZ.js → chunk-HB5Y37YU.js} +8 -8
  19. package/dist/{chunk-RKXIRRKQ.js → chunk-JLKYXLFN.js} +70 -66
  20. package/dist/{chunk-BRBTD7RH.js → chunk-MA7YKRUP.js} +28 -18
  21. package/dist/{chunk-TSE423UF.js → chunk-MKTSMWVD.js} +6 -6
  22. package/dist/{chunk-MJUDMVRU.js → chunk-MT5FJ3ZT.js} +17 -17
  23. package/dist/{chunk-565V6JTN.js → chunk-OHPW55EV.js} +60 -99
  24. package/dist/chunk-OKLQVY3Y.js +139 -0
  25. package/dist/{chunk-OVNLOE3Y.js → chunk-PLTZB5BC.js} +41 -41
  26. package/dist/{chunk-E2XT3G52.js → chunk-QC4BJEG6.js} +136 -137
  27. package/dist/{chunk-KH5UDAJ2.js → chunk-QDH5GEGY.js} +58 -54
  28. package/dist/{chunk-33W2TLUL.js → chunk-QID2OOMG.js} +12 -3
  29. package/dist/{chunk-FJSVPBKY.js → chunk-S7OXQTST.js} +17 -3
  30. package/dist/chunk-T7HMZEVO.js +216 -0
  31. package/dist/{chunk-FNYJFCGU.js → chunk-U6QTHMY6.js} +145 -256
  32. package/dist/{chunk-YS66Q3RC.js → chunk-US6JKJKH.js} +2 -2
  33. package/dist/chunk-VX3XOUEB.js +63 -0
  34. package/dist/{chunk-TDYQBLL5.js → chunk-ZMNSRDMH.js} +6 -6
  35. package/dist/dashboard.d.ts +156 -4
  36. package/dist/dashboard.js +885 -8
  37. package/dist/{document-editor-pane-DWWUTTTZ.js → document-editor-pane-TLPVRBBU.js} +3 -3
  38. package/dist/editor.d.ts +9 -8
  39. package/dist/editor.js +3 -3
  40. package/dist/files.js +3 -3
  41. package/dist/globals.css +4787 -69
  42. package/dist/hooks.d.ts +1 -1
  43. package/dist/hooks.js +7 -7
  44. package/dist/index.d.ts +4 -4
  45. package/dist/index.js +28 -28
  46. package/dist/markdown.js +1 -1
  47. package/dist/openui.js +5 -5
  48. package/dist/pages.d.ts +114 -5
  49. package/dist/pages.js +1978 -365
  50. package/dist/primitives.d.ts +5 -2
  51. package/dist/primitives.js +10 -10
  52. package/dist/run.js +4 -4
  53. package/dist/sdk-hooks.d.ts +2 -3
  54. package/dist/sdk-hooks.js +5 -5
  55. package/dist/styles.css +4787 -69
  56. package/dist/template-card-BAtvcAkU.d.ts +18 -0
  57. package/dist/terminal.d.ts +3 -1
  58. package/dist/terminal.js +66 -32
  59. package/dist/tokens.css +289 -237
  60. package/dist/{usage-chart-XCoB_7Xu.d.ts → usage-chart-SSiOgeQI.d.ts} +3 -1
  61. package/dist/{use-pty-session-COzVkhtc.d.ts → use-pty-session-0AOuwXgq.d.ts} +2 -0
  62. package/dist/{index-BT_-ecpc.d.ts → variant-list-CsS6ydgm.d.ts} +16 -7
  63. package/dist/workspace.d.ts +2 -2
  64. package/dist/workspace.js +13 -13
  65. package/package.json +18 -3
  66. package/tailwind.config.cjs +3 -2
  67. package/dist/chunk-3HW53XTH.js +0 -228
  68. package/dist/chunk-OKCIKTXQ.js +0 -63
package/dist/hooks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AuthUser, U as UseAuthOptions, a as UseAuthResult, b as UsePtySessionOptions, c as UsePtySessionReturn, d as createAuthFetcher, u as useApiKey, e as useAuth, f as usePtySession } from './use-pty-session-COzVkhtc.js';
1
+ export { A as AuthUser, U as UseAuthOptions, a as UseAuthResult, b as UsePtySessionOptions, c as UsePtySessionReturn, d as createAuthFetcher, u as useApiKey, e as useAuth, f as usePtySession } from './use-pty-session-0AOuwXgq.js';
2
2
  export { AgentStreamEvent, AppendUserMessageOptions, ApplySdkEventOptions, AutomationStreamEvent, BeginAssistantMessageOptions, BotStreamEvent, CompleteAssistantMessageOptions, ConnectionState, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, SessionInfo, SidecarAuth, TaskStreamEvent, TerminalStreamEvent, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseSessionStreamOptions, UseSessionStreamResult, UseSidecarAuthOptions, UseToolCallStreamReturn, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream } from './sdk-hooks.js';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { S as Session } from './sidecar-CFU2W9j1.js';
package/dist/hooks.js CHANGED
@@ -2,10 +2,10 @@ import {
2
2
  createAuthFetcher,
3
3
  useApiKey,
4
4
  useAuth
5
- } from "./chunk-FJSVPBKY.js";
5
+ } from "./chunk-S7OXQTST.js";
6
6
  import {
7
7
  usePtySession
8
- } from "./chunk-DLCFZDGX.js";
8
+ } from "./chunk-5UM2XMEJ.js";
9
9
  import {
10
10
  RealtimeSessionRegistry,
11
11
  useDropdownMenu,
@@ -15,17 +15,17 @@ import {
15
15
  useSessionStream,
16
16
  useSidecarAuth,
17
17
  useToolCallStream
18
- } from "./chunk-MXRQ4MJE.js";
19
- import "./chunk-33W2TLUL.js";
18
+ } from "./chunk-DXMIEK4K.js";
19
+ import "./chunk-QID2OOMG.js";
20
20
  import "./chunk-OEX7NZE3.js";
21
21
  import {
22
22
  useAutoScroll,
23
23
  useRunCollapseState,
24
24
  useRunGroups
25
- } from "./chunk-CNWVHQFY.js";
26
- import "./chunk-MJUDMVRU.js";
25
+ } from "./chunk-54SQQMMM.js";
26
+ import "./chunk-MT5FJ3ZT.js";
27
27
  import "./chunk-BX6AQMUS.js";
28
- import "./chunk-3HW53XTH.js";
28
+ import "./chunk-T7HMZEVO.js";
29
29
  import "./chunk-RQHJBTEU.js";
30
30
 
31
31
  // src/hooks/use-session-crud.ts
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { AgentWorkbench, AuditCheck, AuditResults, AuditResultsProps, BannerType
5
5
  export { a as ArtifactPane, A as ArtifactPaneProps } from './artifact-pane-Bh45Ssco.js';
6
6
  export { OpenUIAction, OpenUIActionsNode, OpenUIArtifactRenderer, OpenUIArtifactRendererProps, OpenUIBadgeNode, OpenUICardNode, OpenUICodeNode, OpenUIComponentNode, OpenUIGridNode, OpenUIHeadingNode, OpenUIKeyValueNode, OpenUIMarkdownNode, OpenUIPrimitive, OpenUISeparatorNode, OpenUIStackNode, OpenUIStatNode, OpenUITableNode, OpenUITextNode } from './openui.js';
7
7
  export { AgentTimeline, AgentTimelineArtifactItem, AgentTimelineCustomItem, AgentTimelineItem, AgentTimelineMessageItem, AgentTimelineProps, AgentTimelineStatusItem, AgentTimelineTone, AgentTimelineToolGroupItem, AgentTimelineToolItem, ChatMessage, ChatMessageProps, MessageList, MessageListProps, MessageRole, ThinkingIndicator, ThinkingIndicatorProps, UserMessage, UserMessageProps } from './chat.js';
8
- export { C as ChatContainer, a as ChatContainerProps, b as ChatInput, c as ChatInputProps, P as PendingFile } from './chat-container-Cg-GwyiK.js';
8
+ export { C as ChatContainer, a as ChatContainerProps, b as ChatInput, c as ChatInputProps, P as PendingFile } from './chat-container-f4yEs6KN.js';
9
9
  export { C as Collaborator, a as ConnectionState, D as DocumentEditorBackend, b as DocumentEditorMode, c as DocumentEditorPane, d as DocumentEditorPaneCollaborationConfig, e as DocumentEditorPaneProps, E as EditorContextValue, f as EditorProvider, g as EditorProviderProps, h as EditorUser, u as useEditorContext } from './document-editor-pane-A70-EhdQ.js';
10
10
  export { CollaboratorsList, EditorToolbar, TiptapEditor, TiptapEditorProps, useAwareness, useCollaboratorPresence, useCollaborators, useDocumentChanges, useEditorConnection, useYjsState } from './editor.js';
11
11
  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-Bs3MyQMT.js';
@@ -15,12 +15,12 @@ import { b as ToolPart } from './parts-CyGkM6Fp.js';
15
15
  export { R as ReasoningPart, S as SessionMessage, a as SessionPart, T as TextPart, c as ToolState, d as ToolStatus, e as ToolTime } from './parts-CyGkM6Fp.js';
16
16
  export { F as FileNode, a as FileTabData, b as FileTabs, c as FileTabsProps, d as FileTree, e as FileTreeProps, f as FileTreeVisibilityOptions, g as filterFileTree } from './file-tabs-BLfxfmAH.js';
17
17
  export { FileArtifactPane, FileArtifactPaneProps, FilePreview, FilePreviewProps } from './files.js';
18
- export { B as Backend, a as BackendSelector, b as BackendSelectorProps, C as ClusterStatusBar, c as ClusterStatusBarProps, d as ClusterStatusItem, e as CreditBalance, f as CreditBalanceProps, D as DashboardLayout, g as DashboardLayoutProps, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps, P as PanelConfig, m as PlanCardData, n as PlanCards, o as PlanCardsProps, p as ProductVariant, q as ProfileAvatar, r as ProfileAvatarProps, s as ProfileComparison, t as ProfileComparisonProps, u as ProfileSelector, v as ProfileSelectorProps, R as RailButton, w as RailButtonProps, x as RailModeButton, y as RailModeButtonProps, z as RailSeparator, A as RailSeparatorProps, E as ResourceMeter, F as ResourceMeterProps, S as SIDEBAR_PANEL_WIDTH, G as SIDEBAR_RAIL_WIDTH, H as SIDEBAR_TOTAL_WIDTH, J as SandboxCard, K as SandboxCardData, L as SandboxCardProps, M as SandboxStatus, O as SandboxTable, Q as SandboxTableProps, T as Sidebar, U as SidebarContent, V as SidebarContentProps, W as SidebarPanel, X as SidebarPanelContent, Y as SidebarPanelContentProps, Z as SidebarPanelHeader, _ as SidebarPanelHeaderProps, $ as SidebarPanelProps, a0 as SidebarProps, a1 as SidebarProvider, a2 as SidebarProviderProps, a3 as SidebarRail, a4 as SidebarRailFooter, a5 as SidebarRailFooterProps, a6 as SidebarRailHeader, a7 as SidebarRailHeaderProps, a8 as SidebarRailNav, a9 as SidebarRailNavProps, aa as SidebarRailProps, ab as SidebarUser, ac as TopNavLink, ad as VariantList, ae as VariantListProps, af as useSidebar } from './index-BT_-ecpc.js';
19
- export { c as BillingDashboard, d as BillingDashboardProps, e as PricingCards, f as PricingPageProps, g as UsageChart, h as UsageChartProps, U as UsageDataPoint } from './usage-chart-XCoB_7Xu.js';
18
+ export { B as Backend, a as BackendSelector, b as BackendSelectorProps, C as ClusterStatusBar, c as ClusterStatusBarProps, d as ClusterStatusItem, e as CreditBalance, f as CreditBalanceProps, D as DashboardLayout, g as DashboardLayoutProps, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps, P as PanelConfig, m as PlanCardData, n as PlanCards, o as PlanCardsProps, p as ProductVariant, q as ProfileAvatar, r as ProfileAvatarProps, s as ProfileComparison, t as ProfileComparisonProps, u as ProfileSelector, v as ProfileSelectorProps, R as RailButton, w as RailButtonProps, x as RailModeButton, y as RailModeButtonProps, z as RailSeparator, A as RailSeparatorProps, E as ResourceMeter, F as ResourceMeterProps, S as SIDEBAR_PANEL_WIDTH, G as SIDEBAR_RAIL_WIDTH, H as SIDEBAR_TOTAL_WIDTH, J as SandboxCard, K as SandboxCardData, L as SandboxCardProps, M as SandboxStatus, O as SandboxTable, Q as SandboxTableProps, T as Sidebar, U as SidebarContent, V as SidebarContentProps, W as SidebarPanel, X as SidebarPanelContent, Y as SidebarPanelContentProps, Z as SidebarPanelHeader, _ as SidebarPanelHeaderProps, $ as SidebarPanelProps, a0 as SidebarProps, a1 as SidebarProvider, a2 as SidebarProviderProps, a3 as SidebarRail, a4 as SidebarRailFooter, a5 as SidebarRailFooterProps, a6 as SidebarRailHeader, a7 as SidebarRailHeaderProps, a8 as SidebarRailNav, a9 as SidebarRailNavProps, aa as SidebarRailProps, ab as SidebarUser, ac as TopNavLink, ad as VariantList, ae as VariantListProps, af as useSidebar } from './variant-list-CsS6ydgm.js';
19
+ export { c as BillingDashboard, d as BillingDashboardProps, e as PricingCards, f as PricingPageProps, g as UsageChart, h as UsageChartProps, U as UsageDataPoint } from './usage-chart-SSiOgeQI.js';
20
20
  export { AuthHeader, GitHubLoginButton, LoginLayout, LoginLayoutProps, UserMenu } from './auth.js';
21
21
  export { CodeBlock, CodeBlock as CodeBlockDisplay, CopyButton, Markdown, MarkdownProps } from './markdown.js';
22
22
  export { AppendUserMessageOptions, ApplySdkEventOptions, BeginAssistantMessageOptions, CompleteAssistantMessageOptions, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream } from './sdk-hooks.js';
23
- export { d as createAuthFetcher, u as useApiKey, e as useAuth, f as usePtySession } from './use-pty-session-COzVkhtc.js';
23
+ export { d as createAuthFetcher, u as useApiKey, e as useAuth, f as usePtySession } from './use-pty-session-0AOuwXgq.js';
24
24
  export { G as GroupedMessage, R as Run, b as RunStats, T as ToolCategory } from './run-CtFZ6s-D.js';
25
25
  export { S as Session } from './sidecar-CFU2W9j1.js';
26
26
  export { C as CustomToolRenderer, D as DisplayVariant, T as ToolDisplayMetadata } from './tool-display-Ct9nFAzJ.js';
package/dist/index.js CHANGED
@@ -15,21 +15,21 @@ import {
15
15
  useEditorConnection,
16
16
  useEditorContext,
17
17
  useYjsState
18
- } from "./chunk-FNYJFCGU.js";
18
+ } from "./chunk-U6QTHMY6.js";
19
19
  import {
20
20
  AuthHeader,
21
21
  GitHubLoginButton,
22
22
  LoginLayout,
23
23
  UserMenu
24
- } from "./chunk-XTPAWK7L.js";
24
+ } from "./chunk-DI3NZ5ZX.js";
25
25
  import {
26
26
  createAuthFetcher,
27
27
  useApiKey,
28
28
  useAuth
29
- } from "./chunk-FJSVPBKY.js";
29
+ } from "./chunk-S7OXQTST.js";
30
30
  import {
31
31
  usePtySession
32
- } from "./chunk-DLCFZDGX.js";
32
+ } from "./chunk-5UM2XMEJ.js";
33
33
  import {
34
34
  RealtimeSessionRegistry,
35
35
  useDropdownMenu,
@@ -39,7 +39,7 @@ import {
39
39
  useSessionStream,
40
40
  useSidecarAuth,
41
41
  useToolCallStream
42
- } from "./chunk-MXRQ4MJE.js";
42
+ } from "./chunk-DXMIEK4K.js";
43
43
  import {
44
44
  DropZone,
45
45
  Label,
@@ -54,7 +54,6 @@ import {
54
54
  SelectTrigger,
55
55
  SelectValue,
56
56
  SidebarDropZone,
57
- StatCard,
58
57
  Switch,
59
58
  TerminalCursor,
60
59
  TerminalDisplay,
@@ -64,7 +63,7 @@ import {
64
63
  ToastProvider,
65
64
  UploadProgress,
66
65
  useToast
67
- } from "./chunk-DCPYTL4W.js";
66
+ } from "./chunk-D4CZWJCD.js";
68
67
  import {
69
68
  Dialog,
70
69
  DialogClose,
@@ -76,7 +75,7 @@ import {
76
75
  DialogPortal,
77
76
  DialogTitle,
78
77
  DialogTrigger
79
- } from "./chunk-YS66Q3RC.js";
78
+ } from "./chunk-US6JKJKH.js";
80
79
  import {
81
80
  Tabs,
82
81
  TabsContent,
@@ -85,11 +84,11 @@ import {
85
84
  } from "./chunk-Q56BYXQF.js";
86
85
  import {
87
86
  ChatMessage
88
- } from "./chunk-GW4GRAWJ.js";
87
+ } from "./chunk-GSZA3TSY.js";
89
88
  import {
90
89
  ToolCallFeed,
91
90
  parseToolEvent
92
- } from "./chunk-33W2TLUL.js";
91
+ } from "./chunk-QID2OOMG.js";
93
92
  import {
94
93
  AgentWorkbench,
95
94
  AuditResults,
@@ -102,13 +101,13 @@ import {
102
101
  StatusBar,
103
102
  TerminalPanel,
104
103
  WorkspaceLayout
105
- } from "./chunk-E2XT3G52.js";
104
+ } from "./chunk-QC4BJEG6.js";
106
105
  import "./chunk-OEX7NZE3.js";
107
106
  import {
108
107
  EmptyState,
109
108
  Input,
110
109
  Textarea
111
- } from "./chunk-BRBTD7RH.js";
110
+ } from "./chunk-MA7YKRUP.js";
112
111
  import {
113
112
  AgentTimeline,
114
113
  ChatContainer,
@@ -116,12 +115,12 @@ import {
116
115
  MessageList,
117
116
  ThinkingIndicator,
118
117
  UserMessage
119
- } from "./chunk-RKXIRRKQ.js";
118
+ } from "./chunk-JLKYXLFN.js";
120
119
  import {
121
120
  useAutoScroll,
122
121
  useRunCollapseState,
123
122
  useRunGroups
124
- } from "./chunk-CNWVHQFY.js";
123
+ } from "./chunk-54SQQMMM.js";
125
124
  import {
126
125
  CommandPreview,
127
126
  DiffPreview,
@@ -134,7 +133,7 @@ import {
134
133
  RunGroup,
135
134
  WebSearchPreview,
136
135
  WriteFilePreview
137
- } from "./chunk-ZMWWE5RF.js";
136
+ } from "./chunk-EXSOPXIY.js";
138
137
  import {
139
138
  formatDuration,
140
139
  truncateText
@@ -142,7 +141,7 @@ import {
142
141
  import {
143
142
  ToolCallGroup,
144
143
  ToolCallStep
145
- } from "./chunk-MJUDMVRU.js";
144
+ } from "./chunk-MT5FJ3ZT.js";
146
145
  import {
147
146
  TOOL_CATEGORY_ICONS,
148
147
  getToolCategory,
@@ -152,7 +151,7 @@ import {
152
151
  import {
153
152
  InlineCode,
154
153
  OpenUIArtifactRenderer
155
- } from "./chunk-OVNLOE3Y.js";
154
+ } from "./chunk-PLTZB5BC.js";
156
155
  import {
157
156
  Table,
158
157
  TableBody,
@@ -162,22 +161,22 @@ import {
162
161
  TableHead,
163
162
  TableHeader,
164
163
  TableRow
165
- } from "./chunk-JP725R4W.js";
164
+ } from "./chunk-34I7UFSX.js";
166
165
  import {
167
166
  FileArtifactPane,
168
167
  FilePreview,
169
168
  FileTabs,
170
169
  FileTree,
171
170
  filterFileTree
172
- } from "./chunk-KH5UDAJ2.js";
171
+ } from "./chunk-QDH5GEGY.js";
173
172
  import {
174
173
  ArtifactPane
175
- } from "./chunk-W4LM3QYZ.js";
174
+ } from "./chunk-HB5Y37YU.js";
176
175
  import {
177
176
  CodeBlock,
178
177
  CopyButton,
179
178
  Markdown
180
- } from "./chunk-3HW53XTH.js";
179
+ } from "./chunk-T7HMZEVO.js";
181
180
  import {
182
181
  BackendSelector,
183
182
  ClusterStatusBar,
@@ -210,16 +209,17 @@ import {
210
209
  SidebarRailNav,
211
210
  VariantList,
212
211
  useSidebar
213
- } from "./chunk-6V4XVKFY.js";
212
+ } from "./chunk-7YWFOGKQ.js";
214
213
  import {
215
214
  BillingDashboard,
216
215
  PricingPage,
217
216
  UsageChart
218
- } from "./chunk-565V6JTN.js";
217
+ } from "./chunk-OHPW55EV.js";
219
218
  import {
220
219
  Logo,
220
+ StatCard,
221
221
  TangleKnot
222
- } from "./chunk-OKCIKTXQ.js";
222
+ } from "./chunk-OKLQVY3Y.js";
223
223
  import {
224
224
  Avatar,
225
225
  AvatarFallback,
@@ -239,13 +239,13 @@ import {
239
239
  DropdownMenuSubContent,
240
240
  DropdownMenuSubTrigger,
241
241
  DropdownMenuTrigger
242
- } from "./chunk-WBQ7VULC.js";
242
+ } from "./chunk-34A66VBG.js";
243
243
  import {
244
244
  Progress,
245
245
  Skeleton,
246
246
  SkeletonCard,
247
247
  SkeletonTable
248
- } from "./chunk-YYGECNZZ.js";
248
+ } from "./chunk-66EZOYZR.js";
249
249
  import {
250
250
  Badge,
251
251
  Card,
@@ -255,11 +255,11 @@ import {
255
255
  CardHeader,
256
256
  CardTitle,
257
257
  badgeVariants
258
- } from "./chunk-TDYQBLL5.js";
258
+ } from "./chunk-ZMNSRDMH.js";
259
259
  import {
260
260
  Button,
261
261
  buttonVariants
262
- } from "./chunk-TSE423UF.js";
262
+ } from "./chunk-MKTSMWVD.js";
263
263
  import {
264
264
  cn
265
265
  } from "./chunk-RQHJBTEU.js";
package/dist/markdown.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CodeBlock,
3
3
  CopyButton,
4
4
  Markdown
5
- } from "./chunk-3HW53XTH.js";
5
+ } from "./chunk-T7HMZEVO.js";
6
6
  import "./chunk-RQHJBTEU.js";
7
7
  export {
8
8
  CodeBlock,
package/dist/openui.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenUIArtifactRenderer
3
- } from "./chunk-OVNLOE3Y.js";
4
- import "./chunk-JP725R4W.js";
5
- import "./chunk-3HW53XTH.js";
6
- import "./chunk-TDYQBLL5.js";
7
- import "./chunk-TSE423UF.js";
3
+ } from "./chunk-PLTZB5BC.js";
4
+ import "./chunk-34I7UFSX.js";
5
+ import "./chunk-T7HMZEVO.js";
6
+ import "./chunk-ZMNSRDMH.js";
7
+ import "./chunk-MKTSMWVD.js";
8
8
  import "./chunk-RQHJBTEU.js";
9
9
  export {
10
10
  OpenUIArtifactRenderer
package/dist/pages.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { B as BillingSubscription, a as BillingBalance, b as BillingUsage, U as UsageDataPoint, P as PricingTier } from './usage-chart-XCoB_7Xu.js';
2
+ import { B as BillingSubscription, a as BillingBalance, b as BillingUsage, U as UsageDataPoint, P as PricingTier } from './usage-chart-SSiOgeQI.js';
3
3
  import * as React from 'react';
4
+ import { T as TemplateCardData } from './template-card-BAtvcAkU.js';
4
5
 
5
6
  type ProductVariant$1 = "sandbox";
6
7
  interface BillingPageData {
@@ -36,9 +37,25 @@ interface EnvironmentEntry {
36
37
  interface ProvisioningWizardProps {
37
38
  environments?: EnvironmentOption[];
38
39
  onLoadEnvironments?: () => Promise<EnvironmentEntry[]>;
39
- onSubmit?: (config: ProvisioningConfig) => void;
40
+ onSubmit?: (config: ProvisioningConfig) => void | Promise<void>;
40
41
  onBack?: () => void;
41
42
  className?: string;
43
+ variant?: "flat" | "multistep";
44
+ /** Pre-select an environment by ID (e.g. from a template link) */
45
+ defaultEnvironment?: string;
46
+ /** Pre-fill all form fields from a template preset */
47
+ defaultConfig?: Partial<ProvisioningConfig>;
48
+ /** When true and defaultConfig is provided, start on the final step */
49
+ skipToReview?: boolean;
50
+ /** Load user's startup scripts for the advanced options selector */
51
+ onLoadStartupScripts?: () => Promise<StartupScriptEntry[]>;
52
+ }
53
+ interface StartupScriptEntry {
54
+ id: string;
55
+ name: string;
56
+ description: string;
57
+ enabled: boolean;
58
+ injectSecrets: string[];
42
59
  }
43
60
  interface ProvisioningConfig {
44
61
  environment: string;
@@ -47,9 +64,18 @@ interface ProvisioningConfig {
47
64
  storageGB: number;
48
65
  modelTier: string;
49
66
  systemPrompt: string;
67
+ name: string;
68
+ gitUrl: string;
69
+ envVars: {
70
+ key: string;
71
+ value: string;
72
+ }[];
73
+ driver: "docker" | "firecracker" | "tangle";
74
+ bare: boolean;
75
+ startupScriptIds?: string[];
50
76
  }
51
77
  declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
52
- declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
78
+ declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, variant, defaultEnvironment, defaultConfig, skipToReview, onLoadStartupScripts, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
53
79
 
54
80
  type ProductVariant = "sandbox";
55
81
  interface StandalonePricingPageProps {
@@ -60,9 +86,10 @@ interface StandalonePricingPageProps {
60
86
  fetchTiers?: () => Promise<PricingTier[]>;
61
87
  title?: string;
62
88
  subtitle?: string;
89
+ eyebrow?: string;
63
90
  className?: string;
64
91
  }
65
- declare function StandalonePricingPage({ variant, initialTiers, apiBasePath, onSelectTier, fetchTiers, title, subtitle, className, }: StandalonePricingPageProps): react_jsx_runtime.JSX.Element;
92
+ declare function StandalonePricingPage({ variant, initialTiers, apiBasePath, onSelectTier, fetchTiers, title, subtitle, eyebrow, className, }: StandalonePricingPageProps): react_jsx_runtime.JSX.Element;
66
93
 
67
94
  interface ProfileMetrics {
68
95
  total_runs: number;
@@ -118,4 +145,86 @@ interface ProfilesPageProps {
118
145
  }
119
146
  declare function ProfilesPage({ apiClient, tier, maxProfiles, onCompareClick, title, }: ProfilesPageProps): react_jsx_runtime.JSX.Element;
120
147
 
121
- export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentEntry, type EnvironmentOption, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, StandalonePricingPage, type StandalonePricingPageProps, resolveEnvironment };
148
+ interface Secret {
149
+ name: string;
150
+ createdAt: string;
151
+ updatedAt?: string;
152
+ }
153
+ interface SecretsApiClient {
154
+ listSecrets: () => Promise<Secret[]>;
155
+ createSecret: (name: string, value: string) => Promise<void>;
156
+ deleteSecret: (name: string) => Promise<void>;
157
+ }
158
+ interface SecretsPageProps {
159
+ apiClient: SecretsApiClient;
160
+ className?: string;
161
+ }
162
+ declare function SecretsPage({ apiClient, className }: SecretsPageProps): react_jsx_runtime.JSX.Element;
163
+
164
+ interface TemplatesPageProps {
165
+ templates: TemplateCardData[] | null;
166
+ loading?: boolean;
167
+ onUseTemplate: (templateId: string) => void;
168
+ className?: string;
169
+ }
170
+ declare function TemplatesPage({ templates, loading, onUseTemplate, className }: TemplatesPageProps): react_jsx_runtime.JSX.Element;
171
+
172
+ type ScriptType = "bash" | "python" | "node" | "ruby" | "custom";
173
+ interface StartupScript {
174
+ id: string;
175
+ name: string;
176
+ description: string;
177
+ scriptType: ScriptType;
178
+ content: string;
179
+ environments: string[];
180
+ minCpuCores: number | null;
181
+ minRamGB: number | null;
182
+ runOrder: number;
183
+ timeoutSeconds: number;
184
+ continueOnFailure: boolean;
185
+ runAsRoot: boolean;
186
+ injectSecrets: string[];
187
+ enabled: boolean;
188
+ createdAt: string;
189
+ updatedAt: string;
190
+ }
191
+ interface StartupScriptFormData {
192
+ name: string;
193
+ description: string;
194
+ scriptType: ScriptType;
195
+ content: string;
196
+ environments: string[];
197
+ minCpuCores: number | null;
198
+ minRamGB: number | null;
199
+ runOrder: number;
200
+ timeoutSeconds: number;
201
+ continueOnFailure: boolean;
202
+ runAsRoot: boolean;
203
+ injectSecrets: string[];
204
+ enabled: boolean;
205
+ }
206
+ interface StartupScriptsApiClient {
207
+ listScripts: () => Promise<StartupScript[]>;
208
+ createScript: (data: StartupScriptFormData) => Promise<StartupScript>;
209
+ updateScript: (id: string, data: Partial<StartupScriptFormData>) => Promise<StartupScript>;
210
+ deleteScript: (id: string) => Promise<void>;
211
+ toggleScript: (id: string) => Promise<StartupScript>;
212
+ listSecrets?: () => Promise<{
213
+ name: string;
214
+ }[]>;
215
+ listEnvironments?: () => Promise<{
216
+ id: string;
217
+ name?: string;
218
+ }[]>;
219
+ }
220
+ interface StartupScriptsPageProps {
221
+ apiClient: StartupScriptsApiClient;
222
+ className?: string;
223
+ }
224
+ declare function StartupScriptsPage({ apiClient, className }: StartupScriptsPageProps): react_jsx_runtime.JSX.Element;
225
+
226
+ type TemplateCategory = "blockchain" | "ai-ml" | "frontend" | "infrastructure" | "general";
227
+ type TemplatePreset = Omit<ProvisioningConfig, "name" | "gitUrl" | "envVars" | "driver" | "startupScriptIds">;
228
+ declare function getPresetForTemplate(id: string): TemplatePreset;
229
+
230
+ export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentEntry, type EnvironmentOption, PricingTier, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, type ScriptType, type Secret, type SecretsApiClient, SecretsPage, type SecretsPageProps, StandalonePricingPage, type StandalonePricingPageProps, type StartupScript, type StartupScriptEntry, type StartupScriptFormData, type StartupScriptsApiClient, StartupScriptsPage, type StartupScriptsPageProps, type TemplateCategory, type TemplatePreset, TemplatesPage, type TemplatesPageProps, getPresetForTemplate, resolveEnvironment };